:root {
    --primary-color: #ffd700;
    /* Gold */
    --secondary-color: #e0e0e0;
    /* Light text for dark mode */

    /* Dark Mode Palette */
    --bg-dark: #050505;
    /* Deep Black */
    --bg-card: #151515;
    /* Dark Grey */
    --text-light: #f5f5f5;
    --text-muted: #a0a0a0;
    --text-dark: #f5f5f5;
    /* Inverted for dark mode */

    /* Glassmorphism Logic */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);

    /* Shadows & Transitions */
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    line-height: 1.6;
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Utility */
.highlight {
    color: var(--primary-color);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    color: var(--secondary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: #1a1a1a;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    border: 2px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
    border-color: var(--text-light);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    /* Proper glassmorphism base */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 1.2rem 0;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: #1a1a1a;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: #444;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links .btn-primary {
    padding: 10px 24px;
    color: #1a1a1a;
    font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow: hidden;
    padding-top: 80px;
    /* Offset for fixed nav */
}

/* Dynamic styling for Hero Background */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    top: -20%;
    right: -10%;
    border-radius: 50%;
    filter: blur(60px);
    animation: float 10s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(57, 56, 56, 0.4) 0%, transparent 70%);
    bottom: -10%;
    left: -10%;
    border-radius: 50%;
    filter: blur(60px);
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Hero 3D Floating Elements */
.hero-3d-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    background: linear-gradient(135deg, var(--primary-color), transparent);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20%;
    opacity: 0.15;
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 15%;
    left: 10%;
    animation-duration: 25s;
    animation-delay: -5s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 15%;
    background: linear-gradient(135deg, #fff, transparent);
    animation-duration: 18s;
    animation-delay: -2s;
    border-radius: 50%;
    /* Circle */
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 30%;
    right: 25%;
    animation-duration: 30s;
    animation-delay: -10s;
    transform: rotate(45deg);
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    33% {
        transform: translateY(-30px) rotate(120deg) scale(1.1);
    }

    66% {
        transform: translateY(20px) rotate(240deg) scale(0.9);
    }

    100% {
        transform: translateY(0) rotate(360deg) scale(1);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, #ffffff, #aaaaaa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Fallback needs handling if gradient fails, but browser support is good */
    color: #fff;

    /* Fallback */
    /* Override for standard text color if background-clip is supported */
    @supports (-webkit-background-clip: text) {
        color: transparent;
    }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Industries Nav */
.industries-nav {
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 75px;
    /* Adjust based on navbar height */
    z-index: 900;
}

.industry-scroll-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 5px 5px 15px 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.industry-pill {
    white-space: nowrap;
    padding: 10px 24px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.industry-pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.industry-pill.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #1a1a1a;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

/* Portfolio Section */
.portfolio-section {
    padding: 6rem 0;
    background: #f8f9fa;
}

.portfolio-industry-group {
    margin-bottom: 6rem;
}

.industry-header {
    margin-bottom: 3rem;
    border-left: 6px solid var(--primary-color);
    padding-left: 1.5rem;
}

.industry-header h3 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.industry-header p {
    color: #666;
    font-size: 1.1rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.portfolio-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    border: 1px solid #222;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.card-image {
    width: 100%;
    height: 240px;
    background-color: #222;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-card:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    gap: 15px;
}

.portfolio-card:hover .card-overlay {
    opacity: 1;
}

.card-content {
    padding: 1.8rem;
}

.card-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: #252525;
    color: #ccc;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid #333;
}

/* Services */
.services-section {
    padding: 8rem 0;
    background: var(--bg-dark);
    color: var(--text-light);
    position: relative;
}

.services-section .section-title {
    color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.glass-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
}

.service-card {
    text-align: left;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-8px);
    border-color: rgba(255, 215, 0, 0.3);
}

.service-card .icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-muted);
}

/* Why Choose Section */
.why-choose-section {
    padding: 8rem 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    text-align: center;
}

.feature-item {
    padding: 2rem;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.feature-item p {
    color: #666;
    font-size: 1.1rem;
}

/* Testimonials */
.testimonials-section {
    padding: 8rem 0;
    background: #f4f4f4;
    overflow: hidden;
}

.testimonial-carousel {
    display: flex;
    overflow-x: auto;
    gap: 2.5rem;
    padding: 2rem 1rem 4rem 1rem;
    scroll-snap-type: x mandatory;
    margin: 0 -20px;
    /* Counteract container padding for full bleed feel on mobile */
}

.testimonial-card {
    flex: 0 0 400px;
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    scroll-snap-align: center;
    border: 1px solid transparent;
}

.testimonial-card:hover {
    border-color: var(--primary-color);
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
}

.client-info strong {
    display: block;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.client-info span {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* CTA */
.cta-section {
    padding: 8rem 0;
    background: var(--primary-color);
    text-align: center;
    color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    opacity: 0.6;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background: #1a1a1a;
    color: #fff;
    border: 2px solid #1a1a1a;
    font-size: 1.1rem;
    padding: 16px 40px;
}

.cta-section .btn-primary:hover {
    background: transparent;
    color: #1a1a1a;
}

/* Contact */
.contact-section {
    padding: 8rem 0;
    background: var(--bg-dark);
    color: var(--text-light);
    position: relative;
}

.contact-section .container {
    max-width: 800px;
}

.contact-wrapper {
    background: #1f1f1f;
    /* Slightly lighter than bg-dark */
    padding: 4rem;
    border-radius: 20px;
    border: 1px solid #333;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.contact-wrapper h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: #fff;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: #ccc;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #333;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.full-width {
    width: 100%;
}

/* Footer */
footer {
    background: #0a0a0a;
    color: #666;
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid #222;
}

/* Industries Hub Grid (Homepage) */
.industries-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    width: 100%;
    /* Ensure full width */
    perspective: 1000px;
    /* Enable 3D space */
}

/* Industry Hub Card (Dark Mode & 3D) */
.industry-hub-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.1s ease-out, box-shadow 0.4s ease;
    /* Fast transform for tilt, smooth shadow */
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    min-height: 250px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    /* Key for 3D children */
    will-change: transform;
}


.industry-hub-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.industry-hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.industry-hub-card:hover::before {
    transform: scaleX(1);
}

.industry-hub-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.industry-hub-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Testimonial Card (Dark Mode) */
.testimonial-card {
    flex: 0 0 400px;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    scroll-snap-align: center;
    border: 1px solid #222;
    color: var(--text-light);
}

.testimonial-card:hover {
    border-color: var(--primary-color);
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.client-info strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Section Backgrounds (Dark Mode) */
.portfolio-section,
.why-choose-section,
.testimonials-section,
.industry-header-section {
    background: var(--bg-dark);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .nav-links {
        display: none;
        /* Hidden by default on mobile */
        position: fixed;
        top: 70px;
        /* Below navbar */
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid #eee;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 1001;
    }

    .mobile-menu-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #333;
        border-radius: 3px;
        transition: var(--transition);
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        padding: 2rem;
    }

    .testimonial-card {
        flex: 0 0 300px;
        padding: 2rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 28px;
        font-size: 0.85rem;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}