/* Variables & Reset */
:root {
    --color-bg: #1a1a1a;
    /* Deep Charcoal */
    --color-surface: #252525;
    /* Slate Gray */
    --color-text: #e0e0e0;
    /* Off-White */
    --color-cyan: #00e5ff;
    /* Vibrant Cyan */
    --color-cyan-dark: #00b8cc;
    --color-black: #000000;
    --font-main: 'Outfit', sans-serif;

    --transition-speed: 0.4s;
    --spacing-container: 120px;

    /* Neon Glow Variables */
    --neon-blue: #00e5ff;
    --neon-glow: 0 0 10px rgba(0, 229, 255, 0.7), 0 0 20px rgba(0, 229, 255, 0.5), 0 0 30px rgba(0, 229, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed);
}

a:hover {
    color: var(--color-cyan);
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.7), 0 0 10px rgba(0, 229, 255, 0.5);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0;
}

.text-cyan {
    color: var(--color-cyan);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all var(--transition-speed);
}

.btn-primary {
    background-color: var(--color-cyan);
    color: var(--color-black);
}

.btn-primary:hover {
    background-color: var(--color-cyan-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn-outline {
    border: 1px solid var(--color-text);
    color: var(--color-text);
    padding: 10px 24px;
    /* Smaller for nav */
}

.btn-outline:hover {
    border-color: var(--color-cyan);
    color: var(--color-cyan);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.85);
    /* Glassmorphism background */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding 0.3s;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(26, 26, 26, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo img {
    height: 40px;
    width: auto;
    transition: filter 0.3s ease;
}

.logo:hover img {
    filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.8)) drop-shadow(0 0 15px rgba(0, 229, 255, 0.4));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-cyan);
    transition: width 0.3s;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    /* Background handled by video element */
    background-color: var(--color-bg);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Fallback if reference.jpg isn't ideal is handled by the user replacing it, or I could use a fallback URL in CSS ? 
   Actually, let's use a linear gradient overlay to ensure text readability regardless of image.
*/
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(26, 26, 26, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 40px;
    max-width: 500px;
}

/* Service Grid */
/* .services { } Removed empty ruleset */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    /* Height removed to allow content to flow naturally */
}

.service-card {
    position: relative;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Changed from border-right to full border for box model consistency */
    transition: all 0.4s ease;
    /* Enhanced transition for smooth hover */
}

.service-card:hover {
    filter: grayscale(0%);
    box-shadow: var(--neon-glow);
    border: 1px solid var(--neon-blue);
    transform: translateY(-5px);
    z-index: 10;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.service-card:hover .service-overlay {
    opacity: 0.4;
}

.service-info {
    position: relative;
    z-index: 2;
    text-align: center;
    /* Center headings */
}

.service-info h3 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--color-white);
}

.service-info p {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 20px;
    opacity: 0.8;
}

.explore-link {
    font-size: 0.9rem;
    color: var(--color-cyan);
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.service-card:hover .explore-link {
    opacity: 1;
    transform: translateY(0);
}

/* Digital Architect / Process */
.process {
    padding: var(--spacing-container) 0;
    background-color: var(--color-bg);
}

.section-header {
    margin-bottom: 80px;
    text-align: center;
    /* Center section headers globally */
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: #aaa;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.step {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    position: relative;
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-surface);
    margin-bottom: 20px;
    line-height: 1;
    transition: color 0.3s;
}

.step:hover .step-number {
    color: var(--color-cyan);
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.step-content p {
    color: #999;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background-color: var(--color-surface);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-form-wrapper h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-cyan);
    background: rgba(255, 255, 255, 0.08);
}

.form-group select option {
    background-color: var(--color-surface);
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background-color: #333;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.map-overlay {
    text-align: center;
    color: #aaa;
}

.map-overlay i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--color-cyan);
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #fff;
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--color-cyan);
}

.copyright {
    color: #666;
    font-size: 0.85rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* "Alive" Breathing Animation */
@keyframes breathe {
    0% {
        box-shadow: 0 0 5px rgba(0, 229, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
    }

    100% {
        box-shadow: 0 0 5px rgba(0, 229, 255, 0.2);
    }
}

/* Removed empty service-card ruleset */

.btn-primary {
    animation: breathe 3s infinite ease-in-out;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.hidden-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s ease-out;
}

.hidden-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1s ease-out;
}

.slide-in-active {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card {
        height: 300px;
        /* fixed height for tablets */
    }
}

/* Modern Footer Redesign */
.contact-section {
    background-color: var(--color-surface);
    padding: 80px 0 40px;
}

.footer-modern {
    background-color: #111;
    /* Slightly darker than surface for contrast */
    padding: 100px 0 30px;
    color: #fff;
    font-family: var(--font-main);
}

.footer-modern-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-col h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col h4 {
    font-size: 1rem;
    color: #888;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #ccc;
    font-size: 1rem;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--color-cyan);
}

.footer-col p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* SEO Link Section */
.footer-seo-links {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-seo-col h4 {
    color: var(--color-cyan);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-seo-col ul {
    list-style: none;
    padding: 0;
}

.footer-seo-col ul li {
    margin-bottom: 10px;
}

.footer-seo-col ul li a {
    color: #888;
    font-size: 0.9rem;
    transition: color 0.3s;
    text-decoration: none;
}

.footer-seo-col ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: #aaa;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: var(--color-cyan);
}

@media (max-width: 900px) {
    .footer-modern-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-col h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Simplified for now, JS can toggle */
    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--color-surface);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.1);
    top: 100%;
    left: 0;
    padding: 10px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--color-text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-cyan);
}

/* Nav Phone Link */
.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
    margin-left: 20px;
    font-size: 0.95rem;
}

.nav-phone i {
    color: var(--color-cyan);
}

.nav-phone:hover {
    color: var(--color-cyan);
}

/* Mobile Nav Adjustments */
@media (max-width: 768px) {

    /* Ensure dropdown is visible/usable on mobile when menu is open */
    .dropdown {
        width: 100%;
        text-align: center;
    }

    .dropdown-content {
        position: static;
        /* Stack naturally in the column */
        width: 100%;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.03);
        display: none;
        /* Hidden by default, require hover or JS to show? */
    }

    /* For simple mobile, let's just show it or allow hover to show it. 
       Since hover doesn't work well on touch, users often tap.
       A tap triggers hover on many devices. 
       Alternatively, we just display it always in mobile list.
    */
    .dropdown:hover .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: block;
    }

    .nav-phone {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
    }
}

/* Services Page Redesign - Alternating Layout */
.service-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
    padding: 0 20px;
}

/* Even rows: Image Left, Text Right (Default Flex) */
/* Odd rows: Text Left, Image Right */
.service-row:nth-child(odd) {
    flex-direction: row-reverse;
}

.service-image {
    flex: 1;
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-row:hover .service-image img {
    transform: scale(1.05);
}

.service-text {
    flex: 1;
}

.service-text h2 {
    font-size: 2.5rem;
    color: var(--color-cyan);
    margin-bottom: 20px;
}

.service-text p {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 25px;
}

.service-text .btn {
    margin-top: 10px;
}

/* Responsive Services */
@media (max-width: 900px) {
    .service-row {
        flex-direction: column !important;
        /* Stack vertically on mobile */
        gap: 40px;
        margin-bottom: 80px;
    }

    .service-image {
        width: 100%;
        height: 300px;
    }
}