/* Import Google Fonts - Outfit for Headings, Inter for Body Text */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Variables for Theme A: Deep Slate & Metallic Silver */
:root {
    --bg-primary: #0A0D14;      /* Deep Slate Dark */
    --bg-secondary: #121824;    /* Slate Charcoal for cards/sections */
    --bg-tertiary: #1A2333;     /* Lighter slate for inputs/borders */
    --text-primary: #F8FAFC;    /* Crisp White/Alabaster */
    --text-secondary: #94A3B8;  /* Muted Steel Gray */
    --text-muted: #64748B;      /* Darker Cool Gray for secondary info */
    
    --accent-silver: #E2E8F0;   /* Muted Metallic Silver */
    --accent-silver-glow: rgba(226, 232, 240, 0.15);
    --accent-blue: #60A5FA;     /* Professional Steel Blue for subtle active indicators */
    --accent-blue-glow: rgba(96, 165, 250, 0.2);
    
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(18, 24, 36, 0.75);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --container-max: 1200px;
}

body.light-mode {
    --bg-primary: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #E2E8F0;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    
    --accent-silver: #0F172A;
    --accent-silver-glow: rgba(15, 23, 42, 0.15);
    --accent-blue: #2563EB;
    --accent-blue-glow: rgba(37, 99, 235, 0.2);
    
    --border-color: rgba(0, 0, 0, 0.1);
    --border-hover: rgba(0, 0, 0, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.85);
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

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

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

button, input, textarea {
    font-family: inherit;
    color: inherit;
    outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-blue);
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-description {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent-silver);
    color: var(--bg-primary);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--text-primary);
    box-shadow: 0 0 20px var(--accent-silver-glow);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-icon {
    margin-left: 8px;
    font-size: 12px;
}

/* Navigation Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

header .navbar {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Left-align brand and menu */
    padding: 20px 0;
    transition: var(--transition-smooth);
}

header.scrolled .navbar {
    padding: 8px 0;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 28px; /* Larger brand name, 5x larger feel */
    font-weight: 700;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-menu {
    margin-left: 15px; /* Exactly 15px (4mm) gap before Home tab */
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-cta {
    display: block;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start; /* Align content to the top for precise spacing */
    padding-top: 220px; /* Pushes the tagline safely below the 180px hanging logo */
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.05) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 640px;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 48px; /* Pushed content below this tagline down for readability */
}

.hero-tagline-status {
    width: 6px;
    height: 6px;
    background-color: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10B981;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-title span {
    color: var(--accent-silver);
    position: relative;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Glass Interactive Visual for Hero */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-visual-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.visual-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.visual-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.visual-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
}

.visual-code {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 16px;
    font-family: monospace;
    font-size: 12px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.visual-code .keyword { color: #F472B6; }
.visual-code .function { color: #60A5FA; }
.visual-code .string { color: #34D399; }
.visual-code .number { color: #F59E0B; }

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.service-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 32px;
    transition: var(--transition-smooth);
}

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 32px;
    margin-bottom: 24px;
    width: 60px;
    height: 60px;
    background-color: var(--bg-tertiary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-silver);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.service-card:hover .service-icon {
    color: var(--accent-blue);
    border-color: var(--accent-blue-glow);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.service-description {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Portfolio Section */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.filter-btn.active {
    background-color: var(--accent-silver);
    color: var(--bg-primary);
    border-color: var(--accent-silver);
    font-weight: 600;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 40px;
}

.portfolio-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-details {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-blue);
    margin-bottom: 12px;
}

.portfolio-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.portfolio-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    flex-grow: 1;
}

.portfolio-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Interactive AI Demo Widget */
.demo-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.demo-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.demo-chat-box {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    height: 400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.demo-chat-header {
    background-color: var(--bg-secondary);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-chat-avatar {
    width: 28px;
    height: 28px;
    background-color: var(--accent-silver);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.demo-chat-status {
    font-size: 13px;
    font-weight: 500;
}

.demo-chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.message.bot {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 0;
    border: 1px solid var(--border-color);
}

.message.user {
    background-color: var(--accent-silver);
    color: var(--bg-primary);
    align-self: flex-end;
    border-bottom-right-radius: 0;
    font-weight: 500;
}

.demo-chat-input-area {
    padding: 16px;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
}

.demo-chat-input {
    flex-grow: 1;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-primary);
}

.demo-chat-input:focus {
    border-color: var(--text-secondary);
}

.demo-chat-send {
    background-color: var(--accent-silver);
    color: var(--bg-primary);
    border: none;
    border-radius: 6px;
    padding: 0 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition-smooth);
}

.demo-chat-send:hover {
    background-color: var(--text-primary);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.contact-text {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 18px;
}

.contact-detail-content h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.contact-detail-content p {
    font-size: 15px;
    font-weight: 600;
}

/* Contact Form */
.contact-form {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 48px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--text-secondary);
    box-shadow: 0 0 10px rgba(255,255,255,0.02);
}

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

.form-status {
    margin-top: 16px;
    font-size: 14px;
    display: none;
}

.form-status.success {
    color: #10B981;
    display: block;
}

.form-status.error {
    color: #EF4444;
    display: block;
}

/* Footer Section */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.footer-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.footer-link {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 30px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .demo-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero-title {
        font-size: 34px !important;
        margin-bottom: 16px !important;
    }
    
    .hero-tagline {
        margin-bottom: 24px !important;
    }
    
    .hero-description {
        font-size: 15px !important;
        margin-bottom: 28px !important;
    }
    
    /* Smooth Dropdown Mobile Nav Menu */
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        padding: 24px;
        gap: 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        margin-left: 0;
        pointer-events: none;
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .nav-cta {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
        margin-left: auto; /* Push hamburger to the far right */
    }
    
    .nav-brand {
        font-size: 20px !important;
    }
    
    .logo-img {
        height: 45px !important;
        margin-left: 0 !important; /* Center alignment on mobile */
    }
    
    header.scrolled .logo-img {
        height: 38px !important;
        margin-left: 0 !important;
    }
    
    .hero {
        padding-top: 110px !important; /* Normal padding for small mobile logo */
        align-items: center;
    }
    
    .hero-visual-card {
        padding: 20px 16px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .service-card {
        padding: 28px 20px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    
    .portfolio-details {
        padding: 24px 20px !important;
    }
    
    .demo-chat-box {
        height: 350px !important;
    }
    
    .contact-form {
        padding: 32px 24px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .intro-logo-large {
        width: 60vw !important;
        max-width: 220px !important;
        height: auto !important;
    }
}

@media (max-width: 576px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 24px;
    }
}

@media (max-width: 380px) {
    .nav-brand {
        font-size: 17px !important;
        gap: 8px !important;
    }
    
    .logo-img {
        height: 36px !important;
    }
    
    .brand-text {
        font-size: 17px !important;
    }
}

/* Custom Additions - Logo & Services Color Themes */
.logo-img {
    height: 180px; /* Tripled size (180px) */
    width: auto;
    border-radius: 4px;
    transition: var(--transition-smooth);
    filter: invert(0.95) hue-rotate(180deg) brightness(1.15);
    mix-blend-mode: screen;
    margin-left: -50px; /* Move left */
    position: relative;
    z-index: 10;
}
body.light-mode .logo-img, body.light-mode .intro-logo-large {
    filter: none;
    mix-blend-mode: multiply;
}
header.scrolled .logo-img {
    height: 90px; /* Scales down on scroll */
    margin-left: -25px;
}
.logo-img:hover {
    transform: scale(1.03);
}

/* Service Card Colors Differentiations (Android, Web Game, Tax, AI) */
.service-android:hover {
    border-color: rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.06) !important;
}
.service-android:hover .service-icon {
    color: #10B981 !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    background-color: rgba(16, 185, 129, 0.05) !important;
}

.service-webgame:hover {
    border-color: rgba(56, 189, 248, 0.3) !important;
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.06) !important;
}
.service-webgame:hover .service-icon {
    color: #38BDF8 !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    background-color: rgba(56, 189, 248, 0.05) !important;
}

.service-tax:hover {
    border-color: rgba(226, 232, 240, 0.3) !important;
    box-shadow: 0 12px 30px rgba(226, 232, 240, 0.06) !important;
}
.service-tax:hover .service-icon {
    color: #E2E8F0 !important;
    border-color: rgba(226, 232, 240, 0.3) !important;
    background-color: rgba(226, 232, 240, 0.05) !important;
}

.service-ai:hover {
    border-color: rgba(167, 139, 250, 0.3) !important;
    box-shadow: 0 12px 30px rgba(167, 139, 250, 0.06) !important;
}
.service-ai:hover .service-icon {
    color: #A78BFA !important;
    border-color: rgba(167, 139, 250, 0.3) !important;
    background-color: rgba(167, 139, 250, 0.05) !important;
}

/* AI Preloader Styling (Cinematic Logo Overlay) */
#ai-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

#ai-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-logo-large {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 60vh; /* 75% screen height feel */
    max-height: 50vh;
    max-width: 80vw;
    width: auto;
    z-index: 10000;
    filter: invert(0.95) hue-rotate(180deg) brightness(1.15);
    mix-blend-mode: screen;
}

.intro-fade-in {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.intro-fade-in.visible {
    opacity: 1;
}

/* Scroll Reveal CSS */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay classes for cards to animate sequentially */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Hero Robot Image Styling */
.hero-visual-card.robot-card {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.hero-robot-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    filter: drop-shadow(0 0 25px rgba(96, 165, 250, 0.25));
    display: block;
}


