:root {
    --primary-color: #00d9ff;
    --secondary-color: #7c3aed;
    --accent-color: #f59e0b;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --card-bg: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --code-green: #22c55e;
    --code-purple: #a78bfa;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

html {
    scroll-padding-top: var(--scroll-offset, 100px);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Hero Header */
.hero {
    position: relative;
    height: 250px;
    max-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    overflow: hidden;
    transition: min-height 0.3s ease, padding 0.3s ease;
    will-change: min-height;
}

.hero.shrink {
    height: 70px;
    max-height: 70px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hero.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Prevent flicker on load */
.hero:not(.shrink) {
    transition: min-height 0.3s ease 0.05s;
}

.hero.shrink .code-background {
    opacity: 0.03;
}

/* Header spacer to prevent content jump */
.header-spacer {
    height: 0;
    transition: height 0.3s ease;
}

.code-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0.1;
    overflow: hidden;
}

.code-lines {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 1.2rem;
    color: var(--primary-color);
    line-height: 2;
    animation: slideCode 20s linear infinite;
    white-space: pre;
}

@keyframes slideCode {
    0% {
        transform: translateY(0) translateX(0);
    }
    100% {
        transform: translateY(-50%) translateX(-20%);
    }
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    transition: padding 0.3s ease, text-align 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero.shrink .header-content {
    padding: 10px 2rem;
    text-align: center;
    flex-direction: row;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 0;
}

.logo {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    font-family: 'Fira Code', monospace;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite alternate;
    transition: font-size 0.3s ease, margin 0.3s ease;
    display: inline-block;
}

.hero.shrink .logo {
    font-size: 2rem;
    margin-bottom: 0;
    display: block;
}

.logo a {
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.bracket {
    color: var(--code-green);
    font-weight: bold;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

@keyframes glow {
    0% {
        filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.5));
    }
    100% {
        filter: drop-shadow(0 0 40px rgba(245, 158, 11, 0.8));
    }
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.hero.shrink .tagline {
    display: none;
}

.hero.shrink .code-background {
    opacity: 0.05;
}

/* Navigation */
.main-nav {
    background-color: var(--darker-bg);
    padding: 1rem 0;
    position: sticky;
    top: var(--nav-offset, 0);
    z-index: 100;
    border-bottom: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.main-nav ul {
    margin: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
    transition: all 0.3s ease;
}

.hero.shrink .main-nav ul {
    gap: 2rem;
}

.main-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.hero.shrink .main-nav a {
    font-size: 0.95rem;
}

.hero.shrink .main-nav a::after {
    bottom: -2px;
}

/* Hamburger Menu */
.hamburger {
    display: none; /* Hide hamburger by default in large banner */
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    background: none;
    border: none;
    position: fixed;
    right: 2rem;
    top: 1.5rem;
    transition: all 0.3s ease;
}

/* Show hamburger ONLY when header is sticky/shrunk (smaller banner) */
body.header-sticky .hamburger {
    display: flex;
    top: var(--hamburger-top, 1.5rem);
    transform: translateY(0);
}

/* Hide shrink button when hamburger is visible */
/* body.header-sticky .shrink-banner-btn {
    display: none !important;
} */

/* Hide navigation when header is sticky/shrunk */
body.header-sticky .main-nav {
    display: none !important;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    z-index: 999;
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    display: block;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--primary-color);
    padding-left: 1rem;
}

.mobile-menu-item-with-submenu {
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

.mobile-menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submenu-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    padding: 1rem 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submenu-toggle.active {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 217, 255, 0.05);
    border-left: 3px solid var(--primary-color);
    margin-left: 1rem;
}

.mobile-submenu.active {
    max-height: 200px;
}

.mobile-submenu li {
    border-bottom: none;
}

.mobile-submenu a {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
}

.mobile-submenu a:hover {
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.mobile-menu-header {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    font-family: 'Fira Code', monospace;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sections */
section {
    padding: 2.5rem 0;
}

section h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-family: 'Fira Code', monospace;
}

.section-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 800px;
}

/* About Section */
.about-section {
    background-color: var(--darker-bg);
}

.about-content {
    max-width: 1200px;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.intro {
    font-size: 1.3rem !important;
    color: var(--primary-color) !important;
    font-weight: 500;
    margin-bottom: 2rem !important;
}

.motto {
    background: var(--card-bg);
    padding: 1.5rem;
    border-left: 4px solid var(--code-green);
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    margin-top: 2rem !important;
}

.terminal-prompt {
    color: var(--code-green);
    margin-right: 0.5rem;
}

code {
    background: var(--darker-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    color: var(--accent-color);
    font-family: 'Fira Code', monospace;
}

/* Services Grid */
.services-section {
    background-color: var(--dark-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 217, 255, 0.1);
    display: block;
    text-decoration: none !important;
    color: inherit;
    opacity: 1;
    transform: translateX(0);
}

/* Animation setup - only when services-animate class is present */
.services-animate .service-card {
    opacity: 0;
    transform: translateX(-100px);
    animation: flyInFromLeft 0.8s ease-out forwards;
}

.services-animate .service-card:nth-child(1) { animation-delay: 0.1s; }
.services-animate .service-card:nth-child(2) { animation-delay: 0.2s; }
.services-animate .service-card:nth-child(3) { animation-delay: 0.3s; }
.services-animate .service-card:nth-child(4) { animation-delay: 0.4s; }
.services-animate .service-card:nth-child(5) { animation-delay: 0.5s; }
.services-animate .service-card:nth-child(6) { animation-delay: 0.6s; }
.services-animate .service-card:nth-child(7) { animation-delay: 0.7s; }
.services-animate .service-card:nth-child(8) { animation-delay: 0.8s; }
.services-animate .service-card:nth-child(9) { animation-delay: 0.9s; }

@keyframes flyInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
    border-color: var(--primary-color);
    text-decoration: none !important;
}

.service-card:visited {
    text-decoration: none !important;
    color: inherit;
}

.service-card h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--text-primary) !important;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.2;
    text-decoration: none !important;
}

.service-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.service-card p {
    color: var(--text-secondary) !important;
    margin-bottom: 1.5rem;
    text-decoration: none !important;
}

.service-link {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: gap 0.3s ease;
}

.service-card:hover .service-link {
    gap: 0.5rem;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
    text-align: center;
}

.cta-text {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--darker-bg);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 217, 255, 0.4);
}

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

.contact-btn.secondary:hover {
    background: var(--primary-color);
    color: var(--darker-bg);
}

/* Generic button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.btn:hover {
    background: var(--primary-color);
    color: var(--darker-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00e5ff, #8b5cf6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.5);
    color: #ffffff;
}

.btn-icon {
    font-size: 1.2rem;
}

.icon {
    font-size: 1.5rem;
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    padding: 3rem 0 1rem;
    border-top: 2px solid var(--primary-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 {
    font-family: 'Fira Code', monospace;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--card-bg);
}

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

.footer-tagline {
    font-family: 'Fira Code', monospace;
    color: var(--code-green);
    font-size: 0.85rem !important;
}

/* Hop animation for back to top button */
@keyframes hop {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Border pulse effect for back to top button */
@keyframes borderPulse {
    0% { 
        border-color: var(--accent-color);
        box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3), 0 0 0 0 rgba(0, 217, 255, 0.7);
    }
    50% { 
        border-color: var(--primary-color);
        box-shadow: 0 4px 15px rgba(0, 217, 255, 0.5), 0 0 0 8px rgba(0, 217, 255, 0.3);
    }
    100% { 
        border-color: var(--secondary-color);
        box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3), 0 0 0 16px rgba(0, 217, 255, 0);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    color: var(--darker-bg);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
    z-index: 1000;
    font-family: 'Fira Code', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.hop {
    animation: hop 0.4s ease-in-out, borderPulse 0.6s ease-out;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.5);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.back-to-top:active {
    transform: translateY(-2px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top .caret {
    font-size: 3.3rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(0, 0, 0, 0.8);
    font-family: 'Fira Code', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin-top: -2px; /* Fine-tune vertical centering */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Service Detail Pages */
.service-detail {
    background-color: var(--darker-bg);
    min-height: 60vh;
}

.breadcrumb {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-family: 'Fira Code', monospace;
}

.service-content {
    max-width: 1200px;
}

.lead {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
}

.feature {
    background: var(--card-bg);
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.feature p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.approach-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0 3rem;
}

.approach-content ol {
    margin-left: 1.5rem;
}

.approach-content li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.approach-content strong {
    color: var(--primary-color);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0 3rem;
}

.tech-badge {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.cta-box {
    background: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 4rem;
    border: 1px solid var(--primary-color);
}

.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.cta-box p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--primary-color);
    color: var(--darker-bg);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 217, 255, 0.4);
    background: var(--accent-color);
}

/* Contact Page */
.contact-page-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.contact-method h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-method p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.contact-method .description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.contact-method a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-method a:hover {
    color: var(--accent-color);
}

.contact-form-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--darker-bg);
    border: 1px solid rgba(0, 217, 255, 0.2);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Legal Content */
.legal-content {
    max-width: 800px;
}

.legal-content h2 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.legal-content h3 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-content a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.last-updated {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Restore Banner Button */
.restore-banner-btn {
    background: var(--card-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    padding: 0;
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 217, 255, 0.15);
    cursor: pointer;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s, box-shadow 0.3s;
    position: absolute; /* inside header */
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1003;
}

/* Only show restore button when header is sticky AND shrunk */
.hero.sticky.shrink .restore-banner-btn {
    display: flex;
}

.restore-banner-btn:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 16px rgba(0, 217, 255, 0.25);
    /* keep translateY so the button doesn't shift vertically on hover */
    transform: translateY(-50%);
}

.maximize-icon svg {
    display: block;
}

/* Shrink Banner Button */
/* .shrink-banner-btn {
    background: var(--card-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    padding: 0;
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 217, 255, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s, box-shadow 0.3s;
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    z-index: 1003;
}

.shrink-banner-btn:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 16px rgba(0, 217, 255, 0.25);
} */

/* .minimize-icon svg {
    display: block;
} */

.hero.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 3rem;
    }
    
    .hero.shrink .logo {
        font-size: 1.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
    
    .hero.shrink .header-content {
        justify-content: center;
    }
    
    .restore-banner-btn {
        display: none !important;
    }
    
    /* .shrink-banner-btn {
        display: none !important;
    } */
    
    section h2 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 2rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .contact-page-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature h3 {
        font-size: 0.85rem;
    }

    .feature p {
        font-size: 0.95rem;
    }
    
    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2.5rem;
    }
    
    .hero.shrink .logo {
        font-size: 1.2rem;
    }
    
    .contact-methods {
        flex-direction: column;
    }
    
    .contact-btn {
        width: 100%;
        justify-content: center;
    }
    
    .mobile-menu {
        width: 100%;
        right: -100%;
    }
    
    .hamburger span {
        width: 25px;
    }
}

/* Team Page Styles */
.team-members {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin: 3rem 0;
}

.team-member {
    background: var(--card-bg);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 217, 255, 0.15);
}

.member-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.member-photo {
    flex-shrink: 0;
}

.member-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.2);
}

.member-info {
    flex: 1;
}

.member-info h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.member-title {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.member-email {
    margin: 0.5rem 0 0 0;
    font-size: 1rem;
}

.member-email a {
    color: var(--accent-color);
    text-decoration: none;
    font-family: 'Fira Code', monospace;
    transition: color 0.3s ease;
}

.member-email a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.member-content h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    font-family: 'Fira Code', monospace;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.skill-item {
    background: rgba(0, 217, 255, 0.05);
    border-left: 3px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
}

.skill-item h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.skill-item p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

.fun-fact {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(0, 217, 255, 0.1));
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.fun-fact h3 {
    margin-top: 0;
}

.fun-fact p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

.team-synergy {
    background: var(--card-bg);
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    padding: 2.5rem;
    margin: 3rem 0;
}

.team-synergy h2 {
    color: var(--secondary-color);
    font-family: 'Fira Code', monospace;
    margin-bottom: 1.5rem;
}

.team-synergy p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.team-motto {
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
}

.team-motto code {
    white-space: pre-wrap;
    word-break: break-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
}

@media (max-width: 768px) {
    .team-member {
        padding: 1.25rem;
    }
    
    .member-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        align-items: center;
    }
    
    .member-photo {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .member-photo img {
        width: 100px;
        height: 100px;
    }
    
    .member-info {
        width: 100%;
    }
    
    .member-info h2 {
        font-size: 1.5rem;
    }
    
    .member-title {
        font-size: 1rem;
    }
    
    .member-content h3 {
        font-size: 1.3rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .skill-item {
        padding: 1rem;
    }
    
    .skill-item h4 {
        font-size: 1rem;
    }
    
    .team-synergy {
        padding: 1.5rem;
    }
    
    .team-synergy h2 {
        font-size: 1.5rem;
    }
    
    .fun-fact {
        padding: 1.25rem;
    }
}

/* Hero Intro Section */
.hero-intro {
    background: var(--darker-bg);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    transition: padding-top 0.3s ease;
}

/* Reduce top padding when header is sticky to move content up */
.header-sticky .hero-intro {
    padding-top: 1rem;
}

.hero-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-family: 'Fira Code', monospace;
    text-align: center;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-primary);
    max-width: 750px;
    margin: 0 auto 3rem auto;
    line-height: 1.7;
    text-align: center;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--darker-bg);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.4);
}

.btn.secondary {
    background: rgba(0, 217, 255, 0.1);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn.secondary:hover {
    background: var(--accent-color);
    color: var(--darker-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin: 3rem 0;
    padding: 1.5rem 0;
    position: relative;
    z-index: 2;
}

.stats-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.stats-grid::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Fira Code', monospace;
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.features-highlight {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.feature-item {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(124, 58, 237, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 217, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.feature-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.feature-item h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin: 0;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

/* Responsive adjustments for hero intro */
@media (max-width: 1024px) {
    .features-highlight {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-intro {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn.primary, .btn.secondary {
        width: 100%;
        max-width: 280px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 2rem 0;
        padding: 1rem 0;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .feature-item {
        padding: 1.25rem;
    }
    
    .feature-icon {
        font-size: 1.75rem;
    }
    
    .feature-header {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-item h3 {
        font-size: 1.2rem;
    }
}
