/* IQinternz Premium Design System */
:root {
    /* Colors */
    --color-primary: #F5D020;
    /* Premium Yellow */
    --color-primary-dark: #D4B215;
    --color-secondary: #000000;
    /* Black */
    --color-text: #1D1D1F;
    /* Apple-like dark gray */
    --color-text-light: #86868b;
    --color-bg: #FFFFFF;
    /* White */
    --color-bg-alt: #F5F5F7;
    /* Apple-like light gray */

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --blur-amount: 20px;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lora', serif;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 48px;
    --spacing-xxl: 96px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 980px;
    /* Pill shape */
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    box-shadow: 0 4px 15px rgba(245, 208, 32, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 208, 32, 0.4);
}

/* Navigation - Glassmorphism */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    position: relative;
}

.logo {
    position: absolute;
    left: 0;
}

.logo img {
    height: 180px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--color-secondary);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 10px;
    z-index: 1001;
}

.hamburger i {
    font-size: 28px;
    color: var(--color-secondary);
    transition: color 0.3s ease;
}

.hamburger:hover i {
    color: var(--color-primary);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px 30px;
        gap: 30px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 18px;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links a::after {
        display: none;
    }
}


/* Hero Section - Advanced */
.hero {
    padding: 200px 0 140px;
    text-align: center;
    background:
        radial-gradient(circle at 10% 20%, rgba(245, 208, 32, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(245, 208, 32, 0.05) 0%, transparent 40%);
    overflow: hidden;
    position: relative;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero p {
    font-size: 24px;
    max-width: 700px;
    margin: 0 auto 48px;
    color: var(--color-text-light);
    font-weight: 400;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero .btn-primary {
    padding: 18px 40px;
    font-size: 18px;
    background: var(--color-secondary);
    /* Black button for contrast */
    color: var(--color-primary);
    /* Yellow text */
    border: 1px solid var(--color-secondary);
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero .btn-primary:hover {
    background: var(--color-primary);
    color: var(--color-secondary);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(245, 208, 32, 0.4);
    transform: translateY(-2px) scale(1.02);
}

/* Card & Grid System - Glassmorphism & Tilt */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.1);
    border-color: rgba(245, 208, 32, 0.4);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    font-size: 26px;
    margin-bottom: 16px;
    color: var(--color-secondary);
}

.card p {
    font-size: 17px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

.card .role {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary-dark);
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
}

/* Stats Section - Animated */
.stats-section {
    padding: 100px 0;
    background: #fff;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    text-align: center;
}

.stat-item h3 {
    font-size: 64px;
    color: var(--color-secondary);
    margin-bottom: 8px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #444 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item p {
    font-size: 16px;
    color: var(--color-text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Our Work Section - Infinite Scroll */
.our-work-section {
    padding: 60px 0;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* Hide scrollbar */
}

.scrolling-wrapper {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    width: max-content;
    /* Allow content to overflow for animation */
    animation: scroll 20s linear infinite;
}

.scrolling-wrapper:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-280px * 5 - 20px * 5));
        /* Move by width of one set (5 cards + gaps) */
    }
}

.scroll-card {
    flex: 0 0 auto;
    width: 280px;
    /* Reduced from 350px */
    height: 180px;
    /* Reduced from 250px */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
    scroll-snap-align: center;
    /* Center alignment feels better */
    position: relative;
}

.scroll-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.scroll-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.scroll-card:hover img {
    transform: scale(1.05);
}

/* Client Logos Specific Styles */
.clients-section .scroll-card img {
    object-fit: contain;
    padding: 20px;
    background: #fff;
}

.clients-section .scroll-card:hover img {
    transform: scale(1.1);
}

/* Features Section */
.features-section {
    padding: 140px 0;
    background: var(--color-bg-alt);
    position: relative;
}

.feature-card {
    background: #fff;
    padding: 50px;
    border-radius: 30px;
    transition: var(--transition-smooth);
    height: 100%;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(245, 208, 32, 0.15);
    border-radius: 20px;
    color: var(--color-primary-dark);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 24px;
    color: var(--color-secondary);
}

/* Program Card Specifics */
.program-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.program-card .btn-link {
    color: var(--color-primary-dark);
    font-weight: 600;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.program-card .btn-link:hover {
    gap: 12px;
    /* Arrow movement */
}

/* Premium Form Styles */
.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 16px;
    font-family: var(--font-body);
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    color: var(--color-text);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(245, 208, 32, 0.1);
}

.form-label {
    position: absolute;
    left: 20px;
    top: 18px;
    color: #999;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    background: #fff;
    padding: 0 4px;
}

.form-control:focus~.form-label,
.form-control:not(:placeholder-shown)~.form-label {
    top: -10px;
    left: 16px;
    font-size: 12px;
    color: var(--color-primary-dark);
    font-weight: 600;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Testimonials - Modern */
.testimonials-section {
    padding: 140px 0;
    background: #fff;
}

.testimonial-card {
    background: var(--color-bg-alt);
    padding: 50px;
    border-radius: 30px;
    position: relative;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    background: #fff;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.05);
}

.testimonial-quote {
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 32px;
    font-style: italic;
    font-family: var(--font-heading);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Partners - Clean */
.partners-section {
    padding: 100px 0;
    text-align: center;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 80px;
    align-items: center;
    opacity: 0.5;
    margin-top: 50px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.partners-grid:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.partner-logo {
    font-size: 28px;
    font-weight: 800;
    color: #000;
    cursor: default;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 82px;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 86px;
    }
}


/* Footer - Light Theme Upgrade */
footer {
    background-color: #f5f5f7;
    padding: 80px 0 40px;
    margin-top: 120px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
}

.footer-grid-light {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: start;
    width: 100%;
}

.footer-brand p {
    color: #666;
    line-height: 1.6;
    margin-top: 15px;
    max-width: 350px;
}

.footer-column h4 {
    color: #1d1d1f;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #000;
    text-decoration: underline;
}

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

.social-icon-light {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon-light:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
    color: #000;
    box-shadow: 0 6px 15px rgba(245, 208, 32, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 30px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 20px;
}

@media (max-width: 768px) {
    .footer-grid-light {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #f0c020 100%);
    color: #000;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-glow 2s infinite;
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #f0c020 0%, var(--color-primary) 100%);
    transform: scale(1.1);
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 208, 32, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(245, 208, 32, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 208, 32, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}