/* ==========================================================================
   CSS Variables & Fonts
   ========================================================================== */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-primary: #201C39;
    --color-secondary: #FFFFFF;
    --color-accent: #007BFF;
    --color-accent-hover: #0056b3;
    
    --color-glass-bg: rgba(255, 255, 255, 0.03);
    --color-glass-border: rgba(255, 255, 255, 0.08);
    
    --font-base: 'Inter', system-ui, -apple-system, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-base);
    background-color: var(--color-primary);
    color: var(--color-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img, svg {
    max-width: 100%;
    height: auto;
}

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

.text-center {
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-accent) 0%, #66b2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    font-size: 1rem;
}

.btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-secondary);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background-color: #006ae6;
    box-shadow: 0 12px 32px rgba(0, 123, 255, 0.5);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--color-glass-bg);
    color: var(--color-secondary);
    border: 1px solid var(--color-glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

.btn-outline {
    border-color: var(--color-glass-border);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-secondary);
}

.btn-mail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    background-color: #FFFFFF;
    color: #000000;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    cursor: default;
}

.btn-mail:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.2);
}

.btn-mail img {
    height: 20px;
    width: auto;
    display: block;
}

.btn-mail span {
    margin-right: 0.5rem;
    font-size: 0.95rem;
}

.footer-mail-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
    padding: 6px 10px;
    border-radius: 6px;
    vertical-align: middle;
}

.footer-mail-badge img {
    height: 16px;
    display: block;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(32, 28, 57, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-glass-border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.header-logo-icon {
    height: 52px; /* Increased to make logo much more prominent */
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--color-secondary);
}

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

.nav-links a:not(.btn) {
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

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

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

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

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

.hero-bg-glow {
    position: absolute;
    top: 10%;
    right: 0%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.12) 0%, rgba(32, 28, 57, 0) 60%);
    z-index: -1;
    filter: blur(60px);
    animation: float 12s infinite ease-in-out alternate;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1.5px;
}

.subheadline {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    margin: 0 auto 3rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 700px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    padding: 8rem 0;
    position: relative;
    background: linear-gradient(180deg, var(--color-primary) 0%, #1c1833 100%);
}

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

.service-card {
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    border-radius: 32px;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.04), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

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

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15) 0%, rgba(0, 123, 255, 0.05) 100%);
    border: 1px solid rgba(0, 123, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--color-accent);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.service-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.05rem;
    line-height: 1.7;
    flex-grow: 1;
}

/* ==========================================================================
   Service Details Section
   ========================================================================== */
.service-details {
    padding: 6rem 0 8rem;
    position: relative;
    background: #1c1833;
}

.service-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 8rem;
}

.service-detail-card:last-child {
    margin-bottom: 0;
}

.service-detail-card.reverse .service-detail-content {
    grid-column: 2;
    grid-row: 1;
}

.service-detail-card.reverse .service-detail-visual {
    grid-column: 1;
    grid-row: 1;
}

.service-detail-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-secondary);
}

.service-lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.models-title {
    font-size: 1.2rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.service-models {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.model-box {
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    transition: var(--transition-smooth);
    border-left: 4px solid var(--color-accent);
}

.model-box:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.2);
    border-left-color: #66b2ff;
}

.model-box h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.model-box p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

.service-detail-visual {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-placeholder {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border-radius: 32px;
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.visual-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 90deg at 50% 50%, rgba(0, 123, 255, 0) 0%, rgba(0, 123, 255, 0.1) 50%, rgba(0, 123, 255, 0) 100%);
    animation: rotate 10s linear infinite;
    z-index: 0;
}

.visual-placeholder svg {
    position: relative;
    z-index: 1;
    width: 120px;
    height: 120px;
    color: rgba(0, 123, 255, 0.4);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.mt-2 {
    margin-top: 1rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.about-content {
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    border-radius: 40px;
    padding: 5rem 3rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 40px 80px rgba(0,0,0,0.2);
}

.about-content::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(40px);
}

.about-content h2, .about-content p {
    position: relative;
    z-index: 1;
}

.about-content p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.9;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: #161327;
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo-text {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    max-width: 300px;
    line-height: 1.6;
}

.main-footer h4 {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.main-footer ul li {
    margin-bottom: 0.8rem;
}

.main-footer ul a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

.main-footer ul a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

/* ==========================================================================
   Animations & Reveal
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-40px) scale(1.05); }
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 992px) {
    .service-detail-card,
    .service-detail-card.reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .service-detail-card.reverse .service-detail-content {
        grid-column: 1;
        grid-row: 2;
    }
    
    .service-detail-card.reverse .service-detail-visual {
        grid-column: 1;
        grid-row: 1;
    }
    
    .visual-placeholder {
        min-height: 300px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
    
    .about-content {
        padding: 4rem 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* In a real app, you'd add a mobile menu toggle here */
    }
    
    .hero {
        padding: 8rem 1.5rem 4rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .services {
        padding: 5rem 0;
    }
    
    .about {
        padding: 5rem 0;
    }
    
    .footer-grid {
        gap: 2.5rem;
    }
}
