:root {
    --primary: #ff6b00;
    /* Industrial Orange */
    --primary-glow: #ff9e00;
    --accent: #8e8e8e;
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-white: #f5f5f5;
    --text-gray: #a0a0a0;
    --glass-bg: rgba(30, 30, 30, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Inter', sans-serif;

    /* Spacing System */
    --section-padding: 160px;
    --container-width: 1200px;
}

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

body {
    background: #0d0d0d;
    background: radial-gradient(circle at 20% 20%, #1a1a1a 0%, #0d0d0d 100%);
    background-attachment: fixed;
    color: var(--text-white);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Global Section Headers --- */
.section-header {
    position: relative;
    margin-bottom: 4rem;
    z-index: 2;
    text-align: center;
}

.section-tag {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
}

.section-tag::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--primary);
    transform: translateX(-50%);
}

.section-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    z-index: -1;
    pointer-events: none;
    letter-spacing: -0.05em;
    user-select: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.section-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-gray);
    max-width: 800px;
    margin: 1.5rem auto 0;
    text-align: center;
}

/* --- O Mnie (About Us) Section - Modern Minimalist --- */
#o-mnie {
    position: relative;
    overflow: hidden;
    padding: var(--section-padding) 0;
    background: radial-gradient(circle at 0% 0%, rgba(255, 107, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(255, 107, 0, 0.05) 0%, transparent 50%),
        #0d0d0d;
}

.minimalist-about {
    position: relative;
    max-width: 900px !important;
}

.about-main-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-text-block p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.about-text-block p:last-child {
    margin-bottom: 0;
}

.highlight-p {
    font-size: 2rem !important;
    font-weight: 800;
    line-height: 1.2 !important;
    color: white !important;
}

.highlight-p span {
    color: var(--primary);
    /* electric-text gradient also works well here if preferred */
}

.about-text-divider {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.about-footer-text {
    margin-top: 1rem;
}

.about-footer-text p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about-footer-text i {
    font-size: 1rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    #o-mnie {
        padding: 100px 0;
    }

    .highlight-p {
        font-size: 1.6rem !important;
    }

    .about-text-block p {
        font-size: 1.1rem;
    }

    .section-bg-text {
        font-size: 30vw;
    }
}

/* --- Kontakt Section Updates --- */
.contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    font-weight: 700;
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.contact-value-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.contact-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    transition: color 0.3s;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
}

.copy-btn:hover {
    background: rgba(255, 107, 0, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

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

/* Tooltip style */
.copy-btn::after {
    content: 'Skopiowano!';
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    white-space: nowrap;
    pointer-events: none;
}

.copy-btn.copied::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 992px) {
    #o-mnie {
        padding: 80px 0;
    }

    .about-header h3 {
        font-size: 2.2rem;
    }

    .about-highlight p {
        font-size: 1.2rem;
    }
}


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

/* Typography */
h1,
h2,
h3 {
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--primary-glow));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.electric-text {
    background: linear-gradient(90deg, #ff6b00, #ff9e00, #fff700, #ff6b00);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 4s ease infinite;
    text-shadow: 0 0 20px rgba(255, 107, 0, 0.2);
    display: inline-block;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation classes */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.active .stagger-item {
    opacity: 1;
    transform: translateY(0);
}

/* Adding delays for stagged effect */
.stagger-item:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-item:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-item:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-item:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger-item:nth-child(5) {
    transition-delay: 0.5s;
}

.stagger-item:nth-child(6) {
    transition-delay: 0.6s;
}

.stagger-item:nth-child(7) {
    transition-delay: 0.7s;
}

.stagger-item:nth-child(8) {
    transition-delay: 0.8s;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background 0.3s;
}

header.scrolled {
    background: rgba(30, 30, 30, 0.85);
    /* fallback */
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    /* fallback */
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

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

/* Hamburger Menu Base */
.hamburger {
    display: none;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    transition: 0.3s;
    border-radius: 2px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: #8e8e8e;
    /* fallback */
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b00;
    /* fallback */
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #ff6b00;
    /* fallback */
    color: var(--primary);
}

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

/* Phone CTA */
.phone-wrapper {
    position: relative;
}

.phone-popup {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: #1e1e1e;
    /* fallback */
    background: var(--bg-card);
    border: 1px solid #ff6b00;
    /* fallback */
    border: 1px solid var(--primary);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    text-align: center;
    min-width: 200px;
    z-index: 1001;
    cursor: copy;
}

.phone-popup::after {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 20px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #ff6b00 transparent;
    /* fallback */
    border-color: transparent transparent var(--primary) transparent;
}

.phone-popup.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.phone-popup p {
    font-weight: 800;
    font-size: 1.1rem;
    color: #f5f5f5;
    /* fallback */
    color: var(--text-white);
    margin-bottom: 0.2rem;
}

.phone-popup small {
    color: #a0a0a0;
    /* fallback */
    color: var(--text-gray);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Utilities */
.relative-z {
    position: relative;
    z-index: 2;
}

.glass-panel {
    background: rgba(18, 18, 18, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('assets/images/hero.jpg');
    background-color: #121212;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8));
    z-index: 0;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn:focus-visible {
    outline: 3px solid var(--text-white);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b00, #ff3b00);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 107, 0, 0.55);
    color: white;
}

/* Sections General */
section {
    padding: var(--section-padding) 0;
    position: relative;
    background-color: transparent;
}

/* Industrial Divider */
section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff6b00, transparent);
    /* fallback */
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

.section-title p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* About Us */
.about-container {
    display: block;
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    color: #a0a0a0;
    /* fallback */
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: #1e1e1e;
    /* fallback */
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* fallback */
    border: 1px solid var(--border-color);
}

.about-feature i {
    color: #ff6b00;
    /* fallback */
    color: var(--primary);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #1e1e1e;
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 107, 0, 0.15),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: #252525;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ═══════════════════════════════════════════ */
/* Process Timeline */
/* ═══════════════════════════════════════════ */
.process-section {
    background: rgba(255, 255, 255, 0.015);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    position: relative;
}

/* Connecting line behind the steps */
.process-steps::before {
    content: '';
    position: absolute;
    top: 52px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), rgba(255, 107, 0, 0.3), var(--primary));
    z-index: 0;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.process-step-number {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.process-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 2px solid rgba(255, 107, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.process-step:hover .process-step-icon {
    background: rgba(255, 107, 0, 0.1);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.2);
}

.process-step h4 {
    font-size: 0.85rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.3rem;
}

.process-step p {
    font-size: 0.75rem;
    color: var(--text-gray);
    line-height: 1.4;
    max-width: 120px;
    margin: 0;
}

@media (max-width: 992px) {
    .process-steps {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .process-steps::before {
        top: 0;
        bottom: 0;
        left: 28px;
        right: auto;
        width: 2px;
        height: auto;
    }

    .process-step {
        flex-direction: row;
        text-align: left;
        gap: 1.25rem;
        padding: 1rem 0;
    }

    .process-step-number {
        display: none;
    }

    .process-step-icon {
        min-width: 56px;
        margin-bottom: 0;
    }

    .process-step p {
        max-width: none;
    }
}

/* ═══════════════════════════════════════════ */
/* Extras Grid (Dodatkowe usługi) */
/* ═══════════════════════════════════════════ */
.extras-section {
    padding: 100px 0;
}

.extras-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.extra-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.extra-item:hover {
    background: rgba(255, 107, 0, 0.05);
    border-color: rgba(255, 107, 0, 0.15);
    transform: translateY(-3px);
}

.extra-item i {
    color: var(--primary);
    font-size: 1.2rem;
    min-width: 24px;
    text-align: center;
}

.extra-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-gray);
    transition: color 0.3s;
}

.extra-item:hover span {
    color: white;
}

@media (max-width: 992px) {
    .extras-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .extras-grid {
        grid-template-columns: 1fr;
    }
}

/* Projects Grid Layout */
.portfolio-hero {
    padding: 100px 0;
    position: relative;
    background: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile default: 1 column */
    gap: 2.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Desktop: 2 columns */
    }
}

.project-card {
    background: linear-gradient(145deg, #1e1e1e, #161616);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 45px rgba(255, 107, 0, 0.15);
}

.project-folder-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-folder-icon {
    opacity: 1;
}

.project-badge-small {
    display: inline-block;
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 107, 0, 0.2);
}

.project-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.project-card p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.project-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.btn-text {
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: gap 0.3s;
}

.project-card:hover .btn-text {
    gap: 15px;
}


/* Fullscreen Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-modal.active {
    display: block;
    opacity: 1;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(135deg, #ff6b00, #ff3b00);
    border: none;
    border-radius: 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2010;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.gallery-close:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.5);
}

.gallery-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.gallery-main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.gallery-main-img {
    max-height: 85vh;
    max-width: 85vw;
    object-fit: contain;
    transition: opacity 0.3s, transform 0.3s ease-out;
    cursor: zoom-in;
}

.gallery-main-img.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ff6b00, #ff3b00);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 20px 25px;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
    z-index: 2005;
}

.gallery-nav:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.5);
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

.gallery-thumbnails {
    height: 120px;
    background: rgba(20, 20, 20, 0.9);
    display: flex;
    align-items: center;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 20px;
    scroll-behavior: smooth;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: #ff6b00;
    border-radius: 4px;
}

.gallery-thumbnails img {
    height: 80px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
    border-radius: 4px;
    border: 2px solid transparent;
}

.gallery-thumbnails img:hover {
    opacity: 0.8;
}

.gallery-thumbnails img.active-thumb {
    opacity: 1;
    border-color: #ff6b00;
    transform: scale(1.1);
    margin: 0 5px;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info {
    text-align: left;
}

.contact-info h3 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.contact-details-card {
    background: #1e1e1e;
    /* fallback */
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* fallback */
    border: 1px solid var(--border-color);
}

/* Summary Statement Card */
.summary-statement-section {
    padding: 100px 0;
}

.summary-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 900px;
    margin: 0 auto;
}

.summary-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 0, 0.2);
    transform: translateY(-5px);
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 4px 4px;
}

.summary-card p {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.3;
    color: white;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

.summary-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 107, 0, 0.2);
}

@media (max-width: 768px) {
    .summary-card {
        padding: 3rem 1.5rem;
    }

    .summary-card p {
        font-size: 1.4rem;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: #1e1e1e;
    /* fallback */
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b00;
    /* fallback */
    color: var(--primary);
    font-size: 2rem;
}

.contact-form {
    background: #1e1e1e;
    /* fallback */
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* fallback */
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

input,
textarea {
    width: 100%;
    background: #121212;
    /* fallback */
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* fallback */
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #ff6b00;
    /* fallback */
    border-color: var(--primary);
}

/* Footer */
footer {
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    /* fallback */
    border-top: 1px solid var(--border-color);
    text-align: center;
    background-color: #121212;
    /* Fallback for blue bug */
    background-color: var(--bg-dark);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.social-item {
    width: 45px;
    height: 45px;
    background: #1e1e1e;
    /* fallback */
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* fallback */
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5f5f5;
    /* fallback */
    color: var(--text-white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.social-item:hover {
    background: #ff6b00;
    /* fallback */
    background: var(--primary);
    border-color: #ff6b00;
    /* fallback */
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

/* Desktop & Mobile CTA Buttons */
.mobile-cta {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    /* Hamburger Menu Active Logic */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: var(--bg-card);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    body.menu-open {
        overflow: hidden;
    }

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

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

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

    .desktop-cta {
        display: none;
    }

    .mobile-cta {
        display: inline-block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .btn {
        padding: 0.8rem 1.8rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info h3 {
        font-size: 2.5rem;
    }

    .contact-details-card {
        padding: 2rem 1.5rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .gallery-nav {
        padding: 15px;
        font-size: 1.5rem;
    }

    .gallery-main-img {
        max-width: 100vw;
    }

    .portfolio-hero {
        margin-bottom: 2rem;
    }

    /* Disable fixed backgrounds on mobile for better scaling/performance */
    .hero,
    .portfolio-hero,
    body {
        background-attachment: scroll !important;
    }

    .contact-info h3 {
        font-size: 1.8rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }
}