/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glass Effect Utility */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(35px) saturate(200%);
    backdrop-filter: blur(35px) saturate(200%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.navbar.scrolled::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
    gap: 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.nav-logo:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-logo:focus-visible {
    outline: 3px solid rgba(11, 94, 215, 0.65);
    outline-offset: 4px;
}

.nav-logo-img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-logo-img:hover {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.2) contrast(1.1);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3);
    border-color: rgba(24, 119, 242, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

.nav-logo h2,
.nav-logo-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.6rem;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0);
    cursor: pointer;
    flex-shrink: 0;
}

.nav-logo h2:hover,
.nav-logo-title:hover {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transform: translateY(-1px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-shrink: 0;
    margin-left: auto;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0);
    white-space: nowrap;
    font-size: 1rem;
}

.nav-link:hover {
    color: #0b5ed7;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #0b5ed7;
    background: rgba(11, 94, 215, 0.12);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: 1001;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    color: inherit;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #2c3e50;
    margin: 2px 0;
    transition: 0.3s ease;
    border-radius: 1px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Enhanced hamburger styling for mobile */
@media (max-width: 768px) {
    .hamburger {
        padding: 10px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    .hamburger:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }
    
    .hamburger span {
        width: 22px;
        height: 2px;
        background: #2c3e50;
        margin: 4px 0;
        transition: 0.3s;
        border-radius: 1px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/gallery/site-14.webp') center/cover;
    opacity: 0.42;
    pointer-events: none;
}

.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero-text {
    flex: 1;
    max-width: 690px;
}

.hero-title {
    font-size: 4.35rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.08;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    50% {
        opacity: 0.7;
        transform: translateY(20px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeIn 1s ease 0.8s forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #0b5ed7, #064fb5);
    color: white;
    box-shadow: 0 5px 15px rgba(11, 94, 215, 0.38);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 94, 215, 0.52);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2c3e50;
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite, glowPulse 4s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-card:hover {
    transform: scale(1.05);
    animation: float 6s ease-in-out infinite, glowPulse 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        filter: brightness(1) contrast(1);
    }
    25% { 
        transform: translateY(-15px) rotate(0.5deg); 
        filter: brightness(1.05) contrast(1.02);
    }
    50% { 
        transform: translateY(-25px) rotate(0deg); 
        filter: brightness(1.1) contrast(1.05);
    }
    75% { 
        transform: translateY(-15px) rotate(-0.5deg); 
        filter: brightness(1.05) contrast(1.02);
    }
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-info h2,
.profile-info h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.profile-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #1877f2, #0d6efd);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: bounceIn 0.8s ease-out;
}

.stat:hover {
    transform: translateY(-5px) scale(1.05);
    animation: glowPulse 2s infinite;
}

.stat:nth-child(1) { animation-delay: 0.1s; }
.stat:nth-child(2) { animation-delay: 0.3s; }
.stat:nth-child(3) { animation-delay: 0.5s; }

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

.image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 18px;
}

.image-container:hover .about-img {
    transform: scale(1.03);
    filter: brightness(1.05) contrast(1.02);
}

.image-container:hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Services Section */
.services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: elegantSlideIn 1.2s ease-out forwards;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.service-card:hover {
    animation: elegantHover 0.6s ease-out forwards;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.service-card:nth-child(odd) {
    animation-delay: 0.2s;
}

.service-card:nth-child(even) {
    animation-delay: 0.4s;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1877f2, #0d6efd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    animation: glowPulse 2s infinite;
}

.service-card:hover .service-icon::before {
    left: 100%;
}

.service-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.service-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio {
    background: #f8f9fa;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: elegantFadeIn 1s ease-out forwards;
    opacity: 0;
    transform: scale(0.9) rotate(-1deg);
}

.portfolio-item:hover {
    animation: elegantHover 0.6s ease-out forwards;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }
.portfolio-item:nth-child(7) { animation-delay: 0.7s; }
.portfolio-item:nth-child(8) { animation-delay: 0.8s; }
.portfolio-item:nth-child(9) { animation-delay: 0.9s; }
.portfolio-item:nth-child(10) { animation-delay: 1s; }
.portfolio-item:nth-child(11) { animation-delay: 1.1s; }

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.05);
    min-height: 250px;
    display: block;
    border-radius: 12px;
}

.portfolio-item:nth-child(n+8) .portfolio-image img {
    object-fit: contain;
    background: #ffffff;
    padding: 12px;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.portfolio-item:hover .portfolio-image::before {
    left: 100%;
}

.portfolio-image img:not([src]), 
.portfolio-image img[src=""] {
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(17, 24, 39, 0.86));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 52px 20px 20px;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-item:hover .portfolio-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(17, 24, 39, 0.94));
}

.portfolio-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.portfolio-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.portfolio-cta {
    display: flex;
    justify-content: center;
    margin-top: 45px;
}

/* Gallery Page */
.gallery-page {
    background: #f8f9fa;
}

.gallery-hero {
    min-height: 68vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
    background: linear-gradient(135deg, #1f2937 0%, #1877f2 100%);
}

.gallery-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.34)),
        url('images/gallery/building-09.webp') center/cover;
    transform: scale(1.02);
}

.gallery-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding-top: 70px;
}

.gallery-hero-content h1 {
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1;
    margin-bottom: 22px;
}

.gallery-hero-content p {
    max-width: 650px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.18rem;
}

.gallery-main {
    background: #f8f9fa;
}

.gallery-section {
    padding: 90px 0;
    content-visibility: auto;
    contain-intrinsic-size: 900px;
}

.gallery-section + .gallery-section {
    padding-top: 20px;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 40px;
}

.gallery-filter {
    border: 1px solid rgba(24, 119, 242, 0.24);
    background: rgba(255, 255, 255, 0.78);
    color: #2c3e50;
    border-radius: 999px;
    padding: 11px 18px;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.gallery-filter:hover,
.gallery-filter.active {
    color: white;
    background: linear-gradient(135deg, #1877f2, #0d6efd);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(24, 119, 242, 0.24);
}

.gallery-grid,
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.gallery-card,
.video-card {
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
    content-visibility: auto;
    contain-intrinsic-size: 330px 340px;
}

.gallery-card {
    cursor: pointer;
}

.gallery-card:hover,
.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.13);
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    background: #edf2f7;
}

.gallery-card.document-card img {
    object-fit: contain;
    background: #ffffff;
    padding: 14px;
}

.gallery-card-info,
.video-card-info {
    padding: 18px 20px 20px;
}

.gallery-card-info h3,
.video-card-info h3 {
    color: #2c3e50;
    font-size: 1.12rem;
    line-height: 1.25;
    margin-bottom: 6px;
}

.gallery-card-info p,
.video-card-info p {
    color: #64748b;
    font-size: 0.94rem;
}

.video-card video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #0f172a;
    object-fit: cover;
}

.gallery-card.is-hidden,
.video-card.is-hidden,
.video-gallery-section.is-hidden {
    display: none;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.lightbox.visible {
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(18px) scale(0.96);
    transition: transform 0.25s ease;
}

.lightbox.visible .lightbox-content {
    transform: translateY(0) scale(1);
}

.lightbox-image-container {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    display: block !important;
    position: relative;
    z-index: 1;
    background: #f8f9fa;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.lightbox-video {
    width: 100%;
    max-height: 65vh;
    display: block;
    background: #0f172a;
}

.lightbox-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #7f8c8d;
}

.lightbox-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e9ecef;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.lightbox-info {
    padding: 26px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.lightbox-info h3 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1.7rem;
    font-weight: 700;
}

.lightbox-info p {
    margin-bottom: 18px;
    color: #7f8c8d;
    font-size: 1.05rem;
    line-height: 1.6;
}

.lightbox-details {
    display: flex;
    gap: 20px;
    margin-top: 18px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3498db;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.7);
    font-size: 24px;
    cursor: pointer;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }

    .lightbox-info {
        padding: 20px;
    }

    .lightbox-info h3 {
        font-size: 1.45rem;
    }

    .lightbox-details {
        flex-direction: column;
        gap: 10px;
    }
}

/* Multipage Layout */
.page-hero {
    min-height: 56vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
    background: linear-gradient(135deg, #1f2937, #1877f2);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.38)),
        var(--page-hero-image, url('images/gallery/site-14.webp')) center/cover;
}

.about-hero {
    --page-hero-image: url('images/gallery/building-09.webp');
}

.services-hero {
    --page-hero-image: url('images/gallery/site-05.webp');
}

.portfolio-hero {
    --page-hero-image: url('images/gallery/building-07.webp');
}

.contact-hero {
    --page-hero-image: url('images/gallery/gate-07.webp');
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding-top: 70px;
}

.page-hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    line-height: 1;
    margin-bottom: 22px;
}

.page-hero-content p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.18rem;
}

.page-section {
    padding: 90px 0;
    content-visibility: auto;
    contain-intrinsic-size: 720px;
}

.proof-band,
.service-proof,
.home-cta {
    background: #f8f9fa;
}

.compact-services {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.home-cta-card {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.home-cta-card h2 {
    color: #2c3e50;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 16px;
}

.home-cta-card p {
    color: #64748b;
    font-size: 1.08rem;
    margin-bottom: 28px;
}

.home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.home-intro {
    background: #ffffff;
}

.home-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.home-link-card {
    display: block;
    min-height: 250px;
    padding: 30px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(24, 119, 242, 0.12);
    color: #2c3e50;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-link-card:hover {
    transform: translateY(-6px);
    border-color: rgba(24, 119, 242, 0.35);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
}

.home-link-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #1877f2, #0d6efd);
    font-size: 1.35rem;
}

.home-link-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.home-link-card p {
    color: #64748b;
    line-height: 1.65;
}

.home-proof {
    background: #f8fafc;
    position: relative;
}

.home-proof-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: clamp(24px, 4vw, 44px);
    align-items: center;
}

.home-proof-image {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.13);
    background: #ffffff;
    position: relative;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.home-proof-image::after {
    display: none;
}

.home-proof-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.home-proof .home-proof-copy {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(24, 119, 242, 0.14);
    border-radius: 16px;
    padding: clamp(24px, 3.5vw, 36px);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.proof-eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 12px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(24, 119, 242, 0.1);
    color: #0d6efd;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.home-proof-copy h2 {
    color: #25364a;
    font-size: clamp(1.9rem, 3.5vw, 2.55rem);
    line-height: 1.12;
    margin-bottom: 14px;
}

.home-proof-copy p {
    color: #607086;
    font-size: 1.04rem;
    margin-bottom: 20px;
}

.proof-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.proof-tags span {
    border-radius: 999px;
    background: #eef6ff;
    color: #30506f;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 12px;
}

.home-proof .home-cta-actions {
    justify-content: flex-start;
}

.home-proof .btn-secondary {
    color: #0d6efd;
    border-color: rgba(13, 110, 253, 0.45);
    background: rgba(255, 255, 255, 0.74);
}

.home-proof .btn-secondary:hover {
    color: #ffffff;
    background: #0d6efd;
    border-color: #0d6efd;
}

.home-brand-card .hero-ceo-photo-frame {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    isolation: isolate;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
    contain: layout paint;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-brand-card {
    animation: none;
}

.home-brand-card:hover {
    animation: none;
}

.home-brand-card .profile-info h2,
.home-brand-card .profile-info h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.home-brand-card .profile-info p {
    color: white;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.home-brand-card .hero-ceo-photo-frame:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
    border-color: rgba(255, 255, 255, 0.5);
}

.home-brand-card .hero-ceo-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: opacity;
    animation: heroCeoPhotoPrimary 18s linear infinite;
}

.home-brand-card .hero-ceo-photo-primary {
    animation-name: heroCeoPhotoPrimary;
    object-position: center 18%;
}

.home-brand-card .hero-ceo-photo-secondary {
    animation-name: heroCeoPhotoSecondary;
    object-position: center 36%;
}

@keyframes heroCeoPhotoPrimary {
    0%, 38% { opacity: 1; }
    50%, 88% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes heroCeoPhotoSecondary {
    0%, 38% { opacity: 0; }
    50%, 88% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes homeCardGentlePulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 14px rgba(255, 255, 255, 0.2), 0 0 28px rgba(24, 119, 242, 0.14);
    }

    50% {
        transform: translateY(-6px) scale(1.01);
        box-shadow: 0 0 18px rgba(255, 255, 255, 0.26), 0 0 34px rgba(24, 119, 242, 0.18);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .home-brand-card {
        animation: none;
    }

    .home-brand-card .hero-ceo-photo {
        animation: none;
    }

    .home-brand-card .hero-ceo-photo-primary {
        opacity: 1;
    }

    .home-brand-card .hero-ceo-photo-secondary {
        opacity: 0;
    }
}

/* Contact Section */
.contact {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.contact-item h3,
.contact-item h4 {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-item p {
    color: #7f8c8d;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1877f2, #0d6efd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 20px rgba(24, 119, 242, 0.4);
    animation: glowPulse 2s infinite;
}

.social-link:hover::before {
    left: 100%;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form.is-submitted {
    display: none;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #2c3e50;
    outline: none;
    box-sizing: border-box;
}

/* Fix dropdown text color - Apple style */
.form-group select {
    color: #2c3e50;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
}

.form-group select:focus {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: #1877f2;
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.form-group select option {
    color: #2c3e50;
}

/* Custom dropdown arrow */
.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%231877f2' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 40px;
}



.form-group select:focus {
    outline: none;
    border-color: #1877f2;
}

/* Dropdown options styling - Apple style */
.form-group select option {
    background: #f8f9fa;
    color: #2c3e50;
    padding: 12px 16px;
    border: none;
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    min-height: 44px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.form-group select option:hover {
    background: #e3f2fd;
    color: #1877f2;
}

.form-group select option:focus,
.form-group select option:checked {
    background: #1877f2;
    color: white;
    font-weight: 500;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1877f2;
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group.focused input,
.form-group.focused select,
.form-group.focused textarea {
    border-color: #1877f2;
    border-width: 2px;
}





.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
    animation: elegantSlideIn 0.3s ease-out;
}

.form-submit-error {
    color: #c0392b;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.22);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.92rem;
    line-height: 1.45;
}

/* Phone Input with Country Selector */
.phone-input-container {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.country-selector {
    flex-shrink: 0;
    min-width: 140px;
}

.country-selector select {
    width: 100%;
    height: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.country-selector select:focus {
    outline: none;
    border-color: #1877f2;
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
    background: rgba(255, 255, 255, 0.15);
}

.country-selector select option {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.phone-input-container input[type="tel"] {
    flex: 1;
    min-width: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .phone-input-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .country-selector {
        min-width: 100%;
    }
    
    .country-selector select {
        font-size: 0.85rem;
        padding: 10px 14px;
    }
}

/* Footer */
.footer {
    background: rgba(44, 62, 80, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 460px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #bdc3c7;
}

.footer h3,
.footer h4 {
    margin-bottom: 20px;
    color: #63b3ff;
    font-weight: 600;
    font-size: 1.2rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: #e8f4fd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: #93cfff;
}

.footer-contact p,
.footer-contact-link {
    color: #e8f4fd;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.footer-contact p:hover,
.footer-contact-link:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    color: #93cfff;
}

.footer-contact p i,
.footer-contact-link i {
    margin-right: 10px;
    color: #63b3ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #e8f4fd;
}

.developer-credit {
    color: #93cfff;
    font-weight: 600;
}

/* Optimized Animations - Using GPU acceleration */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translate3d(-50px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translate3d(50px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translate3d(0, 50px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* New Advanced Transitions */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInDiagonal {
    from {
        opacity: 0;
        transform: translate(-50px, -50px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

@keyframes glowPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 0 40px rgba(24, 119, 242, 0.2);
        transform: scale(1);
    }
    25% { 
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.4), 0 0 50px rgba(24, 119, 242, 0.3);
        transform: scale(1.02);
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px rgba(24, 119, 242, 0.4);
        transform: scale(1.05);
    }
    75% { 
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.4), 0 0 50px rgba(24, 119, 242, 0.3);
        transform: scale(1.02);
    }
}

@keyframes morphingBackground {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes elegantSlideIn {
    0% {
        opacity: 0;
        transform: translate3d(0, 40px, 0) scale(0.9);
        filter: blur(10px);
    }
    50% {
        opacity: 0.7;
        transform: translate3d(0, 20px, 0) scale(0.95);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

@keyframes elegantFadeIn {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(0.8) rotate(-2deg);
        filter: brightness(0.8) contrast(0.8);
    }
    50% {
        opacity: 0.6;
        transform: translate3d(0, 0, 0) scale(0.9) rotate(-1deg);
        filter: brightness(0.9) contrast(0.9);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
        filter: brightness(1) contrast(1);
    }
}

@keyframes elegantHover {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: translate3d(0, -8px, 0) scale(1.02);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }
    100% {
        transform: translate3d(0, -10px, 0) scale(1.03);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-logo h2,
    .nav-logo-title {
        font-size: 1.4rem;
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-link {
        font-size: 0.95rem;
        padding: 6px 12px;
    }
    
    .nav-menu {
        gap: 15px;
    }

    .hero-text {
        max-width: 600px;
    }

    .hero-title {
        font-size: 3.75rem;
    }
}

@media (max-width: 900px) {
    .nav-logo h2,
    .nav-logo-title {
        font-size: 1.3rem;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 12px;
        gap: 10px;
    }

    .hamburger {
        display: flex;
        position: relative;
        z-index: 1002;
    }

    .hamburger:focus-visible {
        outline: 3px solid rgba(11, 94, 215, 0.65);
        outline-offset: 4px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 20px 0;
        z-index: 1001;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }
    
    /* Enhanced hamburger animation when active */
    .hamburger.active {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-2px, 6px);
        background: #0b5ed7;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-2px, -6px);
        background: #0b5ed7;
    }

    .nav-logo h2,
    .nav-logo-title {
        display: block;
        font-size: clamp(0.82rem, 2.4vw, 1rem);
        max-width: min(180px, calc(100vw - 150px));
        overflow: visible;
        text-overflow: clip;
        line-height: 1.2;
        padding: 6px 8px;
        white-space: normal;
    }

    .nav-logo {
        max-width: calc(100vw - 78px);
        gap: 8px;
        padding: 5px 8px;
    }
    
    .nav-logo-img {
        width: 45px;
        height: 45px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        width: 100%;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.65rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .home-proof-layout {
        grid-template-columns: 1fr;
    }

    .home-proof .home-cta-actions {
        justify-content: center;
    }

    .home-link-card {
        min-height: auto;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 8px;
        gap: 8px;
    }

    .nav-logo {
        max-width: calc(100vw - 64px);
        gap: 8px;
        padding: 5px 8px;
    }

    .nav-logo h2,
    .nav-logo-title {
        display: block;
        font-size: clamp(0.72rem, 3vw, 0.82rem);
        max-width: min(150px, calc(100vw - 136px));
        overflow: visible;
        text-overflow: clip;
        line-height: 1.15;
        padding: 4px 6px;
        white-space: normal;
    }
    
    .nav-logo-img {
        width: 40px;
        height: 40px;
    }
    
    .hero-title {
        font-size: 1.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 15px;
    }

    .glass-card {
        padding: 20px;
    }

    .home-proof .home-proof-copy {
        padding: 24px;
    }

    .proof-tags {
        margin-bottom: 20px;
    }
}

/* Optimized Scroll Animations - Reduced complexity for better performance */
.fade-in {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Optimized Section reveal animations */
.section-header {
    opacity: 0;
    transform: translate3d(0, 50px, 0);
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: opacity, transform;
}

.section-header.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Staggered animation delays */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

/* Enhanced glass card effects */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    animation: glowPulse 3s infinite;
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

/* Loading skeleton for images */
.image-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
