/*
 * RK Design Theme - Main Stylesheet
 * Ported 1:1 from the RK Design Studios reference design.
 * Base states are VISIBLE by default so a failed reveal can never hide content.
 */

:root {
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --brand-dark: #050505;
    --brand-surface: #111111;
    --brand-light: #f4f4f5;
    --brand-accent: #d4af37;
    --brand-muted: #71717a;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--brand-dark);
    color: var(--brand-light);
    overflow-x: hidden;
    overscroll-behavior: none;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

::selection {
    background: var(--brand-accent);
    color: var(--brand-dark);
}

::-webkit-scrollbar { width: 0px; }

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   MOBILE-FIRST CONTAINER SYSTEM
   All content constrained to viewport width
   ============================================ */
.container-tight {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.container-wide {
    width: 100%;
    max-width: 100rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.container-full {
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .container-tight,
    .container-wide,
    .container-full {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .container-tight,
    .container-wide {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

/* ============================================
   PAGE TRANSITION OVERLAY
   ============================================ */
.page-transition-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--brand-dark);
    z-index: 9999;
    transform: scaleY(0);
    transform-origin: bottom;
    pointer-events: none;
}

/* ============================================
   INTERACTIVE HOVER EFFECTS
   ============================================ */
.glow-on-hover {
    transition: all 0.4s var(--ease-out-expo);
}

.glow-on-hover:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.15), 0 0 60px rgba(212, 175, 55, 0.05);
    transform: translateY(-2px);
}

.glow-line {
    position: relative;
    overflow: hidden;
}

.glow-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-accent), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.6s var(--ease-out-expo);
}

.glow-line:hover::after {
    transform: scaleX(1);
}

.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.8s var(--ease-out-expo);
}

.shimmer:hover::before {
    left: 100%;
}

/* Magnetic button effect */
.magnetic-btn {
    transition: transform 0.3s var(--ease-out-expo);
}

/* ============================================
   FLOATING ANIMATIONS
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
    animation: floatSlow 8s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* ============================================
   IMAGE MASKING FOR CINEMATIC REVEALS
   ============================================ */
.reveal-mask {
    transition: clip-path 1.2s var(--ease-out-expo);
}
.reveal-mask.animate-reveal {
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
}
.reveal-mask.animate-reveal.is-revealed {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.img-zoom {
    transition: transform 1.5s var(--ease-out-expo);
    will-change: transform;
}
.reveal-mask.animate-reveal .img-zoom {
    transform: scale(1.2);
}
.reveal-mask.animate-reveal.is-revealed .img-zoom {
    transform: scale(1);
}

#hero-img-mask .img-zoom {
    transform: scale(1.05);
    transition: none;
    will-change: transform;
}

/* ============================================
   HOVER IMAGE EFFECTS
   ============================================ */
.hover-zoom-container {
    overflow: hidden;
}
.hover-zoom-container img {
    transition: transform 0.8s var(--ease-out-expo), filter 0.8s ease;
}
.hover-zoom-container:hover img {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* Image tilt effect on hover */
.tilt-hover {
    transition: transform 0.5s var(--ease-out-expo);
    transform-style: preserve-3d;
}

.tilt-hover:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) scale(1.02);
}

/* ============================================
   UI ELEMENTS
   ============================================ */
.nav-link {
    position: relative;
    overflow: hidden;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 100%; height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out-expo);
}
.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.outline-text {
    color: transparent;
    -webkit-text-stroke: 1px rgba(244, 244, 245, 0.2);
    transition: color 0.4s ease, -webkit-text-stroke 0.4s ease;
}
.outline-text:hover {
    color: var(--brand-light);
    -webkit-text-stroke: 1px var(--brand-light);
}

/* ============================================
   FORMS
   ============================================ */
.premium-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(244, 244, 245, 0.2);
    padding: 1.5rem 0;
    color: var(--brand-light);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.4s ease;
    border-radius: 0;
}
.premium-input:focus {
    outline: none;
    border-bottom-color: var(--brand-accent);
}
.premium-input::placeholder {
    color: var(--brand-muted);
    font-weight: 300;
}

/* ============================================
   VIEWS
   ============================================ */
.view-section {
    display: block;
    opacity: 1;
    width: 100%;
}

/* ============================================
   AMBIENT GLOW
   ============================================ */
.ambient-glow {
    position: absolute;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(212,175,55,0.05) 0%, rgba(5,5,5,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.ambient-glow-sm {
    position: absolute;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(212,175,55,0.03) 0%, rgba(5,5,5,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Floating particles */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--brand-accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 10s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 60%; animation-delay: 2s; }
.particle:nth-child(3) { left: 80%; top: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 70%; top: 70%; animation-delay: 1s; }
.particle:nth-child(5) { left: 90%; top: 50%; animation-delay: 3s; }

/* ============================================
   HERO TEXT REVEAL
   ============================================ */
.hero-text-reveal {
    will-change: transform, opacity;
}

@keyframes heroReveal {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

html:not(.gsap-active) .hero-text-reveal {
    animation: heroReveal 1.2s var(--ease-out-expo) both;
}
html:not(.gsap-active) .overflow-hidden > .hero-text-reveal:nth-child(1) { animation-delay: 0.45s; }
html:not(.gsap-active) .overflow-hidden > .hero-text-reveal:nth-child(2) { animation-delay: 0.60s; }
html:not(.gsap-active) .overflow-hidden > .hero-text-reveal:nth-child(3) { animation-delay: 0.75s; }
html:not(.gsap-active) p.hero-text-reveal { animation-delay: 1.10s; }

/* ============================================
   SCROLL INDICATOR
   ============================================ */
@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* ============================================
   FADE UP ELEMENT BASE STATE
   Ensures content is visible even without JS
   ============================================ */
.fade-up-element {
    opacity: 1;
    transform: translateY(0);
}

.fade-up-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
    .reveal-mask,
    .reveal-mask.animate-reveal,
    .reveal-mask.animate-reveal.is-revealed,
    .reveal-mask.is-revealed {
        clip-path: none;
        transition: none;
    }
    .img-zoom,
    .reveal-mask.animate-reveal .img-zoom,
    .reveal-mask.animate-reveal.is-revealed .img-zoom {
        transform: none;
        transition: none;
    }
    .animate-float,
    .animate-float-slow,
    .animate-pulse-glow {
        animation: none;
    }
}

/* ============================================
   SITE FOOTER
   ============================================ */
.site-footer {
    padding: 3.5rem 1.5rem 1.5rem;
    background: #0c0c0b;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 3.5rem 2rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .site-footer {
        padding: 3.5rem 4rem 1.5rem;
    }
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: 1.4fr .8fr 1fr;
        gap: 3rem;
    }
}

.footer-brand-col p {
    color: var(--brand-muted);
    font-size: 0.75rem;
    margin-top: 1.25rem;
    max-width: 320px;
    line-height: 1.7;
}

.footer-brand .brand-mark {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -2px;
    color: var(--brand-light);
    line-height: 1;
}
.footer-brand .brand-mark span { color: var(--brand-accent); }
.footer-brand .brand-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.625rem;
    line-height: 1.3;
    letter-spacing: 1px;
    color: var(--brand-muted);
}

.footer-links,
.footer-social {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    font-size: 0.75rem;
}

.footer-social > .footer-col-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.625rem;
    line-height: 1.6;
    letter-spacing: 1px;
    color: var(--brand-muted);
    margin-bottom: 0.25rem;
}

.footer-col-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.625rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--brand-muted);
    margin-bottom: 0.25rem;
    width: 100%;
}

.footer-links a,
.footer-social-names a {
    color: #eee;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s ease;
}
.footer-links a:hover,
.footer-social-names a:hover { color: var(--brand-accent); }

.footer-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}
.footer-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.375rem;
    height: 2.375rem;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 50%;
    font-size: 0.875rem;
    color: #eee;
    transition: all 0.25s ease;
}
.footer-social-icons a:hover {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

/* Clickable Call / Email pills beside the social icons */
.footer-social-icons--actions {
    gap: 0.5rem;
}
.footer-icon-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    width: auto !important;
    height: 2.375rem;
    padding: 0 0.9rem;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.625rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #eee;
    transition: all 0.25s ease;
}
.footer-icon-btn:hover {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}
.footer-icon-btn i { font-size: 0.75rem; }

.footer-contact {
    margin-top: 1.375rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.footer-contact-item {
    display: flex;
    align-items: baseline;
    gap: 0.625rem;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--brand-muted);
    font-family: 'Inter', sans-serif;
    transition: color 0.2s ease;
}
.footer-contact-item a,
a.footer-contact-item {
    color: var(--brand-muted);
    text-decoration: none;
}
.footer-contact-item:hover { color: var(--brand-accent); }
.footer-contact-item i {
    color: var(--brand-accent);
    font-size: 0.6875rem;
    flex-shrink: 0;
    width: 0.875rem;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.125rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.875rem;
    color: var(--brand-muted);
    font-size: 0.625rem;
    font-family: 'Inter', sans-serif;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        align-items: center;
        gap: 1.25rem;
    }
}

.footer-legal {
    display: flex;
    gap: 1.25rem;
}
.footer-legal a {
    color: var(--brand-muted);
    transition: color 0.2s ease;
}
.footer-legal a:hover { color: var(--brand-accent); }

.footer-credit b { color: var(--brand-accent); font-weight: 400; }

/* ============================================
   LOGO
   ============================================ */
.rk-logo-mark {
    display: block;
    font-family: 'Syncopate', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #d4af37;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.55);
    padding: 0.3rem 0.45rem 0.28rem;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

.rk-logo-name {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.55rem;
    line-height: 1.2;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #d4af37;
    margin-top: 0.35rem;
    transition: color 0.3s ease;
}

a:hover .rk-logo-mark {
    background: rgba(212, 175, 55, 0.92);
    border-color: #d4af37;
    color: #050505;
    transform: scale(1.05);
}

a:hover .rk-logo-name { color: #f4f4f5; }

/* Footer logo: tight box, no oversized border or padding */
.rk-logo-link--footer {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
}
.rk-logo-link--footer .rk-logo-mark {
    font-size: 0.95rem;
    background: transparent;
    border: none;
    padding: 0;
    letter-spacing: 0.04em;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.rk-logo-link--footer .rk-logo-name {
    font-size: 0.5rem;
    letter-spacing: 0.3em;
    margin-top: 0.2rem;
}
.rk-logo-link--footer:hover .rk-logo-mark {
    background: transparent;
    color: #f4f4f5;
    transform: none;
}

/* ============================================
   NAV LINKS
   ============================================ */
#main-header .nav-link {
    color: #d4af37;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 0.35rem 0.5rem 0.4rem;
    transition: all 0.3s ease;
}

#main-header .nav-link::after {
    height: 1px;
    bottom: 0;
    background: #d4af37;
}

#main-header .nav-link:hover,
#main-header .nav-link.active {
    color: #050505;
    background: rgba(212, 175, 55, 0.92);
}

#main-header .nav-link:hover::after,
#main-header .nav-link.active::after {
    background: #050505;
    transform: scaleX(1);
    transform-origin: left;
}

/* ============================================
   CONTACT FORM
   The markup carries Tailwind mb-* margins on .form-group, which would
   stack on top of the grid gap. Neutralise them so every field is spaced
   by the grid alone and the left edges align to one column.
   ============================================ */
.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0 !important;
}

/* Paired fields (email/phone, project type/location) sit side by side on
   desktop and stack on mobile, so their baselines always line up. */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
}

.form-group label {
    font-family: 'Inter', sans-serif;
    font-size: 0.6875rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--brand-muted);
    margin-bottom: 0.55rem;
    line-height: 1.4;
}

.form-input {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--brand-light);
    background: rgba(255, 255, 255, 0.03);
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0;
    padding: 0.65rem 0.1rem;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(244, 244, 245, 0.34);
    font-weight: 300;
}

.form-input:hover {
    border-bottom-color: rgba(255, 255, 255, 0.34);
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-bottom-color: var(--brand-accent);
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 7'%3E%3Cpath fill='%23d4af37' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.15rem center;
    background-size: 9px;
    padding-right: 1.4rem;
    cursor: pointer;
}

select.form-input option {
    background: var(--brand-dark);
    color: var(--brand-light);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-input.has-error {
    border-bottom-color: #f87171;
}

.form-input:focus-visible {
    outline: none;
    border-bottom-color: var(--brand-accent);
}

.submit-btn {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--brand-accent);
    color: var(--brand-dark);
    padding: 1rem 2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 1.5px;
    border: 1px solid var(--brand-accent);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.submit-btn:hover {
    background: transparent;
    color: var(--brand-accent);
    border-color: var(--brand-accent);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.submit-btn .btn-arrow {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.form-success { margin-top: 1.5rem; }
.form-error { margin-top: 1.5rem; }

/* ============================================
   HEADER & HERO CLEARANCE
   ============================================ */
#main-header {
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0.32) 55%, rgba(5, 5, 5, 0) 100%);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

/* Stronger scrim on mobile: the hero image is lighter and the header overlaps it */
@media (max-width: 767px) {
    #main-header {
        background: linear-gradient(to bottom, rgba(5, 5, 5, 0.88) 0%, rgba(5, 5, 5, 0.62) 55%, rgba(5, 5, 5, 0) 100%);
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }
    /* Solid backing for the logo so the gold always reads against the photo */
    .rk-logo-mark {
        background: rgba(5, 5, 5, 0.92);
        border: 1px solid rgba(212, 175, 55, 0.7);
        padding: 0.22rem 0.4rem 0.2rem;
        font-size: 1.3rem;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
    }
    .rk-logo-name {
        font-size: 0.5rem;
        letter-spacing: 0.34em;
        color: #f0d97a;
    }
}

@media (max-width: 767px) {
    #view-home > div:first-child { padding-top: 7rem; }
}

.about-hero,
.services-hero,
.portfolio-hero,
.contact-hero,
.content-page,
.error-404 {
    padding-top: 5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .about-hero,
    .services-hero,
    .portfolio-hero,
    .contact-hero,
    .content-page,
    .error-404 {
        padding-top: 6rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .about-hero,
    .services-hero,
    .portfolio-hero,
    .contact-hero,
    .content-page,
    .error-404 {
        padding-top: 9rem;
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

/* ============================================
   HERO SECTION MOBILE
   ============================================ */
.hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 1rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 6rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-section {
        padding-bottom: 1.5rem;
        padding-left: 2rem;
        padding-right: 2rem;
        padding-top: 8rem;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        padding-bottom: 2rem;
        padding-left: 4rem;
        padding-right: 4rem;
        padding-top: 10rem;
    }
}

/* ============================================
   HERO IMAGE RIPPLE (WebGL)
   ============================================ */
#hero-img-mask[data-ripple="on"] img {
    opacity: 0;
}

#hero-img-mask canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    touch-action: none;
}

@media (prefers-reduced-motion: reduce) {
    #hero-img-mask canvas { display: none; }
}

/* ============================================
   STUDIO MAP
   ============================================ */
.contact-map {
    padding: 3rem 1.5rem 4rem;
}

@media (min-width: 768px) {
    .contact-map {
        padding: 4rem 2rem 5rem;
    }
}

@media (min-width: 1024px) {
    .contact-map {
        padding: 4rem 4rem 5rem;
    }
}

/* Google Maps embed. Kept the gold hairline and a dark surround so it reads
   as part of the theme, but no filter - the grayscale that was here made the
   real map look broken. */
.map-embed {
    position: relative;
    width: 100%;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: var(--brand-surface);
    overflow: hidden;
    line-height: 0;
}

.map-embed iframe,
.map-embed-frame {
    display: block;
    width: 100%;
    max-width: 100%;
    height: clamp(280px, 50vw, 500px);
    border: 0;
}

/* Static map placeholder for Sadashivnagar */
.map-placeholder {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    height: clamp(280px, 50vw, 500px);
    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 44px),
        var(--brand-surface);
    border: 1px dashed rgba(212, 175, 55, 0.3);
    text-align: center;
    padding: 1.5rem;
    overflow: hidden;
}

.map-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        linear-gradient(-135deg, rgba(212, 175, 55, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.map-placeholder-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.map-placeholder-pin {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.map-placeholder-pin i {
    font-size: 2.5rem;
    color: var(--brand-accent);
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
}

.map-placeholder-text {
    position: relative;
    z-index: 1;
}

.map-placeholder-text span {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--brand-light);
    max-width: 30ch;
    line-height: 1.6;
}

.map-placeholder-text .map-placeholder-note {
    font-size: 0.625rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--brand-muted);
    max-width: none;
    margin-top: 0.5rem;
}

/* Sadashivnagar location badge */
.map-location-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(5, 5, 5, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    z-index: 2;
}

.map-location-badge i {
    color: var(--brand-accent);
    font-size: 0.75rem;
}

.map-location-badge span {
    font-family: 'Inter', sans-serif;
    font-size: 0.625rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brand-light);
}

/* ============================================
   ABOUT CONTENT SECTIONS
   ============================================ */
.about-content,
.services-content,
.portfolio-content,
.contact-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .about-content,
    .services-content,
    .portfolio-content,
    .contact-content {
        padding-left: 2rem;
        padding-right: 2rem;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media (min-width: 1024px) {
    .about-content,
    .services-content,
    .portfolio-content,
    .contact-content {
        padding-left: 4rem;
        padding-right: 4rem;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* ============================================
   MOBILE GRID ADJUSTMENTS
   ============================================ */
@media (max-width: 767px) {
    .grid-cols-1-lg {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (min-width: 768px) {
    .grid-cols-1-lg {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .grid-cols-1-lg {
        gap: 5rem;
    }
}

/* ============================================
   SERVICE LIST MOBILE
   ============================================ */
@media (max-width: 767px) {
    .service-detail-list article {
        padding: 1.5rem 0;
    }

    .service-detail-list article + article {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* ============================================
   PORTFOLIO GRID MOBILE
   ============================================ */
.portfolio-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .portfolio-vision-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .portfolio-vision-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

.portfolio-real-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .portfolio-real-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* ============================================
   PAGE CONTENT STYLING
   ============================================ */
.page-content {
    max-width: 65ch;
}

.page-content p {
    margin-bottom: 1.25rem;
    color: var(--brand-muted);
    line-height: 1.8;
}

.page-content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */
.corner-accent {
    position: absolute;
    width: 60px;
    height: 60px;
    pointer-events: none;
}

.corner-accent::before,
.corner-accent::after {
    content: '';
    position: absolute;
    background: var(--brand-accent);
    opacity: 0.3;
}

.corner-accent--top-left::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
}

.corner-accent--top-left::after {
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
}

.corner-accent--bottom-right::before {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 1px;
}

.corner-accent--bottom-right::after {
    bottom: 0;
    right: 0;
    width: 1px;
    height: 100%;
}

/* Gold line separator */
.gold-line {
    width: 40px;
    height: 1px;
    background: var(--brand-accent);
    margin: 1rem 0;
}

.gold-line--center {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   TESTIMONIAL SLIDER
   ============================================ */
.testimonial-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-slide {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.6s ease;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
}

/* ============================================
   MOBILE MENU ANIMATION
   ============================================ */
#mobile-menu {
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out-expo);
}

#mobile-menu.open {
    transform: translateX(0);
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--brand-accent);
    color: var(--brand-dark);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid var(--brand-accent);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: transparent;
    color: var(--brand-accent);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    background: transparent;
    color: var(--brand-light);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

/* ============================================
   CURSOR GLOW - Interactive light following cursor
   ============================================ */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: screen;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-accent), #f4d35e);
    z-index: 10000;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* ============================================
   STAGGERED TEXT ANIMATION
   ============================================ */
.stagger-word {
    display: inline-block;
    opacity: 0;
    animation: staggerIn 0.6s var(--ease-out-expo) forwards;
}

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

/* ============================================
   LOADING ANIMATION
   ============================================ */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.loading-skeleton {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.02) 25%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.02) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
