@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

:root {
    --primary-red: #8B0000;
    --gold: #D4AF37;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --dark-bg: #0a0a0a;
    --glass-bg: rgba(20, 20, 20, 0.7);
    --text-light: #f5f5f5;
    --accent: #E5C100;
}

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

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Section 1: Portal Entrance */
#portal-section {
    position: relative;
    width: 100vw;
    height: 450vh; /* Extended to keep hero on screen for Intro and About sections */
    background: black;
}

#portal-sticky-wrapper {
    position: sticky;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-info-display {
    position: absolute;
    top: 40px;
    right: 50px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.home-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--gold);
    letter-spacing: 5px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.home-date {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-light);
    letter-spacing: 2px;
    opacity: 0.7;
    font-weight: 300;
}

/* Vintage Twine-Wrapped Scroll Widget */
.scroll-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto; /* Enable hover/clicks */
    margin-top: 15px;
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-widget:hover {
    transform: scale(1.03);
}

.scroll-rod {
    position: relative;
    width: 250px; /* Slightly wider than paper */
    height: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.rod-shaft {
    flex: 1;
    height: 10px;
    background: linear-gradient(
        to bottom,
        #2a1e12 0%,
        #523b20 20%,
        #c5a030 45%,
        #f5dd90 50%,
        #c5a030 55%,
        #826322 80%,
        #2a1e12 100%
    );
    border: 1px solid #4a351e;
    box-shadow: 
        0 2px 5px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        inset 0 -1px 1px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
}

.rod-knob {
    width: 14px;
    height: 16px;
    background: linear-gradient(
        to bottom,
        #1c140c 0%,
        #3d2b18 20%,
        #a48425 45%,
        #edd782 50%,
        #a48425 55%,
        #634b1a 80%,
        #1c140c 100%
    );
    border: 1px solid #3d2b19;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.left-knob {
    border-radius: 50% 2px 2px 50%;
}

.right-knob {
    border-radius: 2px 50% 50% 2px;
}

.scroll-paper-wrapper {
    position: relative;
    width: 220px; /* Slightly narrower than rods */
    height: 0px; /* Animated via JS from 0px to 220px */
    overflow: hidden;
    z-index: 5;
    margin-top: -2px;
    margin-bottom: -2px;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.45));
    transition: height 0.1s linear; /* Smooth micro-transitions */
}

.scroll-paper {
    width: 100%;
    height: 220px; /* Adjusted height for news scroll */
    background-color: #f6e6cd; /* Deeper vintage/warm antique gold-tan paper */
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(246, 230, 205, 0) 50%, rgba(139, 90, 43, 0.25) 100%),
        url('https://www.transparenttextures.com/patterns/parchment.png');
    border-left: 1px solid rgba(139, 115, 85, 0.4);
    border-right: 1px solid rgba(139, 115, 85, 0.4);
    box-sizing: border-box;
    position: relative;
    display: flex;
    justify-content: center;
    padding: 14px 18px;
    
    /* Jagged deckled edges */
    clip-path: polygon(
        0% 0%, 100% 0%,
        99% 5%, 100% 10%, 98% 15%, 100% 20%, 99% 25%, 100% 30%, 98% 35%, 100% 40%, 99% 45%, 100% 50%,
        98% 55%, 100% 60%, 99% 65%, 100% 70%, 98% 75%, 100% 80%, 99% 85%, 100% 90%, 98% 95%, 100% 100%,
        0% 100%,
        1% 95%, 0% 90%, 2% 85%, 0% 80%, 1% 75%, 0% 70%, 2% 65%, 0% 60%, 1% 55%, 0% 50%,
        2% 45%, 0% 40%, 1% 35%, 0% 30%, 2% 25%, 0% 20%, 1% 15%, 0% 10%, 2% 5%
    );
    
    /* Vintage burnt edge shadows */
    box-shadow: 
        inset 0 0 20px rgba(90, 50, 15, 0.55),
        inset 0 0 5px rgba(90, 50, 15, 0.35);
}

/* Shadows inside scroll ends */
.scroll-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35), transparent);
    z-index: 6;
}

.scroll-paper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
    z-index: 6;
}

.scroll-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Flow from top */
    opacity: 0; /* Animated in JS */
}

.scroll-date-line {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #4a2e16;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

.scroll-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, transparent, #8b5a2b 50%, transparent);
    position: relative;
    margin: 8px 0;
}

.scroll-divider::before {
    content: '◈';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #8b5a2b;
    font-size: 0.6rem;
    background: #f6e6cd; /* Matches the scroll body */
    padding: 0 4px;
}

.scroll-news-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 6px;
}

.scroll-news-title {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #8b5a2b;
    margin-bottom: 8px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
}

.scroll-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    text-align: left;
}

.scroll-news-list li {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    line-height: 1.3;
    color: #5c3c1e;
    font-weight: 600;
    padding-left: 15px;
    position: relative;
}

/* Bullet icon matching historical theme */
.scroll-news-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 0;
    color: #8b5a2b;
    font-size: 0.65rem;
}

/* Mobile responsive scaling for scroll widget */
@media (max-width: 768px) {
    .scroll-widget {
        margin-top: 10px;
    }
    .scroll-rod {
        width: 190px;
        height: 12px;
    }
    .rod-shaft {
        height: 8px;
    }
    .rod-knob {
        width: 10px;
        height: 12px;
    }
    .scroll-paper-wrapper {
        width: 170px;
    }
    .scroll-paper {
        height: 170px; /* Adjusted height on mobile for news */
        padding: 8px 10px;
    }
    .scroll-date-line {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
    .scroll-divider {
        margin: 4px 0;
    }
    .scroll-news-title {
        font-size: 0.6rem;
        margin-bottom: 4px;
    }
    .scroll-news-list {
        gap: 3px;
    }
    .scroll-news-list li {
        font-size: 0.6rem;
        line-height: 1.2;
        padding-left: 10px;
    }
    .scroll-news-list li::before {
        font-size: 0.5rem;
    }
}

/* Section 2: Kingdom & Union */
#kingdom-section {
    position: relative;
    width: 100vw;
    min-height: 100vh; /* Ensure it's at least full screen */
    height: auto;      /* Allow it to grow to show the FULL fort */
    background: black;
    overflow: hidden;
}

#entrance-fort {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 5;
}

#entrance-fort img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.9) contrast(1.1);
}

.fort-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.4) 100%);
    z-index: 6;
}

#title-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30;
    opacity: 0;
    pointer-events: none;
}

#main-title {
    max-width: 45%;
    height: auto;
    filter: drop-shadow(0 0 30px var(--gold-glow));
}

#portal-frame {
    position: absolute;
    width: 100vw;
    height: 100vh;
    z-index: 12; /* Top-most frame */
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

#hole-img {
    width: 100vw; /* Reverted to normal size */
    height: 100vh;
    object-fit: cover;
    object-position: center;
}

#portal-world {
    position: absolute;
    width: 100vw;
    height: 100vh; 
    z-index: 5;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(3.5); /* Start deep inside */
    opacity: 1;
}

#portal-bg {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Show more of the sky/above section */
}

#portal-hero {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 70vh;
    z-index: 10; /* Layered inside the hole */
    opacity: 1;
    pointer-events: none;
    transform-origin: center center;
}

#hands-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 50;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
}

#hand-left, #hand-right {
    position: absolute;
    height: 50vh; /* Increased for better presence */
    z-index: 50;
    pointer-events: none;
    top: 50%;
    opacity: 0;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.8));
    transform-origin: center center;
}

#hand-left {
    left: 0;
    transform: translateX(-100%) translateY(-50%);
}

#hand-right {
    right: 0;
    transform: translateX(100%) translateY(-50%);
}

/* Sidebar Navigation */
#sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100px;
    height: 100vh;
    background: 
        radial-gradient(circle at center, rgba(61, 43, 31, 0.4) 0%, rgba(10, 10, 10, 0.8) 100%),
        url('../assets/images/sidebar_bg.png'),
        #2d1e12; /* Rich thematic brown */
    background-size: cover;
    background-blend-mode: soft-light, overlay, normal;
    border-right: 2px solid #5a4535;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    box-shadow: 
        5px 0 30px rgba(0,0,0,0.9), 
        inset -5px 0 15px rgba(212, 175, 55, 0.05);
    filter: sepia(0.2) contrast(1.1); /* Warmer, more vintage tone */
}

#sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/dark-leather.png'); /* Subtle grunge texture */
    opacity: 0.3;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.sidebar-crest {
    width: 75px; 
    height: 75px;
    margin-bottom: 20px;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.9); /* Inner shadow for depth */
    opacity: 1;
}

.sidebar-crest img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5)); /* Add a subtle gold glow instead of hiding it */
    border-radius: 50%;
    animation: rotate-slow 15s linear infinite; /* Added slow spinning */
}

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

.sidebar-crest:active {
    transform: scale(0.9);
}

.slash-effect {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 20px;
    background: linear-gradient(90deg, transparent, #fff, var(--gold), #fff, transparent);
    transform: rotate(-45deg);
    pointer-events: none;
    opacity: 0;
    z-index: 100;
}

.slashed .slash-effect {
    animation: sword-slash 0.4s ease-out;
}

@keyframes sword-slash {
    0% { top: -100%; left: -100%; opacity: 0; }
    20% { opacity: 1; }
    100% { top: 150%; left: 150%; opacity: 0; }
}

.vintage-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    position: relative;
    margin: 15px 0;
}

.vintage-divider::before {
    content: '◈';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gold);
    font-size: 0.6rem;
    background: #2d1e12; /* Matches the new brown sidebar */
    padding: 0 5px;
}

.vintage-divider.small {
    width: 40%;
    opacity: 0.3;
    margin: 10px 0;
}

.vintage-divider.small::before {
    content: '';
}

.nav-icons {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
}

.nav-icons li {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.7; /* Increased from 0.5 for prominence */
    padding: 10px 0;
    position: relative;
}

.nav-icons li .icon {
    font-size: 1.8rem; /* Adjusted size for better balance */
    margin-bottom: 8px;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(0,0,0,0.8), 0 0 5px var(--gold-glow);
    transition: all 0.3s ease;
}

.nav-icons li .label {
    font-size: 0.7rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    color: var(--gold);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
}

.nav-icons li:hover, .nav-icons li.active {
    opacity: 1;
    transform: scale(1.1);
}

.nav-icons li.active .icon {
    color: var(--accent);
    filter: drop-shadow(0 0 15px var(--gold));
    text-shadow: 0 0 25px var(--gold-glow), 0 0 45px rgba(255, 215, 0, 0.3);
}



.nav-icons li.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 40px;
    background: var(--gold);
    box-shadow: -5px 0 15px var(--gold);
}

/* Hero Text Overlay (New Static Section) */
#hero-text-overlay-new {
    padding: 100px 2rem;
    background: #050505;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 20;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.cinematic-quote {
    font-size: 1.2rem;
    color: var(--gold);
    opacity: 0.8;
    margin-bottom: 20px;
    letter-spacing: 4px;
    font-weight: 400;
}

.hero-name {
    font-size: 4.5rem;
    color: var(--text-light);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    margin-bottom: 10px;
    letter-spacing: 10px;
}

.hero-tagline {
    font-size: 1rem;
    letter-spacing: 5px;
    color: var(--gold);
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-indicator p {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--gold);
    opacity: 0.6;
}

.mouse {
    width: 20px;
    height: 35px;
    border: 2px solid var(--gold);
    border-radius: 10px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    animation: scroll-mouse 2s infinite;
}

@keyframes scroll-mouse {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Section Common Styling */
.scroll-reveal-section {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 50px 100px 140px; /* Reduced padding to avoid squeezing */
    background: #000;
}

#projects-section {
    height: 100vh; /* Lock height to exactly 100vh for viewport pinning */
    min-height: 100vh;
    box-sizing: border-box;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Flow from top */
    padding: 40px 0 20px 0; /* Clear padding for elements */
    overflow: hidden;
}

#projects-section .section-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transform: none;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.section-bg {
    position: relative;
    width: 90vw; /* Dominant screen presence */
    max-width: 1800px;
    aspect-ratio: 16 / 9;
    max-height: 90vh; /* Scaled up significantly */
    margin: 0 auto;
    background: transparent;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.section-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill; /* Match the 16/9 container exactly */
    z-index: 1;
}

@keyframes map-float {
    0%, 100% { transform: rotateX(25deg) translateY(-70px) translateX(5vw); }
    50% { transform: rotateX(25deg) translateY(-85px) translateX(5vw); }
}

#projects-section .section-bg::after {
    display: none !important; /* Force disable all edge fades */
}

.section-bg img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show the full image */
    opacity: 1;
    display: block;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Gradient removed to show full image */
.section-bg::after {
    display: none !important;
}

/* Cliff Rock Positioning */
.cliff-rock-container {
    position: absolute;
    right: -2vw; /* Pushed firmly against the right edge */
    bottom: -5vh; /* Moved down so hero is fully visible */
    width: 35%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: visible;
}

.cliff-rock {
    width: 100%;
    height: auto;
    max-height: 100vh;
    object-fit: contain;
    filter: sepia(0.2) contrast(1.1) drop-shadow(-20px -5px 30px rgba(0,0,0,0.8));
    transform: scale(1.1); /* Reduced scale */
    transform-origin: bottom right;
    display: block !important;
}

.section-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    width: 100%;
    text-align: left;
    margin-right: auto;
}

.section-tag {
    font-size: 3rem !important; /* Increased significantly as this is the primary header for many sections */
    letter-spacing: 8px;
    color: var(--gold);
    margin-bottom: 40px;
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.section-title {
    font-size: 5rem !important; /* Majestic large header */
    margin-bottom: 40px;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.section-desc {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 0 20px 0; /* Reduced bottom margin */
    line-height: 1.8;
}

.about-signature {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--gold);
    letter-spacing: 5px;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    margin: -10px 0 30px 0; /* Pulled up closer to title */
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    display: inline-block;
}

/* About Theme Box Layout */
.about-theme-layout {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 100px 50px 100px 150px; /* Left padding matches sidebar clearance */
    position: relative;
    min-height: 100vh;
}

.about-theme-box {
    background: rgba(15, 10, 5, 0.85);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 50px;
    max-width: 900px; /* Increased to allow it to stretch further right */
    width: 65vw; /* Increased width */
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 0 15px rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.theme-greeting {
    font-size: 2.8rem;
    color: var(--gold);
    margin-bottom: 25px;
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.theme-desc {
    font-size: 1.1rem;
    color: #ddd;
    line-height: 1.8;
    margin-bottom: 25px;
    font-family: 'Inter', sans-serif;
}

.theme-highlight {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold);
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
    font-weight: 500;
}

.theme-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    cursor: default;
}

.theme-pill:hover {
    background: rgba(212, 175, 55, 0.15);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.about-action-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: 30px;
}

.action-btn {
    flex: 1;
    text-align: center;
    padding: 12px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    text-decoration: none;
}

.about-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.about-socials a {
    color: var(--gold);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.about-socials a:hover {
    color: var(--text-light);
    text-shadow: 0 0 15px var(--gold);
    transform: scale(1.1);
}

/* Skills Grid */
#skills-section .section-content {
    max-width: none;
    width: 100%;
    padding: 0 50px;
    margin: 0;
    text-align: center;
}

/* Optimized Skills Arsenal Slider */
.skills-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 100px 0;
    min-height: 500px;
    z-index: 10;
}

.skills-grid-new.slider {
    display: flex;
    flex-direction: row !important; /* Force horizontal */
    flex-wrap: nowrap !important; /* Prevent vertical stack */
    width: max-content;
    gap: 100px;
    padding: 0 100px;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth movement */
}

.skill-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.skill-nav-btn:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 25px var(--gold-glow);
}

.skill-nav-btn.prev {
    left: 20px;
}

.skill-nav-btn.next {
    right: 20px;
}

.skill-nav-btn i {
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

.warrior-skill-item {
    display: flex;
    flex-direction: column; /* Figure above skill */
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 180px;
    position: relative;
    text-align: center;
}

.warrior-figure-container {
    position: relative;
    width: 100%;
    height: 180px; /* Reduced height for decorative marquee style */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 20px;
}

.warrior-figure {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: sepia(0.3) brightness(0.8) contrast(1.2);
    transition: all 0.5s ease;
    -webkit-mask-image: linear-gradient(to top, black 80%, transparent 100%);
    mask-image: linear-gradient(to top, black 80%, transparent 100%);
}

.warrior-glow {
    position: absolute;
    bottom: 0;
    width: 150px;
    height: 50px;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.warrior-skill-item:hover .warrior-figure {
    filter: sepia(0) brightness(1.1) contrast(1.1);
    transform: scale(1.1) translateY(-10px);
}

.warrior-skill-item:hover .warrior-glow {
    opacity: 1;
}

/* --- Skills Outer Container --- */
.skills-outer-box {
    background: 
        linear-gradient(rgba(15, 10, 5, 0.85), rgba(15, 10, 5, 0.85)),
        url('../assets/images/project_map.jpg') center/cover no-repeat;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 12px;
    padding: 35px 30px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9), inset 0 0 15px rgba(212, 175, 55, 0.05);
    backdrop-filter: blur(15px);
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* --- Decorative Flanking Figures --- */
.skills-side-figure {
    position: absolute;
    bottom: -10px;
    height: 80vh;
    max-height: 800px;
    z-index: -1; /* Strictly behind the box */
    pointer-events: none;
    opacity: 0.85;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.skills-side-figure.left-figure {
    left: -220px;
}

.skills-side-figure.right-figure {
    right: -220px;
}

.skills-header-tag {
    background: transparent;
    color: var(--gold);
    font-size: 2rem;
    letter-spacing: 4px;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    padding: 0 20px 15px 20px;
    box-shadow: none;
    border-radius: 0;
    position: relative;
    z-index: 2;
}

/* --- New Skills Category Grid --- */
.skills-theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.skill-category-box {
    background: rgba(15, 10, 5, 0.85);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 20px 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 0 15px rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.skill-category-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.9), inset 0 0 25px rgba(212, 175, 55, 0.3);
    border-color: #fff;
}

.skill-category-box h4 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    text-transform: uppercase;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.skill-pill {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold);
    border-radius: 30px;
    padding: 6px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
    box-shadow: inset 0 0 5px rgba(212, 175, 55, 0.05);
}

.skill-pill:hover {
    background: rgba(212, 175, 55, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5), inset 0 0 10px rgba(212, 175, 55, 0.3);
    color: #fff;
}

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

@media (max-width: 768px) {
    .skills-theme-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
}

/* Contact Section Specific Alignment */
#contact-section .section-content {
    max-width: none;
    text-align: center;
    margin: 0 auto;
}
/* Ancient Connector Bar Design - Exact Replica */
.ancient-connector-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #2d1e12; /* Matches the new brown sidebar */
    border: 1px solid #5a4535;
    padding: 30px 50px;
    margin: 60px auto 0;
    max-width: 850px;
    position: relative;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.8), 0 10px 30px rgba(0,0,0,0.5);
}

/* Ornate Frame Corners - Clean Architecture */
.ancient-connector-bar::before,
.ancient-connector-bar::after,
.frame-corners::before,
.frame-corners::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    border-color: #b8860b;
    border-style: solid;
    pointer-events: none;
    z-index: 10;
}

/* 1: Top Left */
.ancient-connector-bar::before {
    top: -1px;
    left: -1px;
    border-width: 3px 0 0 3px;
}

/* 2: Bottom Right */
.ancient-connector-bar::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 3px 3px 0;
}

/* 3: Top Right */
.frame-corners::before {
    top: -1px;
    right: -1px;
    border-width: 3px 3px 0 0;
}

/* 4: Bottom Left */
.frame-corners::after {
    bottom: -1px;
    left: -1px;
    border-width: 0 0 3px 3px;
}

/* The 'Notch' effect - Inner lines */
.ancient-connector-bar::after {
    /* Adding a secondary line look */
}

/* Center Spikes - Corrected for better symmetry and aesthetic */
.ancient-connector-bar .center-spike-top,
.ancient-connector-bar .center-spike-bottom {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #b8860b;
    z-index: 11;
    border: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px var(--gold-glow);
}

.ancient-connector-bar .center-spike-top { top: -6px; }
.ancient-connector-bar .center-spike-bottom { bottom: -6px; }

.connector-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #b8860b;
    transition: all 0.3s ease;
    padding: 15px 10px;
    opacity: 1 !important; /* Ensure no fading */
}

.connector-item i {
    font-size: 2.8rem; /* Increased for maximum prominence */
    margin-bottom: 12px;
    filter: sepia(0.6) brightness(0.9) contrast(1.2) saturate(0.8) drop-shadow(0 0 10px rgba(0,0,0,0.5));
    transition: all 0.3s ease;
}

.connector-item span {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.connector-item:hover {
    color: #fff;
    text-shadow: 0 0 10px #b8860b;
}

.connector-divider {
    width: 1px;
    height: 40px;
    background: #5a4535;
}


/* Chatbot */
#ai-chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 320px;
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid var(--gold-glow);
    border-radius: 15px;
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 50px rgba(0,0,0,0.8);
}

.chat-header {
    background: rgba(212, 175, 55, 0.1);
    padding: 15px;
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 0.8rem;
    border-bottom: 1px solid var(--gold-glow);
}

.chat-input-wrapper {
    padding: 15px;
    display: flex;
    gap: 10px;
}

.chat-input-wrapper input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    color: #fff;
    border-radius: 5px;
}

.send-btn {
    background: var(--gold);
    border: none;
    padding: 0 15px;
    border-radius: 5px;
    cursor: pointer;
}

.chat-avatar {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0,0,0,0.3);
}

.chat-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--gold);
}

.chat-avatar p {
    font-size: 0.8rem;
    color: #888;
}

.btn-ancient {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 15px 40px;
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-ancient:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 20px var(--gold-glow);
}

.projects-container {
    position: relative;
    width: 100%;
    flex: 1; /* Automatically fill remaining viewport height */
    min-height: 0; /* Critical for scrollable flex child containing text */
    display: flex;
    overflow: hidden;
    z-index: 10;
}

.project-details {
    width: 45%;
    margin-left: 120px; /* Clear the 100px sidebar */
    align-self: center;
    max-height: 85%; /* Keeps it fully within the section boundaries */
    padding: 35px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Start content flow at top */
    color: var(--text-light);
    z-index: 20;
    position: relative;
    background: rgba(10, 7, 3, 0.88); /* Slightly darker/more readable background */
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.85), inset 0 0 15px rgba(212,175,55,0.05);
    backdrop-filter: blur(15px);
    overflow-y: auto; /* Scroll internally if content is too long */
}

/* Premium custom scrollbar for details panel */
.project-details::-webkit-scrollbar {
    width: 6px;
}
.project-details::-webkit-scrollbar-track {
    background: rgba(212, 175, 55, 0.03);
    border-radius: 10px;
}
.project-details::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.25);
    border-radius: 10px;
}
.project-details::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.55);
}

/* Premium Repository Button for GitHub Link */
.github-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--gold);
    width: 42px;
    height: 42px;
    border-radius: 50%; /* Perfectly circular */
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4), inset 0 0 10px rgba(212, 175, 55, 0.05);
}

.github-icon-btn:hover {
    background: var(--gold);
    color: #0d0905;
    border-color: var(--gold);
    box-shadow: 0 0 20px var(--gold-glow);
    transform: translateY(-2px);
}

.github-icon-btn i {
    font-size: 1.4rem; /* Slightly larger icon */
}

.pd-header-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.project-details h2 {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 0;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.live-tag {
    background: rgba(230, 57, 70, 0.2);
    border: 1px solid #e63946;
    color: #e63946;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.3);
}

.tech-stack-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-pill {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.pd-divider {
    border: none;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 20px;
}

.project-bullets {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    color: #ccc;
}

.project-bullets li {
    font-size: 1.05rem;
    margin-bottom: 15px;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.project-bullets li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--gold);
    font-size: 0.9rem;
    opacity: 0.8;
}

.project-details p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ccc;
    max-width: 80%;
}

.pd-images {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.pd-images img {
    height: 150px;
    border-radius: 6px;
    border: 2px solid var(--gold);
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
    transition: transform 0.3s;
}
.pd-images img:hover {
    transform: scale(1.05);
}

.shield-wheel-wrapper {
    position: absolute;
    right: 0;
    top: 0;
    width: 50vw;
    height: 100%;
    z-index: 15;
}

/* The big circle acting as a shield on the right edge */
.shield-base {
    position: absolute;
    right: -45vh; /* Half of 90vh */
    top: 50%;
    transform: translateY(-50%);
    width: 90vh; /* Based on viewport height to never get cut off vertically */
    height: 90vh; /* Circular */
    border-radius: 50%;
    background: #000000;
    border: 5px solid var(--gold);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.9), 0 0 30px var(--gold-glow);
}

/* The wheel container that rotates */
.wheel {
    position: absolute;
    right: -45vh; /* Center of rotation is center of shield */
    top: 50%;
    width: 90vh;
    height: 90vh;
    transform: translateY(-50%) rotate(0deg);
    transform-origin: center center;
    will-change: transform;
}

.shield-crest {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%; /* Increased from 70% to make the crest much larger */
    height: auto;
    opacity: 0.8;
    pointer-events: none;
    filter: drop-shadow(0 0 20px var(--gold-glow));
}

.wheel-node {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -40px;
    margin-top: -40px;
    /* Transform set via JS for layout, then animated */
    width: 80px;
    height: 80px;
    background: #111;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.9);
    cursor: pointer;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.wheel-node.active {
    border-color: #fff;
    box-shadow: 0 0 25px var(--gold-glow);
}

.node-icon {
    font-size: 2rem;
    color: var(--gold);
}

.node-icon i {
    transform: rotate(0deg); /* JS will counter-rotate this so icons stay upright */
    display: block;
}

.node-label {
    position: absolute;
    right: 95px; /* Position to the horizontal left of the circular node, leaving 15px gap */
    width: max-content;
    max-width: 280px; /* Room for long project titles */
    white-space: nowrap; /* Keep the project title on a single line */
    text-align: right;
    color: #fff;
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.95), 0 0 4px rgba(212, 175, 55, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateX(15px); /* Slide in from right */
}

.wheel-node:hover .node-label,
.wheel-node.active .node-label {
    opacity: 1;
    transform: translateX(0);
}

.project-point:hover .project-fort {
    filter: drop-shadow(0 0 25px var(--gold-glow)) sepia(0);
    transform: translateX(-50%) translateY(-10px) scale(1.15);
}

.project-point .label {
    position: relative;
    width: max-content;
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.1rem;
    letter-spacing: 2px;
    background: rgba(10, 10, 10, 0.9);
    padding: 10px 20px;
    border-radius: 4px;
    border: 1px solid var(--gold-glow);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 15px rgba(212, 175, 55, 0.2);
    z-index: 5;
    animation: label-glow 4s ease-in-out infinite;
}

@keyframes label-glow {
    0%, 100% { border-color: rgba(212, 175, 55, 0.3); box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
    50% { border-color: var(--gold); box-shadow: 0 0 25px rgba(212, 175, 55, 0.4); }
}

.project-point .label span {
    display: block;
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 4px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

/* Consolidated Project Fort Styles */
.project-fort {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.6)) sepia(0.2);
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
    z-index: 10;
}

.map-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    transform: none; /* Flattened */
}

.journey-path {
    stroke-dasharray: 12, 12;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: var(--gold) !important;
    stroke-width: 4px !important;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.8));
    opacity: 1 !important;
    visibility: visible !important;
}

.skill-stat {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 0.8rem;
    margin-bottom: 5px;
}



/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    opacity: 0; /* Hidden initially */
    transform: translateY(-20px);
    transition: all 0.5s ease;
}

#main-nav.visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-logo {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--gold);
    letter-spacing: 4px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 2.5rem;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

/* Main Content Styling */
#main-content {
    position: relative;
    padding-top: 100vh; /* Start after entrance */
    z-index: 50;
    background: var(--dark-bg);
}

/* Section Utilities */
.section-tag {
    display: inline-block;
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 1.5rem auto;
}

/* Stat Grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    padding: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 10px;
}

.stat-val {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--gold);
    font-weight: 700;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

/* Split View */
.split-view {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
}

.split-text {
    flex: 1;
    text-align: left;
}

.split-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: #ccc;
}

.feature-list li::before {
    content: '◈';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.split-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.floating-hero {
    max-height: 70vh;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.8));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* CTA Group */
.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* Footer */
#main-footer {
    padding: 4rem 2rem;
    background: #050505;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
}

.footer-logo {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    letter-spacing: 5px;
}

.footer-content p {
    color: #666;
    font-size: 0.9rem;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: var(--gold);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Animations */
@keyframes glow {
    0% { filter: drop-shadow(0 0 5px var(--gold-glow)); }
    50% { filter: drop-shadow(0 0 20px var(--gold-glow)); }
    100% { filter: drop-shadow(0 0 5px var(--gold-glow)); }
}

#main-title {
    animation: glow 4s infinite ease-in-out;
}
/* Custom Footer */
.custom-footer {
    text-align: center;
    padding: 30px 20px 20px;
    background: var(--dark-bg);
    position: relative;
    z-index: 10;
}

.footer-highlight {
    font-family: 'Cinzel', serif;
    font-style: normal;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.footer-copyright {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
    font-weight: 400;
}

/* Projects Section Responsive Mobile Adjustments */
@media (max-width: 768px) {
    #projects-section {
        height: auto;
        min-height: 100vh;
        padding: 40px 0;
        overflow-y: visible;
    }

    .projects-container {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        overflow-y: visible;
        height: auto;
        flex: none;
    }

    .shield-wheel-wrapper {
        position: relative;
        width: calc(100% - 100px);
        margin-left: 100px;
        height: 320px;
        flex-shrink: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .shield-base {
        right: auto;
        left: calc(50% + 50px);
        top: 50%;
        width: 250px;
        height: 250px;
        margin-left: -125px;
        margin-top: -125px;
        transform: translateY(0);
    }

    .wheel {
        right: auto;
        left: calc(50% + 50px);
        top: 50%;
        width: 250px;
        height: 250px;
        margin-left: -125px;
        margin-top: -125px;
        transform: translateY(0) rotate(0deg);
    }

    .shield-crest {
        width: 90%;
    }

    .wheel-node {
        width: 60px;
        height: 60px;
        margin-left: -30px;
        margin-top: -30px;
    }

    .node-icon {
        font-size: 1.5rem;
    }

    .node-label {
        display: none !important; /* Hide circular labels on mobile to avoid screen overlap */
    }

    .project-details {
        width: calc(100% - 130px);
        margin-left: 115px;
        margin-right: 15px;
        margin-top: 20px;
        margin-bottom: 20px;
        max-height: none;
        align-self: stretch;
        padding: 25px;
        overflow-y: visible;
    }

    .project-details h2 {
        font-size: 1.7rem;
    }
}
