:root {
    --bg-color: #050505;
    --surface-color: rgba(20, 20, 20, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #ff3300;
    /* Slightly more aggressive red-orange */
    --accent-secondary: #ff6600;
    --accent-glow: rgba(255, 51, 0, 0.4);
    --gradient-primary: linear-gradient(135deg, #ff3300 0%, #ff8800 100%);
    --nav-height: 90px;
    --container-width: 1400px;
    --cursor-size: 20px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Unbounded', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
    max-width: 100%;
}

/* Noise Texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9000;
    opacity: 0.4;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10001;
    /* Above modal (10000) */
    pointer-events: none;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: white;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    opacity: 1;
}

/* Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

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

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

h1 {
    font-size: 6rem;
    line-height: 0.95;
    margin-bottom: 40px;
}

h2 {
    font-size: 4rem;
    margin-bottom: 20px;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--accent-color);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border-radius: 0;
    /* Brutalist sharp edges */
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-primary {
    background: var(--accent-color);
    color: black;
    border: none;
}

.btn-primary:hover {
    background: white;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    margin-left: 20px;
}

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Fill safe-area space with black background */
.navbar::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: env(safe-area-inset-top);
    background: #050505;
    z-index: -1;
}

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

.logo {
    font-size: 2rem;
    font-weight: 800;
    text-decoration: none;
    color: white;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    padding: 5px 0;
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 0;
    color: var(--accent-color);
    transition: top 0.3s;
}

.nav-link:hover {
    color: transparent;
}

.nav-link:hover::before {
    top: 0;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: var(--nav-height);
}

.hero-container {
    z-index: 2;
}

.hero-desc {
    max-width: 600px;
    margin-bottom: 40px;
    font-size: 1.4rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 6px;
    }

    100% {
        opacity: 0;
        top: 20px;
    }
}

/* Services */
.services {
    padding: 150px 0;
}

.section-header {
    margin-bottom: 80px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.glass-effect {
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px;
    transition: all 0.4s ease;
}

.service-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.service-card .icon {
    font-size: 3.5rem;
    margin-bottom: 30px;
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--accent-glow);
}

/* Work List */
.work {
    padding: 150px 0;
}

.work-list {
    display: flex;
    flex-direction: column;
}

.work-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    cursor: pointer;
    /* Ensure pointer cursor */
}

.work-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.work-item:hover {
    padding-left: 20px;
    padding-right: 20px;
    /* Removed border-color change as requested */
}

.work-info {
    display: flex;
    align-items: baseline;
    gap: 40px;
}

.work-num {
    font-size: 1rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.work-title {
    font-size: 3rem;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0;
    transition: color 0.3s;
}

.work-item:hover .work-title {
    /* Removed color change as requested to avoid "glowing" */
    font-style: italic;
}

.work-meta {
    display: flex;
    gap: 40px;
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Floating Preview Removed */

/* Review Modal */
.review-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-modal.active {
    display: flex;
    opacity: 1;
}

.review-content {
    max-width: 800px;
    padding: 60px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(20, 20, 20, 0.8);
}

.review-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.review-close:hover {
    color: var(--accent-color);
}

.review-text {
    font-size: 2rem;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.4;
    color: white;
}

.review-author {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Contact */
.contact {
    padding: 150px 0;
    text-align: center;
}

.contact-wrapper {
    padding: 100px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s;
}

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

/* Mobile Responsive */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 30px;
    height: 2px;
    background-color: white;
    transition: 0.3s;
}

@media (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
        position: relative;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    * {
        cursor: auto;
        max-width: 100%;
    }

    .container {
        max-width: 100%;
        overflow-x: hidden;
    }

    section {
        overflow-x: hidden;
        max-width: 100vw;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 25px;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    p {
        font-size: 1rem;
    }

    .hero {
        min-height: 100vh;
        padding-top: calc(70px + env(safe-area-inset-top) + 20px);
    }

    /* All sections should respect navbar */
    section {
        overflow-x: hidden;
        max-width: 100vw;
        position: relative;
    }

    .hero-container {
        text-align: left;
    }

    .hero-desc {
        font-size: 1.05rem;
        margin-bottom: 30px;
        line-height: 1.5;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        padding: 14px 30px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }

    .btn-outline {
        margin-left: 0;
    }

    .btn-large {
        padding: 18px 40px;
        font-size: 1rem;
    }

    /* Navbar Mobile */
    .navbar {
        height: 70px;
        padding-top: env(safe-area-inset-top);
        height: calc(70px + env(safe-area-inset-top));
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: black;
        flex-direction: column;
        justify-content: center;
        padding: 20px;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

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

    /* Services Section Mobile */
    .services,
    .work,
    .process,
    .pricing,
    .faq,
    .contact {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 50px;
    }

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

    .glass-effect {
        padding: 30px 20px;
    }

    .service-card .icon {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    /* Work Section Mobile */
    .work-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 0;
        gap: 15px;
    }

    .work-item:hover {
        padding-left: 0;
        padding-right: 0;
    }

    .work-info {
        gap: 20px;
        flex-wrap: wrap;
    }

    .work-title {
        font-size: 1.5rem;
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        line-height: 1.2;
        margin-bottom: 8px;
    }

    .work-meta {
        gap: 20px;
        font-size: 0.85rem;
    }

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

    .work-image-wrapper {
        height: 300px;
    }

    /* Process Section Mobile */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .step-number {
        font-size: 3rem;
    }

    /* Pricing Section Mobile */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-card {
        padding: 30px 20px;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card .price {
        font-size: 2rem;
    }

    /* FAQ Section Mobile */
    .accordion-header {
        padding: 20px;
    }

    .accordion-header h3 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .accordion-content p {
        padding: 20px;
        font-size: 0.95rem;
    }

    /* Contact Section Mobile */
    .contact-wrapper {
        padding: 60px 20px;
    }

    /* Footer Mobile */
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* Scroll Indicator */
    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-indicator span {
        font-size: 0.7rem;
    }
}

/* Process Section */
.process {
    padding: 100px 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    counter-reset: step;
}

.step {
    position: relative;
    padding-top: 20px;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: -20px;
    left: 0;
    z-index: -1;
    transition: color 0.3s;
}

.step:hover .step-number {
    color: rgba(255, 77, 0, 0.2);
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    margin-top: 10px;
    color: var(--accent-color);
    line-height: 1.3;
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: start;
}

.pricing-card {
    padding: 40px;
    text-align: center;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(255, 77, 0, 0.1);
    transform: scale(1.05);
    z-index: 2;
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: black;
    padding: 5px 15px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 20px 0;
    color: white;
}

.features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.features li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
}

.features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.full-width {
    width: 100%;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.accordion-item {
    padding: 0;
    overflow: hidden;
}

.accordion-header {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.accordion-header .icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(45deg);
    color: var(--accent-color);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.2);
}

.accordion-content p {
    padding: 25px;
    padding-top: 0;
}

/* Portfolio Enhancements */
.work-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.work-price {
    background: var(--accent-color);
    color: black;
    padding: 2px 8px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 4px;
}

.work-review {
    margin-top: 15px;
    font-style: italic;
    font-size: 0.9rem;
    color: #ddd;
    border-left: 2px solid var(--accent-color);
    padding-left: 10px;
}

.work-review span {
    color: var(--accent-color);
    font-weight: 600;
    font-style: normal;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255, 77, 0, 0.2);
    animation: zoomIn 0.3s;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.work-item {
    cursor: pointer;
}

.work-item:hover .work-overlay {
    background: linear-gradient(to top, black, rgba(0, 0, 0, 0.5));
}