* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    width: 100%;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    font-size: 15px; /* Base text size */
}

/* Global Container */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Header - Fixed */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

/* Logo + Animated Brand Text */
.logo-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-brand img {
    height: 144px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(100, 106, 217, 0.7));
    transition: transform 0.4s ease;
}

.logo-brand:hover img {
    transform: scale(1.08);
}

.brand-text {
    margin-left: 28px;
    position: relative;
    overflow: hidden;
}

.text-inner {
    display: inline-block;
    font-size: 3.2rem;
    font-weight: 900;
    background: linear-gradient(90deg, #646ad9, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: glowPulse 3s ease-in-out infinite alternate;
}

.text-inner::before {
    content: 'Link AI';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #a855f7, transparent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: linkWave 4s linear infinite;
    opacity: 0.6;
}

@keyframes glowPulse {
    0% { text-shadow: 0 0 20px rgba(168, 85, 247, 0.5); }
    100% { text-shadow: 0 0 40px rgba(168, 85, 247, 0.9), 0 0 60px rgba(100, 106, 217, 0.6); }
}

@keyframes linkWave {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Desktop Navigation */
.desktop-nav a {
    margin-left: 45px;
    font-size: 1.25rem;
    font-weight: 600;
    background: linear-gradient(90deg, #646ad9, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    position: relative;
    transition: all 0.4s ease;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #646ad9, #a855f7);
    transition: width 0.5s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.desktop-nav a:hover {
    transform: translateY(-4px);
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: #a855f7;
    font-size: 2rem;
    cursor: pointer;
}

/* Mobile Menu Overlay - Fixed selector typos */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 400px;
    height: 100%;
    background: linear-gradient(145deg, #0a0a1a, #1a1a2e);
    padding: 80px 40px 40px;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.18, 1);
    box-shadow: -15px 0 40px rgba(100, 106, 217, 0.3);
}

.mobile-menu-overlay.open .mobile-menu {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #646ad9;
    font-size: 2.5rem;
    cursor: pointer;
}

.mobile-nav a {
    display: block;
    margin: 35px 0;
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(90deg, #646ad9, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.mobile-tagline {
    margin-top: 100px;
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.8;
    line-height: 1.6;
}

/* Home Page Hero */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
}

.hero-content {
    max-width: 90%;
}

#typewriter {
    font-size: 3.4rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.tagline {
    font-size: 1.9rem;
    margin: 20px 0;
    font-weight: 500;
}

.subtitle {
    font-size: 1.45rem;
    margin: 30px 0 50px;
    opacity: 0.92;
    line-height: 1.8;
}

.cta-btn {
    padding: 20px 45px;
    font-size: 1.3rem; /* Changed from vw to rem for consistency */
    font-weight: bold;
    background: linear-gradient(45deg, #646ad9, #a855f7);
    color: white;
    border-radius: 60px;
    text-decoration: none;
    box-shadow: 0 12px 35px rgba(168, 85, 247, 0.5);
    transition: all 0.4s ease;
}

.cta-btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 50px rgba(168, 85, 247, 0.7);
}

#typewriter::after {
    content: '|';
    color: #a855f7;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1 }
    50% { opacity: 0 }
}

/* Particles Background (Home only) */
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Subpages General Layout */
.page-main, .services-main {
    min-height: 100vh;
    padding-top: 180px;
    position: relative;
    z-index: 2;
}

.service-feature {
    padding: 80px 20px;
    background: rgba(10, 10, 20, 0.7);
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.service-text h2 {
    font-size: 2.8rem; /* Consistent rem-based large heading */
    margin-bottom: 30px;
    background: linear-gradient(90deg, #646ad9, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-intro {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 600px;
}

/* Modern Checkmark List */
.feature-list.modern {
    list-style: none;
    padding-left: 0;
    margin: 40px 0;
}

.feature-list.modern li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 28px;
    font-size: 1.2rem;
    line-height: 1.7;
}

.feature-list.modern li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    color: #a855f7;
    font-size: 1.9rem;
    font-weight: bold;
    width: 40px;
    text-align: center;
}

/* Video Section */
.service-video {
    align-self: start;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.4);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-caption {
    text-align: center;
    margin-top: 25px;
    font-size: 1.1rem;
    opacity: 0.85;
    font-style: italic;
}

/* Compliance Note Below Video - Fixed selector typo */
.compliance-note.video-below {
    background: rgba(168, 85, 247, 0.12);
    border-left: 6px solid #a855f7;
    padding: 30px;
    border-radius: 16px;
    margin-top: 40px;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

/* CTA Section */
.cta-section {
    padding: 120px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(100, 106, 217, 0.25), rgba(168, 85, 247, 0.25));
}

.cta-section h2.small {
    font-size: 2.4rem; /* Consistent, readable size instead of vw */
    margin-bottom: 40px;
    background: linear-gradient(90deg, #646ad9, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-btn {
    padding: 16px 40px;
    font-size: 1.3rem; /* Fixed readable size */
    font-weight: bold;
    background: linear-gradient(45deg, #646ad9, #a855f7);
    color: white;
    border-radius: 60px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.5);
    transition: all 0.4s ease;
    display: inline-block;
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.7);
}

/* Footer */
.footer {
    padding: 80px 20px;
    background: linear-gradient(to top, #000, rgba(10, 10, 20, 0.95));
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-main-text {
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 30px;
    opacity: 0.9;
}

.footer-main-text strong {
    background: linear-gradient(90deg, #646ad9, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.2rem;
}

.footer-nav a {
    background: linear-gradient(90deg, #646ad9, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 25px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .logo-brand img { height: 120px; }
    .text-inner { font-size: 2.8rem; }
    .hero, .page-main, .services-main { padding-top: 160px; }
    .service-grid { gap: 60px; }
}

@media (max-width: 900px) {
    .desktop-nav { display: none; }
    .hamburger { display: block !important; }
    .logo-brand img { height: 100px; }
    .text-inner { font-size: 2.4rem; margin-left: 20px; }
    .hero, .page-main, .services-main { padding-top: 140px; }
    .service-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    .service-text h2 { font-size: 2.4rem; }
    .feature-list.modern li {
        padding-left: 45px;
        font-size: 1.15rem;
    }
    .compliance-note.video-below { margin: 40px auto 0; max-width: 90%; }
}

@media (max-width: 600px) {
    .logo-brand img { height: 80px; }
    .text-inner { font-size: 2rem; margin-left: 15px; }
    #typewriter { font-size: 2.6rem; }
    .tagline { font-size: 1.6rem; }
    .subtitle { font-size: 1.2rem; }
    .cta-btn { 
        padding: 14px 35px; 
        font-size: 1.2rem; /* Prevent tiny buttons */
    }
    .hero, .page-main, .services-main { padding-top: 120px; }
    .service-text h2 { font-size: 2.1rem; }
    .service-intro { font-size: 1.2rem; }
    .feature-list.modern li {
        font-size: 1.1rem;
        padding-left: 40px;
        margin-bottom: 24px;
    }
    .feature-list.modern li::before { font-size: 1.7rem; }
    .compliance-note.video-below { 
        padding: 25px; 
        font-size: 1rem; 
    }
    .cta-section { padding: 100px 20px; }
    .cta-section h2.small { font-size: 2rem; } /* Readable, not tiny */
    .footer { padding: 60px 20px; min-height: 250px; }
}