/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

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

:root {
    /* Primary Hero Colors */
    --primary-purple: #667eea;
    --primary-violet: #764ba2;
    --primary-pink: #f093fb;
    --primary-cyan: #4facfe;
    --primary-light-cyan: #00f2fe;
    
    /* Secondary Colors */
    --secondary-dark: #0F0A19;
    --secondary-darker: #1A0B2E;
    --secondary-navy: #16213E;
    --secondary-blue: #0F3460;
    --secondary-deep-purple: #533A7B;
    
    /* Accent Colors */
    --accent-gold: #FFD700;
    --accent-platinum: #E5E4E2;
    --accent-silver: #C0C0C0;
    
    /* Neutral Colors */
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-light: #fafafa;
    --bg-ultra-light: #f8f9ff;
    --white: #ffffff;
    --black: #000000;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-secondary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #0F0A19 0%, #1A0B2E 25%, #16213E 50%, #0F3460 75%, #533A7B 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #667eea 50%, #4facfe 100%);
    --gradient-light: linear-gradient(135deg, #f8f9ff 0%, #ffffff 50%, #fafafa 100%);
    
    /* Shadows */
    --shadow-primary: 0 20px 60px rgba(102, 126, 234, 0.15);
    --shadow-secondary: 0 20px 60px rgba(240, 147, 251, 0.15);
    --shadow-dark: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-soft: 0 10px 40px rgba(102, 126, 234, 0.08);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    font-weight: 400;
    letter-spacing: -0.01em;
    overflow-x: hidden;
}

.luxury-font {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
header {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: none;
}

header.scrolled {
    background: rgba(15, 10, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(102, 126, 234, 0.3);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--primary-purple); /* Fallback for browsers that don't support background-clip: text */
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    letter-spacing: -0.03em;
    background-size: 300% 300%;
    animation: logoGradient 6s ease-in-out infinite;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    letter-spacing: 0.01em;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background: none;
    border: none;
    padding: 0.5rem;
}

.mobile-menu span {
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    display: block;
}

/* Hero Section */
.hero {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(240, 147, 251, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(75, 172, 254, 0.08) 0%, transparent 50%);
    z-index: 1;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    margin-bottom: 2rem;
    font-weight: 600;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--white); /* Fallback */
    background-size: 300% 300%;
    animation: gradientMove 6s ease-in-out infinite;
}

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

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.cta-button {
    display: inline-block;
    background: var(--gradient-hero);
    color: var(--white);
    padding: 18px 45px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-primary);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    background-size: 300% 300%;
    animation: buttonGradient 4s linear infinite;
    border: none;
    cursor: pointer;
}

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

.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.6s;
}

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

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 25px 80px rgba(102, 126, 234, 0.5);
    animation-duration: 2s;
}

/* Services Section */
.services {
    padding: 120px 0;
    background: var(--gradient-light);
}

.section-title {
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 4rem;
    color: var(--secondary-dark);
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    opacity: 0.03;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-primary);
    border-color: var(--primary-purple);
}

.service-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 24px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-dark);
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    position: relative;
    z-index: 2;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
    position: relative;
    z-index: 2;
    font-weight: 400;
}

/* Stats Section */
.stats {
    padding: 120px 0;
    background: var(--gradient-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(240, 147, 251, 0.08) 0%, transparent 50%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-card {
    padding: 2.5rem;
    position: relative;
}

.stat-number {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--primary-cyan); /* Fallback */
    display: block;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* About Section */
.about {
    padding: 120px 0;
    background: var(--white);
}

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

.about-text h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    color: var(--secondary-dark);
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-weight: 400;
}

.about-features {
    list-style: none;
    margin-top: 3rem;
}

.about-features li {
    padding: 1rem 0;
    display: flex;
    align-items: center;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
}

.about-features li::before {
    content: '✓';
    color: var(--white);
    font-weight: bold;
    margin-right: 1.5rem;
    font-size: 1.3rem;
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
    height: 500px;
}

.about-image-item {
    background: var(--gradient-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-dark);
    font-size: 3rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-primary);
}

.about-image-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.about-image-item:hover::before {
    opacity: 0.1;
}

.about-image-item:first-child {
    grid-column: 1 / 3;
    font-size: 4rem;
    background: var(--gradient-primary);
    color: var(--white);
}

.about-image-item:nth-child(3) {
    background: var(--gradient-secondary);
    color: var(--white);
}

/* Newsletter Section */
.newsletter {
    padding: 100px 0;
    background: var(--bg-ultra-light);
    color: var(--text-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
}

.newsletter h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    position: relative;
    z-index: 2;
    color: var(--secondary-dark);
}

.newsletter p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    font-weight: 400;
    color: var(--text-light);
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.newsletter-input {
    flex: 1;
    min-width: 300px;
    padding: 1.2rem 1.5rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 25px;
    font-size: 1rem;
    background: var(--white);
    color: var(--text-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    font-family: inherit;
}

.newsletter-input::placeholder {
    color: var(--accent-gold);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.newsletter-btn {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    letter-spacing: 0.01em;
    font-family: inherit;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    color: var(--secondary-dark);
    letter-spacing: -0.02em;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.contact-details {
    list-style: none;
    margin-bottom: 3rem;
}

.contact-details li {
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.contact-details li:last-child {
    border-bottom: none;
}

.contact-details li::before {
    content: '📍';
    margin-right: 1.5rem;
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details li:nth-child(2)::before {
    content: '📧';
}

.contact-details li:nth-child(3)::before {
    content: '📞';
}

.contact-form {
    background: var(--bg-ultra-light);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    color: var(--secondary-dark);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--white);
    transition: all 0.3s ease;
    font-family: inherit;
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.1);
}

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

.submit-btn {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
    width: 100%;
    font-family: inherit;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.form-group input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #f093fb;
}

.form-group input:valid:not(:focus):not(:placeholder-shown) {
    border-color: var(--primary-purple);
}

.form-message {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

/* Footer */
footer {
    background: var(--gradient-dark);
    color: var(--white);
    text-align: center;
    padding: 3rem 0;
}

footer p {
    font-size: 0.95rem;
    opacity: 0.8;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
    
    .about-content,
    .contact-content {
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .section-title {
        margin-bottom: 3rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        height: 300px;
    }
    
    .about-image-item {
        font-size: 2rem;
    }

    .about-image-item:first-child {
        font-size: 2.5rem;
    }

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

    .service-card {
        padding: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-input {
        min-width: 100%;
        max-width: 400px;
    }

    .newsletter-btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 60px 0 40px;
    }

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }

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

    nav {
        padding: 1rem 0;
    }

    .logo {
        font-size: 2rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation for scroll reveal */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Enhanced hover effects */
.service-card,
.stat-card {
    will-change: transform;
}

/* Mobile menu animation */
.nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 10, 25, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-primary);
    gap: 1.5rem;
    animation: slideDown 0.3s ease;
}

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

/* Animation keyframes */
@keyframes fadeOut {
    from { opacity: 0.6; transform: scale(1); }
    to { opacity: 0; transform: scale(2.5); }
}

@keyframes slideInRight {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes slideOutRight {
    from { 
        transform: translateX(0); 
        opacity: 1; 
    }
    to { 
        transform: translateX(100%); 
        opacity: 0; 
    }
}

/* Performance optimizations */
.hero,
.service-card,
.about-image-item {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Preload critical animations */
@keyframes preload {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Fix for text selection */
::selection {
    background-color: rgba(102, 126, 234, 0.3);
    color: var(--text-dark);
}

::-moz-selection {
    background-color: rgba(102, 126, 234, 0.3);
    color: var(--text-dark);
}
