/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    /* Colors */
    --primary-color: #00D9FF;
    --primary-dark: #00B8D9;
    --primary-light: #33E1FF;
    --secondary-color: #7C3AED;
    --secondary-dark: #6D28D9;
    --accent-color: #F59E0B;

    /* Backgrounds */
    --bg-dark: #0A0E1A;
    --bg-darker: #050810;
    --bg-card: #141825;
    --bg-card-hover: #1A1F35;

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #A8B2D1;
    --text-muted: #6B7280;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00D9FF 0%, #7C3AED 100%);
    --gradient-accent: linear-gradient(135deg, #7C3AED 0%, #F59E0B 100%);
    --gradient-text: linear-gradient(135deg, #00D9FF 0%, #7C3AED 50%, #F59E0B 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Space Grotesk', var(--font-primary);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 217, 255, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 217, 255, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 217, 255, 0.2);
    --shadow-glow: 0 0 40px rgba(0, 217, 255, 0.3);

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Component sizing */
    --portfolio-embed-height: 668px;
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

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

/* Individual background stars (created via JS) */
.bg-star {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    pointer-events: none;
    z-index: 1;
    box-shadow:
        0 0 12px rgba(255, 255, 255, 0.9),
        0 0 24px rgba(0, 217, 255, 0.7);
    animation: bgStarBlink var(--blink, 2.6s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    opacity: 0.7;
}

@keyframes bgStarBlink {
    0%   { opacity: 0.3; transform: scale(0.8); filter: drop-shadow(0 0 12px rgba(0, 217, 255, 0.4)); }
    50%  { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.6)); }
    100% { opacity: 0.3; transform: scale(0.9); filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.4)); }
}

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

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: var(--spacing-sm);
}

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

/* ===========================
   Utilities
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.gradient-text {
    background: var(--gradient-text);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    animation: gradientShift 6.7s ease-in-out infinite;
}

.gradient-text u {
    text-decoration-color: var(--primary-color);
    text-decoration-thickness: 0.14em;
    text-underline-offset: 0.12em;
    text-decoration-skip-ink: auto;
}

.gradient-text strong {
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Underline animation */
.underline-animate {
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 8px;
    background: var(--gradient-text);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--text-primary);
}

.underline-animate::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    background-size: 300% 100%;
    animation: underlineGlow 2.5s linear infinite;
    box-shadow: 0 0 16px rgba(0, 217, 255, 0.6);
}

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

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

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-sm) 0;
    transition: var(--transition-normal);
}

/* Ensure all sections are above background stars */
section {
    position: relative;
    z-index: 2;
    scroll-snap-stop: always;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 58px;
    transition: var(--transition-fast);
}

.logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.5));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: var(--spacing-xs) 0;
    transition: var(--transition-fast);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    padding: var(--spacing-lg);
    flex-direction: column;
    gap: var(--spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    color: var(--text-secondary);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.mobile-nav-link:hover {
    color: var(--primary-color);
    background: var(--bg-card);
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 140px;
    padding-bottom: 100px;
    scroll-snap-align: start;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 217, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    animation: backgroundPulse 15s ease-in-out infinite;
    z-index: 0;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
    max-height: calc(100vh - 180px);
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-image img {
    width: 100%;
    max-width: 420px;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(0, 217, 255, 0.3));
    transition: var(--transition-slow);
    position: relative;
    z-index: 2;
}

.hero-image img:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 60px rgba(0, 217, 255, 0.5));
}

/* Shining stars on banner */
.hero-image::before,
.hero-image::after {
    content: none;
    width: 0;
    height: 0;
    box-shadow: none;
    animation: none;
    background: transparent;
}

.hero-image::before {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.hero-image::after {
    top: 25%;
    right: 20%;
    animation-delay: 1s;
}

/* Add more stars as direct child elements via JavaScript or additional pseudo-element simulation */
.hero-image {
    position: relative;
}
.extra-star {
    display: none !important;
}

@keyframes starShine {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.8);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 20px rgba(0, 217, 255, 0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.8);
        box-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 35px rgba(0, 217, 255, 0.9);
    }
}

.hero-text {
    text-align: left;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.hero-title {
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    position: relative;
}

.hero-emphasized {
    font-size: 1em;
    font-weight: 700;
    display: inline-block;
}

/* Removed spark animation - replaced with fixed background stars */

.hero-logos {
    margin-top: var(--spacing-xs);
    grid-column: 1 / -1;
}

.section-title-small {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-2xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: fadeInUp 2s ease 1s;
    animation-fill-mode: both;
    opacity: 1;
}

.scroll-arrow {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.1);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all var(--transition-normal);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow:hover {
    background: rgba(0, 217, 255, 0.2);
    transform: scale(1.1);
}

.scroll-arrow svg {
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===========================
   Client Logos
   =========================== */
.logo-runner {
    overflow: hidden;
    position: relative;
    width: 100%;
    background: linear-gradient(to right,
        rgba(200, 200, 200, 0.15) 0%,
        rgba(220, 220, 220, 0.2) 50%,
        rgba(200, 200, 200, 0.15) 100%);
    padding: calc(var(--spacing-sm) + 4px) 0;
    border-radius: var(--radius-lg);
}

.logo-track {
    display: flex;
    gap: var(--spacing-2xl);
    width: fit-content;
    animation: scroll 37.5s linear infinite;
}

.logo-item {
    flex-shrink: 0;
    width: 200px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo-item:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    transition: var(--transition-fast);
    filter: brightness(1) contrast(1.1);
}

.logo-item:hover img {
    opacity: 1;
    transform: scale(1.05);
    filter: brightness(1.05) contrast(1.15);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 12 - var(--spacing-2xl) * 12));
    }
}

/* ===========================
   Sections
   =========================== */
.value-section,
.services-section,
.expertise-section,
.about-section {
    padding: var(--spacing-3xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    margin: var(--spacing-md) auto 0;
    border-radius: 2px;
}

.services-title::after {
    display: none;
}

/* ===========================
   Challenge Section
   =========================== */
.value-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    scroll-snap-align: start;
}

.challenge-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.challenge-text {
    font-size: clamp(2.2rem, 4.5vw, 2.6rem);
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: var(--spacing-3xl);
    font-weight: 500;
}

.solution-section,
.services-section,
.cta-section,
.footer {
    font-size: 1.08rem;
}

/* ===========================
   Solution Section
   =========================== */
.solution-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    scroll-snap-align: start;
}

.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.solution-title {
    font-size: 2.7rem;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.solution-text ul {
    list-style: none;
    padding-left: 0;
}

.solution-text ul li {
    color: var(--text-primary);
    font-size: 1.55rem;
    line-height: 1.8;
    padding-left: 2rem;
    position: relative;
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
}

.solution-text ul li:before {
    content: '★';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.6rem;
}

.solution-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.solution-image img {
    width: 100%;
    max-width: 420px;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(0, 217, 255, 0.3));
    animation: float 6s ease-in-out infinite;
    transition: var(--transition-slow);
    margin-top: 30px;
}

.solution-image img:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 60px rgba(0, 217, 255, 0.5));
}

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

/* ===========================
   Services
   =========================== */
.services-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    scroll-snap-align: start;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    margin-bottom: var(--spacing-sm);
}

.service-card h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.2rem;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
}

.service-card ul li {
    color: var(--text-primary);
    line-height: 1.8;
    padding-left: 1.8rem;
    position: relative;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.service-card ul li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ===========================
   Expertise
   =========================== */
.expertise-section {
    background: rgba(255, 255, 255, 0.02);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.expertise-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all var(--transition-normal);
}

.expertise-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.expertise-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.expertise-item h4 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.expertise-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===========================
   About Section
   =========================== */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text .lead {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.about-text ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: var(--spacing-lg);
}

.about-text ul li {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: var(--spacing-md);
}

.about-text ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.cta-footer {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.cta-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

/* ===========================
   Portfolio Page
   =========================== */
.portfolio-header {
    padding-top: 150px;
    padding-bottom: var(--spacing-2xl);
    text-align: center;
    background:
        radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%);
}

.page-title {
    font-size: clamp(3rem, 6vw, 5rem);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.page-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.portfolio-section {
    padding: var(--spacing-3xl) 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-2xl);
    justify-items: center;
}

.portfolio-embed {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    width: 100%;
    max-width: 560px;
    height: var(--portfolio-embed-height);
}

.portfolio-embed--tall {
    height: var(--portfolio-embed-height);
}

.portfolio-embed:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.portfolio-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-lg);
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    display: block;
}

.portfolio-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.portfolio-card-header {
    padding: var(--spacing-lg);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-card-header svg {
    width: 48px;
    height: 48px;
    color: white;
}

.portfolio-card-content {
    padding: var(--spacing-lg);
}

.portfolio-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.portfolio-card-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.portfolio-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: var(--transition-fast);
}

.portfolio-card:hover .portfolio-link {
    gap: var(--spacing-sm);
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
    padding: var(--spacing-3xl) 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: rgba(5, 8, 16, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand .footer-logo {
    height: 40px;
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: var(--spacing-2xl);
}

.footer-column h4 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .hero-text {
        text-align: center;
    }

    .hero-image img {
        max-width: 400px;
    }

    .solution-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .solution-image {
        order: -1;
    }

    .solution-image img {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding-top: 120px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-embed {
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .logo-item {
        width: 120px;
        height: 60px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
        --spacing-3xl: 4rem;
        --portfolio-embed-height: 600px;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-template-columns: minmax(300px, 1fr);
    }
}

/* ===========================
   Accessibility
   =========================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
