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

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    background: rgba(28, 28, 30, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lang-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-weight: var(--weight-semibold);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
}

.lang-btn.active {
    background: var(--gradient-green);
    color: #000000;
    box-shadow: 0 4px 15px rgba(126, 211, 33, 0.3);
}

.lang-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Language Switcher Responsive Design */
@media (max-width: 1024px) {
    .language-switcher {
        top: 1.5rem;
        right: 1.5rem;
        padding: 0.4rem;
    }
    
    .lang-btn {
        padding: 0.7rem 1.3rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .language-switcher {
        top: 1rem;
        right: 1rem;
        padding: 0.4rem;
    }
    
    .lang-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .language-switcher {
        top: 0.8rem;
        right: 0.8rem;
        padding: 0.3rem;
    }
    
    .lang-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .language-switcher {
        top: 0.6rem;
        right: 0.6rem;
        padding: 0.25rem;
    }
    
    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 13G-Style Color Variables */
:root {
    --bg-primary: #000000;              /* Pure black */
    --bg-card: #1c1c1e;                /* Dark card background */
    --text-primary: #FFFFFF;            /* White text */
    --text-muted: #8E8E93;              /* Muted gray */
    --pill-green: #7ED321;              /* Vibrant green */
    --pill-yellow: #F5A623;             /* Bright yellow */
    --pill-purple: #7B68EE;             /* Modern purple */
    --pill-pink: #FF6B9D;               /* Vibrant pink */
    --gradient-green: linear-gradient(135deg, #7ED321, #5BA617);
    --gradient-yellow: linear-gradient(135deg, #F5A623, #E8940F);
    --gradient-purple: linear-gradient(135deg, #7B68EE, #5A4FCF);
    --gradient-pink: linear-gradient(135deg, #FF6B9D, #E8527A);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(126, 211, 33, 0.3);
}

/* Premium Typography Scale */
:root {
    --text-hero: clamp(4rem, 12vw, 8rem);         /* 64-128px */
    --text-h1: clamp(2.5rem, 6vw, 4rem);         /* 40-64px */
    --text-h2: clamp(1.75rem, 4vw, 2.5rem);      /* 28-40px */
    --text-body: clamp(1.125rem, 2.5vw, 1.375rem); /* 18-22px */
    --text-small: 1rem;                           /* 16px */
    
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-extrabold: 800;
    --weight-black: 900;
}

/* Spacing System */
:root {
    --space-section: clamp(5rem, 10vw, 7.5rem);   /* 80-120px between sections */
    --space-element: clamp(2rem, 4vw, 3rem);      /* 32-48px between elements */
    --space-card: 2rem;                           /* 32px card padding */
    --space-button: 1rem 2rem;                    /* 16px vertical, 32px horizontal */
    
    --container-max: 1200px;
    --container-padding: clamp(1.5rem, 5vw, 2rem);
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-spinner.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner-content {
    text-align: center;
    color: var(--text-primary);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--text-muted);
    border-top: 3px solid var(--pill-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

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

.spinner-content h2 {
    font-size: var(--text-h1);
    font-weight: var(--weight-black);
    margin-bottom: 1rem;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.spinner-content p {
    color: var(--text-muted);
    font-size: var(--text-body);
}

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(126, 211, 33, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 166, 35, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(123, 104, 238, 0.1) 0%, transparent 50%),
        #000000;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { 
        background: 
            radial-gradient(circle at 20% 50%, rgba(126, 211, 33, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(245, 166, 35, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 50% 80%, rgba(123, 104, 238, 0.1) 0%, transparent 50%),
            #000000;
    }
    50% { 
        background: 
            radial-gradient(circle at 80% 30%, rgba(255, 107, 157, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 20% 70%, rgba(123, 104, 238, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 70% 20%, rgba(126, 211, 33, 0.1) 0%, transparent 50%),
            #000000;
    }
}

.hero-pills {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

/* Adjust floating pills on mobile devices to avoid text overlap */
@media (max-width: 768px) {
    .floating-pill {
        width: 80px;
        height: 30px;
    }
    
    .floating-pill .pill-text {
        font-size: 0.7rem;
    }
    
    /* Position pills closer to text from above, spread out horizontally */
    .floating-pill[style*="top: 20%"] {
        top: 15% !important;
        left: 15% !important;
    }
    
    .floating-pill[style*="top: 30%"] {
        top: 15% !important;
        right: 15% !important;
    }
    
    .floating-pill[style*="top: 60%"] {
        top: 75% !important;
        right: 2% !important;
    }
    
    .floating-pill[style*="bottom: 20%"] {
        bottom: 5% !important;
        left: 2% !important;
    }
    
    .floating-pill[style*="top: 80%"] {
        top: 85% !important;
        right: 5% !important;
    }
    
    .floating-pill[style*="top: 10%"] {
        top: 2% !important;
        left: 10% !important;
    }
}

/* Adjust floating pills on tablet screens */
@media (max-width: 1024px) and (min-width: 769px) {
    .floating-pill {
        width: 120px;
        height: 40px;
    }
    
    .floating-pill .pill-text {
        font-size: 0.8rem;
    }
    
    /* Spread pills out more on tablet screens */
    .floating-pill[style*="top: 20%"] {
        top: 12% !important;
        left: 10% !important;
    }
    
    .floating-pill[style*="top: 30%"] {
        top: 12% !important;
        right: 10% !important;
    }
    
    .floating-pill[style*="top: 60%"] {
        top: 75% !important;
        right: 8% !important;
    }
    
    .floating-pill[style*="bottom: 20%"] {
        bottom: 8% !important;
        left: 8% !important;
    }
    
    .floating-pill[style*="top: 80%"] {
        top: 82% !important;
        right: 12% !important;
    }
    
    .floating-pill[style*="top: 10%"] {
        top: 8% !important;
        left: 25% !important;
    }
}

.floating-pill {
    width: 200px;
    height: 60px;
    border-radius: 30px;
    position: absolute;
    animation: float 6s ease-in-out infinite;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-pill .pill-text {
    color: #000000;
    font-weight: var(--weight-bold);
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.3);
    user-select: none;
    pointer-events: none;
}

.pill-green {
    background: var(--gradient-green);
    animation-delay: 0s;
}

.pill-yellow {
    background: var(--gradient-yellow);
    animation-delay: 1s;
}

.pill-purple {
    background: var(--gradient-purple);
    animation-delay: 2s;
}

.pill-pink {
    background: var(--gradient-pink);
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    33% { 
        transform: translateY(-20px) rotate(2deg); 
    }
    66% { 
        transform: translateY(-10px) rotate(-2deg); 
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 2rem;
    margin: 0 auto;
}

/* Ensure proper spacing on mobile devices */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 1rem;
        max-width: 95%;
        text-align: center;
    }
    
    .hero-headline {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
        margin-bottom: 2rem;
    }
}

.hero-title {
    font-size: var(--text-hero);
    font-weight: var(--weight-black);
    margin-bottom: 2rem;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    line-height: 0.9;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    position: relative;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    }
    100% {
        text-shadow: 0 0 40px rgba(255, 255, 255, 0.6);
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    }
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%) scale(0.8);
    opacity: 0;
    animation: textReveal 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.text-reveal span:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes textReveal {
    0% {
        transform: translateY(100%) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateY(-10%) scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0%) scale(1);
        opacity: 1;
    }
}

.hero-headline {
    font-size: var(--text-h1);
    font-weight: var(--weight-bold);
    margin-bottom: 2rem;
    color: var(--text-primary);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: var(--text-body);
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: var(--weight-regular);
}

.cta-button {
    display: inline-block;
    background: transparent;
    color: var(--pill-green);
    padding: 1.5rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: var(--weight-bold);
    font-size: var(--text-body);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-premium);
    border: 2px solid var(--pill-green);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button::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.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: var(--gradient-green);
    color: #000000;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 25px 50px rgba(126, 211, 33, 0.4);
}

/* SERVICES SECTION */
.services {
    padding: var(--space-section) 0;
    background: var(--bg-primary);
}

.services h2 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: var(--weight-black);
    text-align: center;
    margin-bottom: var(--space-element);
    color: var(--text-primary);
    line-height: 1.1;
}

.services-pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pill-button {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    border-radius: 50px;
    color: #000000;
    text-decoration: none;
    font-weight: var(--weight-semibold);
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.pill-button::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 ease;
}

.pill-button:hover::before {
    left: 100%;
}

.pill-button:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.pill-button:hover .pill-arrow {
    transform: translateX(10px);
}

.pill-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.pill-text {
    flex: 1;
    font-weight: var(--weight-semibold);
}

.pill-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    font-weight: var(--weight-bold);
}

.pill-green { 
    background: var(--gradient-green); 
}

.pill-yellow { 
    background: var(--gradient-yellow); 
}

.pill-purple { 
    background: var(--gradient-purple); 
}

.pill-pink { 
    background: var(--gradient-pink); 
}

/* PORTFOLIO SECTION */
.portfolio {
    padding: var(--space-section) 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, #0a0a0a 100%);
}

.portfolio h2 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: var(--weight-black);
    text-align: center;
    margin-bottom: var(--space-element);
    color: var(--text-primary);
    line-height: 1.1;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}

/* Ensure equal heights for cards in the same row */
.portfolio-grid .project-card {
    min-height: 100%;
}

.project-card {
    background: rgba(28, 28, 30, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: visible;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 60px;
    height: 30px;
    background: var(--gradient-purple);
    border-radius: 15px;
    opacity: 0;
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.project-card::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    background: var(--gradient-yellow);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    animation: float 8s ease-in-out infinite reverse;
}

.project-card:hover::before,
.project-card:hover::after {
    opacity: 0.8;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.1);
}

.project-image {
    height: 250px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.placeholder-image {
    color: var(--text-muted);
    font-size: var(--text-h2);
    font-weight: var(--weight-medium);
    text-align: center;
    opacity: 0.7;
}

.project-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

.project-card h3 {
    font-size: var(--text-h2);
    font-weight: var(--weight-semibold);
    margin: 1.5rem 1.5rem 1rem;
    color: var(--text-primary);
    flex-shrink: 0;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
}

.project-card p {
    color: var(--text-muted);
    font-size: var(--text-body);
    line-height: 1.6;
    margin: 0 1.5rem 1.5rem;
    font-weight: var(--weight-regular);
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
}

.project-links {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-top: auto;
}

.learn-more-btn, .visit-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: var(--weight-medium);
    font-size: var(--text-small);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.learn-more-btn {
    background: transparent;
    color: var(--pill-green);
    border: 1px solid var(--pill-green);
}

.learn-more-btn:hover {
    background: var(--pill-green);
    color: #000000;
    transform: translateY(-2px);
}

.visit-btn {
    background: transparent;
    color: var(--pill-green);
    border: 1px solid var(--pill-green);
}

.visit-btn:hover {
    background: var(--pill-green);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(126, 211, 33, 0.3);
}

/* AUDIENCE SECTION */
.audience {
    padding: var(--space-section) 0;
    background: var(--bg-primary);
    text-align: center;
}

.audience h2 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: var(--weight-black);
    margin-bottom: 2rem;
    color: var(--text-primary);
    line-height: 1.1;
}

.audience-description {
    font-size: var(--text-body);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    font-weight: var(--weight-regular);
}

.industry-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.industry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.industry-item:hover {
    transform: translateY(-8px);
    border-color: var(--pill-green);
    box-shadow: var(--shadow-card);
}

.industry-item .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.industry-item .label {
    font-size: var(--text-body);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
}

/* CONTACT SECTION */
.contact {
    padding: var(--space-section) 0;
    background: linear-gradient(180deg, #0a0a0a 0%, var(--bg-primary) 100%);
}

.contact h2 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: var(--weight-black);
    text-align: center;
    margin-bottom: var(--space-element);
    color: var(--text-primary);
    line-height: 1.1;
}

.contact-grid {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.contact-direct {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    padding: var(--space-card);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-direct h3 {
    font-size: var(--text-h2);
    font-weight: var(--weight-semibold);
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.whatsapp-btn {
    display: block;
    background: transparent;
    color: #25D366;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: var(--weight-semibold);
    text-align: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
    border: 2px solid #25D366;
}

.whatsapp-btn:hover {
    background: #25D366;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
}

.phone, .email {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-body);
    font-weight: var(--weight-regular);
    margin-bottom: 0.5rem;
}

.email a {
    color: var(--pill-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.email a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}


.site-footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 3rem;
}

.site-footer p {
    color: var(--text-muted);
    font-size: var(--text-body);
    font-weight: var(--weight-regular);
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--bg-card);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-premium);
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--pill-green);
}

#modalBody h2 {
    color: var(--text-primary);
    font-size: var(--text-h1);
    margin-bottom: 1rem;
    font-weight: var(--weight-black);
}

#modalBody h3 {
    color: var(--pill-green);
    font-size: var(--text-h2);
    margin: 2rem 0 1rem;
    font-weight: var(--weight-semibold);
}

#modalBody p {
    color: var(--text-muted);
    font-size: var(--text-body);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-weight: var(--weight-regular);
}

#modalBody ul {
    color: var(--text-muted);
    margin-left: 2rem;
    margin-bottom: 1rem;
}

#modalBody li {
    margin-bottom: 0.5rem;
    font-weight: var(--weight-regular);
}

#modalBody .project-links {
    margin-top: 2rem;
    padding: 0;
}

/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE DESIGN - Enhanced for all screen sizes */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: clamp(4rem, 10vw, 7rem);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .services-pills {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(3.5rem, 12vw, 6rem);
    }
    
    .hero-headline {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .services-pills {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.2rem;
    }
    
    .industry-icons {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
    
    .floating-pill {
        width: 160px;
        height: 50px;
    }
    
    .floating-pill .pill-text {
        font-size: 1rem;
    }
}

/* Mobile Landscape and Small Tablets */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(3rem, 15vw, 6rem);
    }
    
    .hero-headline {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
        margin-bottom: 2rem;
    }
    
    .services-pills {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .industry-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .project-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .learn-more-btn, .visit-btn {
        text-align: center;
        width: 100%;
        padding: 0.75rem 1.5rem;
    }
    
    .floating-pill {
        width: 150px;
        height: 45px;
    }
    
    .floating-pill .pill-text {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }
    
    .modal-content {
        margin: 3% auto;
        padding: 1.5rem;
        width: 95%;
        max-height: 85vh;
    }
    
    .close {
        top: 0.8rem;
        right: 1rem;
        font-size: 1.8rem;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .hero-content {
        padding: 0 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 18vw, 5rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-headline {
        font-size: clamp(1.5rem, 10vw, 2rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 5vw, 1.1rem);
        margin-bottom: 2rem;
    }
    
    .contact-direct {
        padding: 1.5rem;
    }
    
    .industry-icons {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .industry-item {
        padding: 1.5rem 1rem;
    }
    
    .industry-item .icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .industry-item .label {
        font-size: 1rem;
    }
    
    .modal-content {
        margin: 5% auto;
        padding: 1.2rem;
        width: 95%;
        max-height: 90vh;
    }
    
    .close {
        top: 0.5rem;
        right: 0.8rem;
        font-size: 1.6rem;
    }
    
    .floating-pill {
        width: 120px;
        height: 35px;
    }
    
    .floating-pill .pill-text {
        font-size: 0.8rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .pill-button {
        padding: 1.2rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .pill-icon {
        font-size: 1.3rem;
        margin-right: 0.8rem;
    }
    
    .pill-arrow {
        font-size: 1.3rem;
    }
    
    .project-card h3 {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
        margin: 1.2rem 1.2rem 0.8rem;
    }
    
    .project-card p {
        font-size: clamp(0.9rem, 4vw, 1rem);
        margin: 0 1.2rem 1.2rem;
    }
    
    .project-links {
        padding: 0 1.2rem 1.2rem;
    }
    
    .learn-more-btn, .visit-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 360px) {
    .hero-content {
        padding: 0 0.8rem;
    }
    
    .container {
        padding: 0 0.8rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 20vw, 4rem);
    }
    
    .hero-headline {
        font-size: clamp(1.3rem, 12vw, 1.8rem);
    }
    
    .hero-subtitle {
        font-size: clamp(0.8rem, 6vw, 1rem);
    }
    
    .floating-pill {
        width: 100px;
        height: 30px;
    }
    
    .floating-pill .pill-text {
        font-size: 0.7rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .pill-button {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }
    
    .project-card h3 {
        font-size: clamp(1.1rem, 6vw, 1.3rem);
    }
    
    .project-card p {
        font-size: clamp(0.8rem, 5vw, 0.9rem);
    }
    
    .learn-more-btn, .visit-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .modal-content {
        margin: 2% auto;
        padding: 1rem;
        width: 98%;
    }
    
    .close {
        top: 0.3rem;
        right: 0.5rem;
        font-size: 1.4rem;
    }
}

/* Landscape Mobile Devices */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
        margin-bottom: 1rem;
    }
    
    .hero-headline {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 3vw, 1rem);
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
    
    .floating-pill {
        width: 120px;
        height: 35px;
    }
    
    .floating-pill .pill-text {
        font-size: 0.8rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-title {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .floating-pill .pill-text {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .floating-pill {
        animation: none;
    }
    
    .hero-title {
        animation: none;
    }
    
    .text-reveal span {
        animation: none;
        transform: none;
    }
    
    .scroll-animate {
        transition: none;
    }
    
    .cta-button::before {
        display: none;
    }
    
    .pill-button::before {
        display: none;
    }
}

/* SCROLLBAR STYLING */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--pill-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pill-yellow);
}

/* AOS Animation Overrides */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}