:root {
    --primary-color: #1E2A78;
    --accent-color: #00B4D8;
    --bg-color: #ffffff;
    --bg-light: #f4f7f6;
    --text-color: #333333;
    --text-muted: #666666;
    --hover-bg: #f8f9fa;
    --border-color: #eeeeee;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(30, 42, 120, 0.08);
    --shadow-lg: 0 10px 30px rgba(30, 42, 120, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 90px; /* Offset for fixed header */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
    z-index: 1001;
}

.logo-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
}

.logo h1 span {
    color: var(--accent-color);
}

.tagline {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation Menu */
.main-nav {
    height: 100%;
}

#nav-menu {
    display: flex;
    height: 100%;
    align-items: center;
}

#nav-menu > li {
    height: 100%;
    display: flex;
    align-items: center;
    margin: 0 12px;
    position: relative;
}

#nav-menu > li > a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 5px;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

#nav-menu > li > a i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

#nav-menu > li:hover > a {
    color: var(--accent-color);
}

#nav-menu > li:hover > a i {
    transform: rotate(180deg);
}

/* Animated Underline */
#nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

#nav-menu > li:hover > a::after {
    width: 100%;
}

/* Mega Menu Dropdown */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: var(--bg-color);
    min-width: 280px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-top: 3px solid var(--accent-color);
    padding: 15px 0;
    z-index: 100;
}

.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Connecting invisible block to maintain hover state */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.mega-menu-list {
    display: flex;
    flex-direction: column;
}

.mega-menu-list li {
    width: 100%;
}

.mega-menu-list a {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    gap: 12px;
}

.mega-menu-list a i {
    font-size: 1.1rem;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
    transition: color 0.2s ease;
    opacity: 0.8;
}

.mega-menu-list a:hover {
    background-color: var(--hover-bg);
    color: var(--primary-color);
    padding-left: 30px;
}

.mega-menu-list a:hover i {
    color: var(--accent-color);
    opacity: 1;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* ==========================================================================
   Minimalist Header Section
   ========================================================================== */
.minimal-header {
    padding: 120px 20px 60px;
    background-color: var(--bg-color);
}

.text-center {
    text-align: center;
}

.eyebrow-text {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.minimal-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #111111;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.minimal-title .text-primary {
    color: var(--primary-color);
}

.minimal-subtitle {
    font-size: 1.25rem;
    color: #555555;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .minimal-header {
        padding: 80px 20px 40px;
    }
    .minimal-title {
        font-size: 3rem;
        letter-spacing: -1px;
    }
    .minimal-subtitle {
        font-size: 1.1rem;
    }
}


/* ==========================================================================
   Dynamic Sections
   ========================================================================== */
.section-block {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-blue {
    background-color: var(--primary-color);
    color: white;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.section-header h2 {
    font-size: 2rem;
}

.text-white h2 {
    color: white;
}

.view-all {
    font-weight: 600;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all:hover {
    text-decoration: underline;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.branding-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Image Portfolio Box Design */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-filters-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.portfolio-filters {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 60px;
    background: #ffffff;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.02);
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 12px 26px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 1px;
    margin: 0;
}

.filter-btn:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.35);
    transform: translateY(-2px);
}

.portfolio-item-wrapper {
    margin: 0 auto;
    width: 100%;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio-img-fix {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border: 2px solid var(--primary-color);
    background: #ffffff;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.portfolio-img-fix:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(30, 42, 120, 0.2);
    border-color: var(--accent-color);
}

.portfolio-title {
    display: inline-block;
    margin-top: -22px; /* Overlap the image slightly */
    padding: 10px 20px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
}

.portfolio-item-wrapper a {
    text-decoration: none;
    display: block;
    width: 100%;
}

.portfolio-item-wrapper:hover .portfolio-title {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 6px 12px rgba(30, 42, 120, 0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
}

/* ==========================================================================
   Modal
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* ==========================================================================
   Responsive adjustments
   ========================================================================== */
@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 900px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}
