/* ==========================================================================
   CSS Variables & Typography
   ========================================================================== */
   :root {
    --bg-color: #0d0f17;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    
    --primary-color: #6366f1; /* Indigo */
    --secondary-color: #ec4899; /* Pink */
    --accent-color: #14b8a6; /* Teal */
    
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(12px);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientFlow 5s ease infinite backwards;
}

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

.section {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-family: var(--font-sans);
    border: none;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-muted);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-color);
    transform: translateY(-3px);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
    background: rgba(13, 15, 23, 0);
}

.navbar.scrolled {
    background: rgba(13, 15, 23, 0.85);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 900;
    color: white;
    text-decoration: none;
    letter-spacing: -1px;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a:not(.btn):hover {
    color: white;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 101;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: var(--transition-smooth);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: rgba(13, 15, 23, 0.95);
    backdrop-filter: var(--glass-blur);
    border-left: 1px solid var(--card-border);
    z-index: 99;
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-link.btn {
    color: white;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 5rem;
    overflow: hidden;
}

/* Animated Background Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.5;
    animation: blobFloat 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    top: 10%;
    left: 10%;
    width: 40vw;
    height: 40vw;
    background: rgba(99, 102, 241, 0.4); /* Indigo */
}

.blob-2 {
    bottom: 0;
    right: 5%;
    width: 35vw;
    height: 35vw;
    background: rgba(236, 72, 153, 0.3); /* Pink */
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 50%;
    width: 30vw;
    height: 30vw;
    background: rgba(20, 184, 166, 0.3); /* Teal */
    animation-delay: -10s;
}

.hero-content {
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Image Mockup */
.hero-graphic {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    max-width: 120%;
    max-height: 120%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    z-index: 1;
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

.float-badge {
    position: absolute;
    bottom: -5%;
    right: -10%;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: white;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    animation: floatFloat 8s ease-in-out infinite alternate;
    z-index: 2;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    z-index: 10;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    margin: 10px auto 0;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s cubic-bezier(0.15, 0.41, 0.69, 0.94) infinite;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.service-card {
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.service-card p {
    color: var(--text-muted);
}

/* ==========================================================================
   Materials Section
   ========================================================================== */
.materials-section {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.dual-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.materials-text h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.materials-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.quality-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quality-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.quality-list .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(20, 184, 166, 0.2);
    color: var(--accent-color);
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.quality-list strong {
    color: white;
    font-size: 1.1rem;
}

.materials-graphics {
    position: relative;
    height: 400px;
}

.floating-materials {
    position: relative;
    width: 100%;
    height: 100%;
}

.mat-card {
    position: absolute;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    font-weight: 600;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: floatFloat 8s ease-in-out infinite alternate;
}

.mat-card:nth-child(1) { top: 10%; left: 0%; animation-delay: 0s; }
.mat-card:nth-child(2) { top: 30%; right: 10%; animation-delay: 1s; background: rgba(99, 102, 241, 0.15); border-color: rgba(99, 102, 241, 0.3); }
.mat-card:nth-child(3) { top: 50%; left: 20%; animation-delay: 2s; }
.mat-card:nth-child(4) { bottom: 20%; right: 0%; animation-delay: 3s; background: rgba(236, 72, 153, 0.15); border-color: rgba(236, 72, 153, 0.3);}
.mat-card:nth-child(5) { bottom: 0%; left: 10%; animation-delay: 4s; }

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    padding: 8rem 0;
}

.contact-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.contact-box h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.contact-box > p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: var(--transition-smooth);
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    word-break: break-word;
    text-align: center;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.contact-person {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
    width: 100%;
    max-width: 300px;
}

.contact-person p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.contact-person strong {
    color: white;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    border-top: 1px solid var(--card-border);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.4);
}

.footer-bottom p {
    margin: 0.5rem 0;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

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

@keyframes floatFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-30px) rotate(3deg); }
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; height: 8px; }
    50% { top: 20px; opacity: 0; height: 12px; }
    100% { top: 6px; opacity: 0; height: 8px; }
}

/* Initial Load Animations */
.animate-on-load { opacity: 0; }
.fade-in { animation: loadFadeIn 1s forwards ease-out; }
.slide-up { animation: loadSlideUp 1s forwards cubic-bezier(0.2, 0.8, 0.2, 1); }
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

@keyframes loadFadeIn {
    to { opacity: 1; }
}

@keyframes loadSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll Trigger Animations (Handled by JS) */
.scroll-anim {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-anim.fade-up { transform: translateY(50px); }
.scroll-anim.slide-left { transform: translateX(50px); }
.scroll-anim.slide-right { transform: translateX(-50px); }

.scroll-anim.visible {
    opacity: 1;
    transform: translate(0) !important; /* override transforms */
}

.stagger-1 { transition-delay: 0.1s; transform: translateY(40px); }
.stagger-2 { transition-delay: 0.2s; transform: translateY(40px); }
.stagger-3 { transition-delay: 0.3s; transform: translateY(40px); }
.stagger-4 { transition-delay: 0.4s; transform: translateY(40px); }


/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 2rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-graphic {
        display: none; /* simple way to disable the complex layout on mobile for cleaner hero */
    }
    .hero-graphic.disable-mobile {
        display: none;
    }

    .dual-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .materials-graphics {
        height: 300px;
    }
}

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

    .mobile-menu-btn {
        display: flex;
    }

    .section {
        padding: 4rem 0;
    }

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

    .contact-box {
        padding: 2rem 1rem;
    }
    
    .contact-methods {
        width: 100%;
    }
    
    .contact-link {
        font-size: 1.1rem;
        padding: 1rem;
        width: 100%;
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
        border-radius: 20px;
    }

    .materials-graphics {
        height: 550px;
    }
    
    .mat-card {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        width: max-content;
        max-width: 90%;
    }
    .mat-card:nth-child(1) { top: 0%; left: 0%; }
    .mat-card:nth-child(2) { top: 20%; right: 0%; }
    .mat-card:nth-child(3) { top: 40%; left: 5%; }
    .mat-card:nth-child(4) { top: 60%; right: 5%; }
    .mat-card:nth-child(5) { top: 80%; left: 0%; }
}
