/* =============== 
   CSS Variables & Setup 
   =============== */
:root {
    --bg-dark: #20252f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.1);
    
    --text-main: #f0f0f5;
    --text-muted: #a0a0b0;
    
    /* Brand Colors for Unity/Tech Vibe */
    --accent-cyan: #ff7000; /* Replaced with Orange */
    --accent-magenta: #ffae00; /* Warm yellow/orange complementary */
    --accent-purple: #ff3300; /* Deep red/orange complementary */
    
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

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

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

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

.gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient-flow 5s ease infinite;
}

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

/* =============== 
   Buttons & Links 
   =============== */
a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-cyan));
    color: white;
    box-shadow: 0 0 20px rgba(255, 112, 0, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(255, 112, 0, 0.6);
    transform: translateY(-2px);
}

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

.btn-accent {
    background: transparent;
    border: 2px solid white;
    color: white;
    font-weight: 700;
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: inset 0 0 20px rgba(255, 112, 0, 0.1);
}

.btn-accent:hover {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: white;
    box-shadow: 0 0 20px rgba(255, 112, 0, 0.4);
}

.btn-block {
    display: block;
    width: 100%;
}

/* =============== 
   Navigation 
   =============== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(32, 37, 47, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 90px; /* Large default size */
    width: auto;
    transition: height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--accent-cyan);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--accent-cyan);
}

/* =============== 
   Sections & Layout
   =============== */
.section-padding {
    padding: 8rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-inline: auto;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

/* =============== 
   Hero Section 
   =============== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 5%;
}

.hero-content {
    max-width: 900px;
    z-index: 10;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-inline: auto;
}

/* =============== 
   Services Grid
   =============== */
.services-grid {
    display: grid;
    /* minmax(400px, 1fr) ensures exactly 2 columns fit in the 1200px container, creating a balanced 2x2 grid */
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255, 112, 0, 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

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

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

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

.card-icon {
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    height: 60px; /* Force consistent size for all icons */
    width: auto;
    object-fit: contain;
    /* Adding a subtle filter to match the white/bright theme if they are mostly dark, 
       but assuming they are already styled correctly in the folder. If they are dark, we might need a filter. 
       Adding a slight drop shadow to make them pop */
    filter: drop-shadow(0 0 10px rgba(255, 112, 0, 0.4));
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =============== 
   Technology Section
   =============== */
.technology {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

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

.tech-list {
    list-style: none;
}

.tech-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.tech-list span {
    color: var(--accent-cyan);
    font-weight: bold;
}

.tech-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-orb {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,112,0,0.2), rgba(255,51,0,0.2));
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 50px rgba(255, 112, 0, 0.2), inset 0 0 30px rgba(255,174,0,0.2);
    animation: float 6s ease-in-out infinite;
}

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

/* =============== 
   Contact Section
   =============== */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    backdrop-filter: blur(15px);
}

.contact-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-container p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-form {
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-color);
    color: white;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(255, 112, 0, 0.2);
}

/* =============== 
   Footer
   =============== */
footer {
    padding: 3rem 5%;
    background: rgba(0, 0, 0, 0.15); /* Slightly darker than bg-dark */
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links a:hover {
    color: white;
}

/* =============== 
   Toast Notification
   =============== */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-family: var(--font-sans);
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* =============== 
   Animations & Utilities
   =============== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============== 
   Service Detail Pages 
   =============== */
.service-hero {
    position: relative;
    padding: 12rem 5% 1rem; /* Specific padding instead of vh to eliminate dead space below */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
}

.video-container {
    position: fixed; /* Make it fixed so it tracks scrolling */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.10; /* Video itself is 10% opacity */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; 
    z-index: -1;
}

.service-hero-content {
    max-width: 900px;
    z-index: 10;
    position: relative;
}

.service-hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 1.5rem;
}

.service-hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    max-width: 700px;
    margin-inline: auto;
}

.service-details {
    /* Removed solid background so video shows through */
    background: transparent; 
}

.details-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.details-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.details-container p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: left;
}

/* Reduce spacing specifically for the service pages */
.service-page .section-padding {
    padding: 2rem 5% 4rem; /* Custom tight padding top */
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 112, 0, 0.3);
    transform: translateY(-5px);
}

.feature-card h4 {
    color: var(--accent-cyan);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.feature-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 112, 0, 0.4));
}

.feature-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Force navbar solid on internal pages always */
.solid-nav {
    background: rgba(32, 37, 47, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5) !important;
    padding: 0.5rem 5% !important;
}
.solid-nav .logo-img {
    height: 50px !important;
}

/* Responsive */
@media (max-width: 900px) {
    .tech-content {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        padding: 2.5rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .navbar .btn-outline {
        display: none; /* Hide the desktop button to save space header */
    }
    
    .nav-links {
        position: absolute;
        top: 100%; /* Push right below the navbar */
        left: 0;
        width: 100%;
        background: rgba(32, 37, 47, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 2rem;
        border-bottom: 2px solid var(--accent-cyan);
        
        /* Animated Dropdown State */
        transform: translateY(-150%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: -1; 
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-links a {
        font-size: 1.2rem;
    }
}
