@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Silkscreen&display=swap');

:root {
    --bg-color: #f5f5f5;
    --card-bg: #e6e6e6;
    --text-primary: #121212;
    --text-secondary: #666666;
    --dock-bg: rgba(30, 30, 30, 0.35);
    /* Reduced opacity for better glass effect */
    --dock-border: rgba(255, 255, 255, 0.1);
    --accent: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f5f5f5;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease, background 0.3s ease;
    mix-blend-mode: difference;
    background: #fff;
}

/* Marquee Section */
.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 100px 0;
    white-space: nowrap;
    margin: 4vh 0;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee-content span {
    font-size: 5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    padding: 0 40px;
    opacity: 0.1;
    -webkit-text-stroke: 1px var(--text-primary);
    color: transparent;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Professional Blur-Fade Reveal Animation */
.reveal {
    opacity: 0;
    filter: blur(15px);
    transform: translateY(30px);
    transition: 
        opacity 1.2s cubic-bezier(0.2, 1, 0.3, 1),
        filter 1.2s cubic-bezier(0.2, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: opacity, filter, transform;
}

.reveal.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Staggering for better flow */
.reveal:nth-child(even) {
    transition-delay: 0.1s;
}

section,
footer {
    /* Base styles for sections, animations handled by reveal class internally */
    position: relative;
}

.main-wrapper {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-container,
.about-section-card {
    background-color: var(--card-bg);
    width: 98%;
    max-width: 1900px;
    min-height: 90vh;
    border-radius: 150px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.08);
    margin: 1.5vh auto;
    z-index: 2;
}

.hero-container {
    height: 97vh;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 160px 80px;
}

.hero-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, rgba(230, 230, 230, 0.4) 0%, transparent 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 40%);
    mask-image: linear-gradient(to bottom, transparent, black 40%);
    z-index: 3;
    pointer-events: none;
}

.hero-content-left {
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: left;
    text-align: left;
    transform: translateY(-20px);
}

.logo-text {
    font-family: 'Silkscreen', cursive;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    letter-spacing: -3px;
    color: var(--text-primary);
    line-height: 0.85;
    text-transform: uppercase;
}

.sub-logo {
    font-family: 'Silkscreen', cursive;
    font-size: 0.95rem;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-top: 15px;
    font-weight: 400;
    text-transform: uppercase;
}

.hero-image-wrapper {
    position: absolute;
    bottom: -1px;
    /* Ensure no gap at bottom */
    left: 50%;
    transform: translateX(-50%);
    height: 80%;
    width: auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.hero-image {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.05);
    transition: filter 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-container:hover .hero-image {
    filter: grayscale(0%) brightness(1);
}

.hero-content-right {
    z-index: 5;
    display: flex;
    justify-content: flex-end;
}

.description {
    max-width: 240px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-secondary);
    text-align: left;
    font-weight: 400;
    letter-spacing: -0.2px;
}

/* Navigation Dock */
.nav-dock-wrapper {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: auto;
}

.nav-dock {
    position: relative;
    background: var(--dock-bg);
    border: 1px solid var(--dock-border);
    border-radius: 30px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 48px;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.5),
        inset 0 0 12px rgba(255, 255, 255, 0.1);
    padding-right: 8px;
    transform: translateZ(0);
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
}



.profile-thumb {
    width: 60px;
    height: 60px;
    border-radius: 22px;
    overflow: hidden;
    background: #e67e22;
    /* Warm accent for thumb */
    border: none;
}

.profile-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.6);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    font-family: 'Silkscreen', cursive;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
}

.nav-links a:hover {
    color: #fff;
    transform: translateY(-1px);
}

.contact-btn {
    font-family: 'Silkscreen', cursive;
    background-color: var(--accent);
    color: #000;
    border: none;
    padding: 22px 48px;
    border-radius: 22px;
    font-size: 0.8rem;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.contact-btn span {
    font-size: 1.1rem;
    line-height: 1;
}

.contact-btn:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Sections Common */
section {
    padding: 100px 0;
    width: 100%;
    max-width: 1400px;
}

/* About Section */
.about-section-card {
    background: linear-gradient(135deg, #f37335 0%, #fdc830 100%) !important;
    display: flex;
    flex-direction: row;
    /* Side by side */
    justify-content: center;
    align-items: center;
    padding: 160px 80px;
    height: 130vh;
    gap: 100px;
    /* Space in between */
    position: relative;
}

.about-section-card .hero-content-right {
    align-self: flex-end; /* Overrides the center alignment to move lower */
    padding-bottom: 80px; /* Ensures it doesn't touch the bottom edge */
}

.about-watermark {
    font-size: clamp(5rem, 15vw, 15rem);
    position: absolute;
    top: 60px;
    left: 80px;
    /* High visibility watermark */
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.4);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.25);
    pointer-events: none;
    z-index: 1;
    text-transform: uppercase;
}

.about-arrow {
    position: relative;
    transform: translateY(180px) rotateX(20deg) rotateY(-10deg) rotateZ(-15deg);
    /* Moved lower as requested */
    width: clamp(300px, 35vw, 500px);
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
    animation: floatingArrow 10s ease-in-out infinite;
    opacity: 0.9;
}

@keyframes floatingArrow {

    0%,
    100% {
        transform: translateY(180px) rotateX(20deg) rotateY(-10deg) rotateZ(-15deg);
    }

    50% {
        transform: translateY(140px) rotateX(25deg) rotateY(-5deg) rotateZ(-10deg);
    }
}

.about-section {
    display: grid;
    grid-template-columns: 0.8fr 1.5fr;
    gap: 120px;
    align-items: start;
    padding: 160px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.about-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-label::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--text-primary);
    display: inline-block;
}

.about-content h2 {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.95;
    color: var(--text-primary);
    margin-bottom: 40px;
    font-weight: 500;
    letter-spacing: -3px;
}

.about-section-card .about-description {
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.4;
    font-weight: 300;
    letter-spacing: -0.5px;
    text-align: left;
    position: relative;
    top: 70px; /* Tiny nudge up from 100px */
    margin-top: 50px;
}

.text-highlight {
    color: #fff;
    font-weight: 500;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: inline-block;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 2px;
}

.text-highlight-bold {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Silkscreen', cursive;
    font-size: 0.9em;
    background: #000;
    padding: 4px 12px;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Services Section */
.services-section {
    padding: 160px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-top: 90px;
}

.service-item {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 40px;
    background: #fff;
    border-radius: 40px;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    border: 1px solid transparent;
}

.service-item:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.03);
}

.service-num {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-primary);
    opacity: 0.3;
    font-family: 'Silkscreen', cursive;
}

.service-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.service-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Projects Section */
.projects-section {
    padding: 120px 0;
    width: 100%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-top: 40px;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.project-image-container {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 60px;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1), filter 0.8s ease;
}

/* ---- Projects Section V2: Horizontal Marquee ---- */
.projects-section-card {
    background: linear-gradient(135deg, #001a13 0%, #003d2b 60%, #005a3f 100%);
    width: 98%;
    max-width: 1900px;
    min-height: 90vh;
    border-radius: 150px;
    position: relative;
    margin: 1.5vh auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 100px 0 80px;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.15);
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 100px;
    margin-bottom: 70px;
}

.projects-header-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.projects-label {
    font-family: 'Silkscreen', cursive;
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
}

.projects-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.projects-count {
    font-family: 'Silkscreen', cursive;
    font-size: clamp(3rem, 6vw, 5.5rem);
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
    letter-spacing: -2px;
}

/* Marquee track */
.projects-track-wrapper {
    width: 100%;
    overflow: hidden;
    cursor: grab;
}

.projects-track-wrapper:active {
    cursor: grabbing;
}

.projects-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: proj-scroll 30s linear infinite;
    padding: 0 24px;
}

/* .projects-track-wrapper:hover .projects-track {
    animation-play-state: paused;
} */

@keyframes proj-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Individual project card - Glassmorphic */
.proj-card {
    flex-shrink: 0;
    width: 280px;
    height: 380px;
    border-radius: 40px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.proj-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* Full-bleed background image fills the entire card */
.proj-card-img {
    position: absolute;
    inset: 0;
    background-size: cover !important;
    background-position: center !important;
}

/* Dark gradient scrim at the bottom so glass panel is readable */
.proj-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 10, 6, 0.6) 0%,
            rgba(0, 10, 6, 0.1) 50%,
            transparent 100%);
}

/* Glassmorphic info panel — large rectangle covering most of the card */
.proj-card-info {
    position: absolute;
    inset: 56px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
    /* Glass effect */
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.proj-tag {
    font-family: 'Silkscreen', cursive;
    font-size: 0.62rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    align-self: flex-start;
}

.proj-name {
    font-family: 'Silkscreen', cursive;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: #fff;
    font-weight: 400;
    letter-spacing: -0.5px;
    line-height: 1.3;
    text-align: left;
}

.proj-year {
    font-family: 'Silkscreen', cursive;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1.5px;
    align-self: flex-end;
}

/* Journal Section */
.journal-section {
    padding: 120px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.journal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 40px;
}

.journal-item {
    display: grid;
    grid-template-columns: 1fr 2.5fr 1fr;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.journal-item:hover {
    padding: 60px 40px;
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.04);
}

.journal-meta {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-primary);
    opacity: 0.3;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.journal-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -1px;
}

/* Footer Section V2 */
.footer-wrapper {
    width: 100%;
    background-color: #000000;
    padding-bottom: 2vh;
    position: relative;
    overflow: hidden;
}

.footer-card {
    background:
        radial-gradient(ellipse 60% 50% at 10% 15%, rgba(210, 120, 30, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 50% 45% at 90% 85%, rgba(80, 60, 180, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 70%),
        #0d0d0d;
    width: 98%;
    max-width: 1900px;
    height: 120vh;
    border-radius: 100px;
    margin: 1.5vh auto;
    padding: 120px 100px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: 1fr;
    align-items: stretch;
    color: #ffffff;
    position: relative;
    box-sizing: border-box;
    overflow: clip;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 80px 160px -40px rgba(0, 0, 0, 0.8);
}

/* Grain noise texture overlay */
.footer-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

/* Ensure content sits above the grain overlay */
.footer-left,
.footer-center,
.footer-right {
    position: relative;
    z-index: 1;
}

.footer-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 40px;
    height: 100%;
    margin-left: -30px;
    /* Moved left as requested */
    margin-top: -40px;
    /* Moved up as requested */
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Silkscreen', cursive;
    font-size: clamp(1rem, 1.8vw, 1.9rem);
    /* Reduced size */
    line-height: 1.4;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 0.7;
}

.footer-nav sup {
    font-size: 0.6rem;
    margin-left: 5px;
}

.social-media h3 {
    font-family: 'Silkscreen', cursive;
    font-size: 1.2rem;
    /* Reduced size */
    margin-bottom: 20px;
    font-weight: 400;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    /* Reduced size */
    height: 38px;
    /* Reduced size */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.social-icons svg {
    width: 16px;
    /* Reduced size */
    height: 16px;
    /* Reduced size */
    fill: currentColor;
}

.footer-right {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.footer-cube {
    width: clamp(200px, 25vw, 400px);
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    animation: floatingCube 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 5;
    margin-left: -120px;
    /* Shifted left as requested */
}

@keyframes floatingCube {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(-10px, -20px) rotate(5deg);
    }

    66% {
        transform: translate(15px, 10px) rotate(-3deg);
    }
}

.footer-center {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 20px 0;
}

.center-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.center-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
    padding-bottom: 180px; /* Lifted up to avoid watermark overlap */
}

.stay-connected {
    font-family: 'Silkscreen', cursive;
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-bottom: 16px;
    opacity: 0.7;
    text-transform: uppercase;
}

.footer-email-large {
    font-family: 'Silkscreen', cursive;
    font-size: clamp(1.6rem, 3vw, 2.6rem); /* Reduced size for professional look */
    color: #ffffff;
    text-decoration: none;
    line-height: 1.1;
    position: relative;
    padding-bottom: 5px;
}

.footer-email-large::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.footer-email-large:hover::after {
    width: 100%;
}

.footer-desc {
    display: none;
}

.made-with-love {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
}

.footer-huge-logo {
    position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    font-family: 'Silkscreen', cursive;
    font-size: clamp(7rem, 17vw, 22rem);
    font-weight: 400;
    letter-spacing: -4px;
    line-height: 0.85;
    text-transform: uppercase;
    white-space: nowrap;
    /* Outline-only stroke with increased visibility */
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.35);
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Fade top-to-bottom so it melts into the page edge */
    -webkit-mask-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 60%, rgba(255, 255, 255, 0.1) 100%);
    mask-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 60%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-container {
        padding: 100px 60px;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .hero-image-wrapper {
        display: none;
        /* Hide complex overlapping portrait on smaller tablets */
    }

    .hero-content-right {
        justify-content: flex-start;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-card {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 80px 40px;
        text-align: center;
    }

    .footer-left {
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .nav-dock {
        gap: 20px;
        padding: 6px;
    }

    .nav-links {
        display: none;
        /* Hide links on mobile for cleaner dock */
    }

    .profile-thumb {
        width: 40px;
        height: 40px;
    }

    .contact-btn {
        padding: 12px 20px;
        font-size: 0.6rem;
    }

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



    .journal-item {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 40px 0;
    }

    .journal-item:hover {
        padding: 40px 20px;
    }

    .footer-heading {
        font-size: 4rem;
    }
}

@media (max-width: 600px) {

    .hero-container,
    .about-section-card,
    .footer-card {
        height: auto;
        min-height: 80vh;
        padding: 80px 30px;
        border-radius: 60px;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .logo-text {
        font-size: 3rem;
    }

    .custom-cursor {
        display: none;
        /* Disable custom cursor on mobile touch */
    }

    section {
        padding: 80px 20px;
    }

    .main-wrapper {
        padding: 0 15px;
    }
}

.services-wrapper {
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000000 150px, #000000 100%);
    /* Fades into total black */
    padding-top: 150px;
    /* Compensate for negative margin to hide white gap */
    margin-top: -100px;
    /* Tuck under the previous section */
    padding-bottom: 2vh;
    position: relative;
    z-index: 0;
}

/* Services Section V2 */
.services-card-new {
    min-height: 130vh;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 100px 0;
    position: relative;
    border-radius: 150px;
    margin: 1.5vh auto;
    width: 98%;
    max-width: 1900px;
    overflow: hidden;
    isolation: isolate;
    z-index: 1;
}

.services-star {
    position: absolute;
    bottom: 10%;
    left: 1%;
    width: clamp(250px, 20vw, 450px);
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5)) brightness(1.1);
    z-index: 2;
    animation: expertStarFloat 15s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.9;
}

@keyframes expertStarFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(-20px, -40px) rotate(15deg) scale(1.05);
    }

    66% {
        transform: translate(30px, 10px) rotate(-10deg) scale(0.95);
    }
}

.services-title {
    font-family: 'Silkscreen', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #fff;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.cards-stack {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stack-card {
    position: absolute;
    width: 230px;
    height: 300px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.stack-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-left {
    transform: translateX(-150px) perspective(1000px) rotateY(25deg) scale(0.85);
    z-index: 1;
    opacity: 0.4;
    filter: blur(2px);
}

.card-center {
    transform: translateX(0) perspective(1000px) rotateY(0deg) scale(1.1);
    z-index: 3;
    opacity: 1;
    filter: blur(0);
}

.card-right {
    transform: translateX(150px) perspective(1000px) rotateY(-25deg) scale(0.85);
    z-index: 1;
    opacity: 0.4;
    filter: blur(2px);
}

.card-hidden {
    transform: translateX(0) scale(0.5);
    opacity: 0;
    z-index: 0;
}

.service-label-pill {
    background: #fff;
    color: #000;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: 'Silkscreen', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.service-label-pill span {
    opacity: 0.5;
}