/* ===== CSS Variables ===== */
:root {
    /* Colors - Clean, Professional, Calm */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --accent-color: #0ea5e9;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --card-bg: #1e293b;
    --border-color: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

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

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;

    /* Transitions */
    --transition: 0.2s ease;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-sm) 0;
}

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

.nav-brand {
    display: flex;
    flex-direction: column;
}

.nav-logo {
    height: 45px;
    width: auto;
    border-radius: 6px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
}

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

/* Mobile Menu Toggle - Hidden on desktop, visible on mobile */
.mobile-menu-toggle {
    display: none !important;
    /* Force hide on desktop */
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== Breadcrumb Navigation ===== */
.breadcrumb-container {
    background: var(--darker-bg);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 70px;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    font-weight: 500;
}

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

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

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(2, 6, 23, 0.7) 0%,
            rgba(15, 23, 42, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-label {
    font-size: 0.875rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    min-height: 4em;
    /* Prevent layout bump */
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    display: inline-block;
    border: 1px solid rgba(37, 99, 235, 0.5);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

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

.btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ===== Portfolio Section ===== */
.portfolio {
    position: relative;
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.portfolio-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.portfolio-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(2, 6, 23, 0.90) 50%,
            rgba(15, 23, 42, 0.95) 100%);
}

.portfolio .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

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

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.portfolio-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.portfolio-image {
    width: 100%;
    height: 200px;
    background: var(--darker-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-placeholder {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 700;
}

.portfolio-info {
    padding: var(--spacing-md);
}

.portfolio-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.portfolio-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.portfolio-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.portfolio-link:hover {
    color: var(--accent-color);
}

/* ===== How I Help Section ===== */
.how-i-help {
    position: relative;
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.help-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.help-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.help-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(2, 6, 23, 0.92) 0%,
            rgba(15, 23, 42, 0.95) 100%);
}

.how-i-help .container {
    position: relative;
    z-index: 1;
}

.help-content {
    max-width: 1000px;
    margin: 0 auto;
}

.help-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.help-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.help-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.help-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.help-item:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2);
    background: rgba(30, 41, 59, 0.8);
}

.help-item-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: 700;
}

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

/* ===== Service Models Section ===== */
.service-models {
    padding: var(--spacing-xl) 0;
    background: var(--dark-bg);
}

.service-models .container {
    position: relative;
    z-index: 1;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.models-grid-single {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.models-grid-single .model-card {
    max-width: 700px;
    width: 100%;
}

.model-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--spacing-lg);
    transition: var(--transition);
}

.model-card:hover {
    border-color: var(--primary-color);
}

.model-featured {
    border-color: var(--primary-color);
    position: relative;
}

.model-featured::before {
    content: 'Popular';
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.model-header {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.model-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.model-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

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

.model-features {
    list-style: none;
    margin: var(--spacing-sm) 0 var(--spacing-md) 0;
    padding: 0;
}

.model-features li {
    color: var(--text-secondary);
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-md);
    position: relative;
}

.model-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.model-note {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-style: italic;
    margin-top: var(--spacing-md);
}

.models-footer {
    text-align: center;
    padding-top: var(--spacing-md);
}

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

.models-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

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

/* ===== Contact Section ===== */
.contact {
    position: relative;
    padding: calc(var(--spacing-xl) * 1.5) 0;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.contact-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.contact-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(2, 6, 23, 0.88) 0%,
            rgba(15, 23, 42, 0.92) 50%,
            rgba(37, 99, 235, 0.15) 100%);
}

.contact .container {
    position: relative;
    z-index: 1;
}

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

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-md);
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 1.25rem 2.5rem;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(37, 99, 235, 0.3);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contact-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(37, 99, 235, 0.2),
            transparent);
    transition: left 0.5s ease;
}

.contact-method:hover::before {
    left: 100%;
}

.contact-method:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(37, 99, 235, 0.8);
    background: rgba(37, 99, 235, 0.2);
    box-shadow: 0 16px 48px rgba(37, 99, 235, 0.4);
}

.contact-icon {
    font-size: 1.75rem;
    filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.5));
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(to bottom, var(--dark-bg) 0%, var(--darker-bg) 100%);
    border-top: 1px solid rgba(37, 99, 235, 0.2);
    padding: var(--spacing-xl) 0 var(--spacing-md) 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--spacing-md);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-brand-col {
    gap: var(--spacing-md);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a,
.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.footer-availability {
    margin-top: var(--spacing-sm);
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
}

.footer-copyright,
.footer-built {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.footer-built {
    font-style: italic;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        /* Override desktop hide */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        padding: 2rem;
        z-index: 1000;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-menu.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-menu.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-menu.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-link {
        font-size: 1.5rem;
        padding: 1rem;
    }

    .hero {
        min-height: 80vh;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

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

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

    .contact-methods {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-method {
        justify-content: center;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-xs);
        text-align: center;
    }
}


/* ===== Typewriter Effect ===== */
.typewriter-text {
    color: var(--accent-color);
}

.cursor {
    display: inline-block;
    width: 0.1em;
    background-color: var(--accent-color);
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.highlight-swap {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}