/* Modern Reset & Base Styles */
/* Local Inter font (GDPR compliant) */
/* Please download fonts and save to v2/fonts/ */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/inter-v20-latin-300.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    src: url('fonts/inter-v20-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/inter-v20-latin-700.woff2') format('woff2');
}

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

html { 
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
    scroll-padding-top: 100px; /* Breathing room for anchor links (header height) */
}

/* Accessibility: Screen Reader Only Class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #cbd5e1; /* Light gray for readability on dark */
    background-color: #0f172a; /* Deep Slate Blue Background */
    display: flex;
    flex-direction: column;
}

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

/* Header & Logo */
.site-header {
    background-color: #0b1120; /* Original solid background color */
    padding: 20px 0;
    position: sticky; /* Make the header sticky */
    top: 0; /* Stick it to the top */
    z-index: 1001;
}

/* Flexbox for header container, logo left, nav right */
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 60px;
    display: block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
    transform-origin: center;
    filter: drop-shadow(0 0 0 rgba(6, 182, 212, 0));
}

.logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.6)); /* Cyan Glow */
}

.logo:active {
    transform: scale(0.95);
    filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.8));
    transition: all 0.1s ease;
}

.main-nav a {
    color: #cbd5e1;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative; /* Needed for the pseudo-element */
    padding-bottom: 8px; /* Add some space for the underline */
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #06b6d4;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease-out;
}

.main-nav a:hover,
.main-nav a.active {
    color: #06b6d4;
}
.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

.main-nav a.nav-btn {
    background-image: linear-gradient(90deg, #EC1F8F 0%, #FFA500 50%, #06B6D4 100%);
    background-size: 200% auto;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    transition: all 0.4s ease-out;
}

.main-nav a.nav-btn:hover {
    background-position: right center;
    color: #fff;
    box-shadow: 0 0 20px rgba(236, 31, 143, 0.4), 0 0 20px rgba(255, 165, 0, 0.2);
    transform: translateY(-2px);
}

/* Search Form in Navigation */
.search-form {
    position: relative;
    margin-left: 40px;
    display: inline-flex; /* Use flexbox for alignment */
    vertical-align: middle; /* Align with the middle of the text */
}

.search-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    stroke: #94a3b8; /* Default icon color */
    transition: stroke 0.3s ease;
}

#searchInput {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: #f8fafc;
    padding: 8px 30px 8px 30px; /* Left padding for icon */
    font-size: 0.9rem;
    width: 180px;
    transition: all 0.3s ease;
}

/* Hide the default clear 'x' button in WebKit browsers */
#searchInput::-webkit-search-cancel-button {
    -webkit-appearance: none;
    display: none;
}

#searchInput::placeholder {
    color: #64748b; /* Darker placeholder */
}

#searchInput:focus {
    outline: none;
    border-bottom-color: #06b6d4;
    width: 220px;
}

/* Highlight icon when input is focused */
#searchInput:focus + .search-clear-btn + .search-icon,
.search-form:hover .search-icon {
    stroke: #06b6d4;
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0 5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.search-form.active .search-clear-btn {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #cbd5e1;
    transition: all 0.3s ease;
}

/* Responsive Navigation */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0f172a;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        border-top: 1px solid rgba(255,255,255,0.05);
        display: none;
        box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    }

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

    .main-nav a {
        margin: 15px 0;
        margin-left: 0;
        font-size: 1.1rem;
    }

    .search-form {
        margin-left: 0;
        margin-top: 15px;
        width: 80%;
        justify-content: center; /* Center the icon and input within the form */
    }
    
    /* Hamburger animation to X */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .interest-cart.menu-open {
        top: 320px; /* Push below the open menu (Header ~100px + Menu ~200px) */
    }

    /* Shift hamburger if cart is visible */
    body.cart-active .mobile-menu-toggle {
        margin-right: 60px;
        transition: margin-right 0.3s ease;
    }
}

/* Hero Section (Wide Image) */
.hero {
    position: relative;
    width: 100%;
    height: 60vh; /* Use viewport height for responsiveness */
    min-height: 500px; /* Ensure it's not too small on wide screens */
    max-height: 650px; /* Prevent it from being too large on tall screens */
    overflow: hidden;
    /* Gradient from pink over orange to the base dark blue */
    background-image: linear-gradient(90deg, #EC1F8F 0%, #FFA500 50%, #06B6D4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* On narrower screens, let the hero height be determined by its content */
@media (max-width: 992px) {
    .hero { 
        height: auto; /* Let content define height */
        min-height: 0; /* Remove min-height */
        padding: 80px 0; /* Add vertical padding */
    }
}

/* Adjust hero height for mobile to accommodate stacked slogans */
@media (max-width: 768px) {
    .hero {
        height: auto; /* Let content define height */
        min-height: 0; /* Remove min-height */
        padding-top: 200px; /* More space from top */
        padding-bottom: 200px; /* Space at bottom */
    }
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

@media (max-width: 992px) {
    .hero-overlay {
        position: relative; /* Let it flow naturally */
        top: auto;
        left: auto;
        transform: none;
    }
}

@media (max-width: 992px) {
    .hero-overlay {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }
}

@media (max-width: 768px) {
    .hero-overlay {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }
}

.hero-headline {
    font-size: 2.7rem; /* Larger size */
    font-weight: 700; /* Bold, like section titles */
    line-height: 1.25; /* Adjusted for bolder font */
    color: #ffffff;
    letter-spacing: -1px; /* Tighter spacing for a strong headline */
    max-width: 800px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.35); /* Slightly stronger glow */
    margin: 0 auto 40px;
}

@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.0rem;
    }
}
.slogan-container {
    display: grid;
    /* Use auto-fit for better responsiveness on various screen sizes */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.slogan-item {
    background: rgba(255, 255, 255, 0.05); /* Lighter, more glassy background */
    backdrop-filter: blur(10px); /* Increased blur for a frostier effect */
    padding: 25px 20px;
    border-radius: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align content to the top */
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Slightly more defined border */
    text-decoration: none;
    transition: all 0.3s ease;
}

.slogan-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15); /* Slightly brighter on hover */
    border-color: rgba(255, 255, 255, 0.4); /* White border */
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2); /* White glow */
}

.slogan-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1; /* Allow span to take up remaining space */
}

.slogan-icon {
    width: 96px;
    height: 96px;
    stroke-width: 1.5;
    transition: filter 0.3s ease, transform 0.3s ease; /* Smooth transition for hover effects */
}

.slogan-item:hover .slogan-icon {
     transform: scale(1.1); /* Subtle enlargement on hover */
}

.hero-overlay p {
    position: relative; /* Needed for the speech bubble tail */
    font-size: 1.4rem; /* Slightly larger font */
    font-weight: 500; /* Bolder for better readability */
    line-height: 1.7;
    margin-top: 30px;
    margin-bottom: 45px; /* Increased margin to make space for the tail */
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
    background-color: rgba(255, 255, 255, 0.1); /* Lighter, frosted glass effect */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 20px 30px; /* Add padding */
    border-radius: 24px; /* More rounded corners */
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.highlight-text {
    color: #f8fafc; /* Keep text white for consistency */
    background-color: rgba(0, 0, 0, 0.4); /* Dark, semi-transparent highlight */
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-weight: 400;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .slogan-icon {
        display: none; /* Hide icons on smallest screens */
    }

    .slogan-item {
        font-size: 1.1rem; /* Even smaller font on mobile */
        padding: 15px; /* Reduced padding */
        gap: 8px; /* Reduced gap */
    }
    .hero-overlay p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 0;
    }
}

/* Responsive Slogan Grid */
@media (max-width: 992px) {
    .slogan-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
        grid-auto-rows: 1fr; /* Ensure all grid items have the same height */
        gap: 15px;
    }

    .slogan-icon {
        width: 48px; /* Smaller icon size for tablets */
        height: 48px;
    }
}

@media (max-width: 768px) {
    .slogan-container {
        grid-template-columns: 1fr; /* 1 column for mobile */
    }
}

/* Button Styling */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: #06b6d4; /* Electric Cyan */
    color: #ffffff;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3); /* Neon Glow */
}

.btn-primary:hover {
    background-color: #22d3ee;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: #06b6d4;
    border: 2px solid #06b6d4;
    box-shadow: none;
    padding: 10px 28px; /* Adjust padding for border */
}

.btn-secondary:hover {
    background-color: #06b6d4;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

/* --- Section Spacing --- */
/* Default spacing for most sections */
#services, #about-section, .projects-section, .contact-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Larger spacing for the standout timeline section */
#experience-timeline {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-icon:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
    transform: rotate(5deg);
}

/* --- Section-Specific Styles --- */

/* Services Section */
#services .services-content {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
}

.profile-comic {
    width: 200px;
    height: 200px;
}

.feature-list, .info-list {
    list-style: none;
}

.feature-list li, .info-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    /* Subtle gradient line as a modern separator */
    background-image: linear-gradient(to right, transparent, rgba(51, 65, 85, 0.4), transparent);
    background-size: 100% 1px;
    background-position: bottom;
    background-repeat: no-repeat;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
    cursor: pointer; /* Make clickable */
    transition: background-color 0.3s ease;
}

@media (min-width: 768px) {
    .feature-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 40px; /* row-gap column-gap */
    }

    /* Remove bottom border for the last two items in the grid */
    .feature-list li:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

.feature-list li:last-child, .info-list li:last-child {
    border-bottom: none;
    background-image: none; /* Remove gradient line from the very last item */
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Icons for services */
.feature-list li::before {
    content: none;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
    border-radius: 8px;
    margin-right: 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-list li:hover .service-icon {
    background-color: #06b6d4;
    color: #0f172a;
    transform: scale(1.1) rotate(5deg);
}

/* Active state for selected services */
.feature-list li.active .service-icon {
    background-color: #06b6d4;
    color: #0f172a;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    transform: scale(1.1);
}

/* Simple bullets for info */
.info-list li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #06b6d4;
    border-radius: 50%;
    margin-right: 15px;
    margin-top: 9px;
    flex-shrink: 0;
}

/* Service List Styling */

.service-section {
    background-color: #0f172a; /* Fallback color */
    /* Subtle radial gradient for depth */
    background-image: radial-gradient(circle, #1e293b, #0f172a);
}

.service-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Prevent items from stretching to full width */
}

.service-title {
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 4px;
    font-size: 1rem;
}

.service-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
}

a {
    color: #22d3ee;
    text-decoration: none;
}

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

.section-header h2 {
    font-size: 2rem;
    color: #f8fafc;
    font-weight: 700;
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    transform: translateX(0);
    width: 60px;
    height: 6px;
    background-color: #06b6d4;
    border-radius: 3px;
}

.section-intro {
    text-align: left;
    max-width: 800px; /* Increased max-width for better flow */
    margin: -20px 0 50px; /* Removed auto margin for left alignment */
    color: #cbd5e1;
    font-size: 1.05rem; /* Slightly smaller for a cleaner look */
    line-height: 1.7;
    padding: 20px 30px;
    letter-spacing: 0.2px; /* Add some breathing room between characters */
    background: rgba(30, 41, 59, 0.5);
    border-left: 4px solid #06b6d4;
    border-radius: 0 8px 8px 0;
}

/* --- Re-center Contact and Location Sections --- */

#contact .section-header,
#location .section-header {
    text-align: center;
}

#contact .section-header h2::after,
#location .section-header h2::after {
    left: 50%;
    transform: translateX(-50%);
}

#contact .section-intro {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px; /* Adjusted width for centered text */
    border-left: none; /* Remove left border for centered look */
    border-radius: 8px; /* Apply radius to all corners */
    background: transparent; /* Remove background for a cleaner look */
    padding: 0;
    letter-spacing: 0.2px;
}

.inline-logo {
    height: 1.6em;
    vertical-align: -0.5em;
    margin-right: -26px;
    filter: brightness(1.2);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px; 
}

.projects-section {
    position: relative; /* For pseudo-elements if needed */
    background-color: #0f172a; /* Fallback color */
    /* Subtle radial gradient for depth */
    background-image: radial-gradient(circle, #1e293b, #0f172a);
}

.project-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 40px;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 30px rgba(6, 182, 212, 0.15);
}

.project-text {
    flex: 1 1 60%;
}

.project-visual {
    flex: 1 1 40%;
    align-self: stretch;
    min-height: 250px;
    background: radial-gradient(circle, rgba(30, 41, 59, 0.5) 0%, #020617 70%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-visual pre {
    margin: 0;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-visual code {
    display: block;
    white-space: pre;
}

.code-comment {
    color: #64748b; /* Slate-500 */
}

.code-keyword {
    color: #ec4899; /* Pink-500 */
}

.code-property {
    color: #94a3b8; /* Slate-400 */
}

.code-value {
    color: #f59e0b; /* Amber-500 */
    transition: all 0.3s ease;
    display: inline-block; /* For transform to work correctly */
}

.project-card:hover .code-value {
    color: #fbbf24; /* Amber-400 */
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

/* Alternating layout */
.project-card:nth-child(even) .project-text {
    order: 2;
}
.project-card:nth-child(even) .project-visual {
    order: 1;
}

@media (max-width: 768px) {
    .project-card {
        flex-direction: column;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    .project-card:hover {
        transform: none;
        box-shadow: none;
    }
    .project-text {
        padding: 25px 20px;
        background: rgba(15, 23, 42, 0.6);
        border-radius: 16px;
    }
    .project-card:nth-child(even) .project-text {
        order: 1;
    }
}

.project-card h3 {
    color: #f8fafc;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #06b6d4;
    letter-spacing: 0.5px;
}

.project-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 25px;    
    line-height: 1.7;
}

.project-card p strong {
    display: block;
    margin-top: 15px;
    margin-bottom: 8px;
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
}

.project-card p strong:first-child {
    margin-top: 0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    background: var(--tag-color-bg, rgba(255, 255, 255, 0.05));
    color: var(--tag-color, #06b6d4);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--tag-color-border, transparent);
}

.project-tags span:hover {
    background: var(--tag-color, rgba(6, 182, 212, 0.15));
    color: #ffffff;
    transform: translateY(-2px);
}

.project-tags span.active {
    background: rgba(6, 182, 212, 0.25);
    color: #fff;
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

/* --- Colored Tech Tags --- */
.tag-lang {
    --tag-color: #EC1F8F; /* Pink */
}

.tag-fw {
    --tag-color: #F59E0B; /* Orange */
}

.tag-platform {
    --tag-color: #06b6d4; /* Cyan (Default) */
}

.tag-concept {
    --tag-color: #8B5CF6; /* Violet */
}
/* --- End Colored Tech Tags --- */

.b2b-note {
    font-size: 0.85em;
    opacity: 0.7;
    display: inline-block;
}

.contact-form {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section .profile-comic {
    display: block;
    margin: 20px auto 40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 6px solid #0f172a; /* Dark border to contrast glow */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), /* Depth shadow */
                0 0 0 4px #06b6d4,           /* Cyan ring */
                0 0 20px rgba(6, 182, 212, 0.5); /* Outer glow */
    transition: all 0.3s ease;
}

.contact-section .profile-comic:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), 0 0 0 6px #22d3ee, 0 0 35px rgba(34, 211, 238, 0.7);
}

@media (max-width: 991px) {
}

.form-group {
    margin-bottom: 20px;
}

.form-actions {
    text-align: right;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #94a3b8;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
    background-color: #253045;
}

/* Interest Field (Auto-filled) */
.interest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.interest-label {
    display: block;
    text-align: left;
    margin-bottom: 0;
    color: #06b6d4;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clear-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    padding: 6px 14px;
    border-radius: 6px;
}

.clear-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.clear-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.5);
}

.selected-interests-container {
    min-height: 52px;
    padding: 10px;
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    transition: all 0.3s ease;
}

.selected-tag {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    transition: all 0.2s;
}

.selected-tag:hover {
    background: rgba(6, 182, 212, 0.3);
    border-color: #22d3ee;
    padding-right: 12px;
}

.selected-tag::after {
    content: '×';
    font-weight: bold;
    font-size: 1.2em;
    line-height: 0.8;
    opacity: 0.7;
}

.selected-tag:hover::after {
    opacity: 1;
}

.placeholder-text {
    color: #94a3b8;
    font-style: italic;
    font-size: 0.9rem;
    opacity: 0.7;
}

.selected-interests-container.flash {
    background-color: rgba(6, 182, 212, 0.25);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    border-color: #22d3ee;
    transition: all 0.1s ease-out;
}

/* Location Section custom background */
#location {
    background-color: #0b1120; /* Slightly darker than body for separation */
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Footer */
footer {
    position: relative; /* For the gradient bar */
    background-color: #020617; /* Even darker footer */
    color: #94a3b8;
    text-align: left;
    padding: 80px 0 40px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Bottom gradient bar for the footer */
footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background-image: linear-gradient(90deg, #EC1F8F 0%, #FFA500 50%, #06B6D4 100%);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.4);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
    }
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.footer-tagline {
    font-style: italic;
    color: #64748b; /* A subtle, secondary color */
    font-size: 0.9rem;
    max-width: 250px;
}

.footer-column h3 {
    color: #f8fafc;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-weight: 700;
    opacity: 0.8;
}

.footer-column p {
    margin: 0;
    line-height: 1.6;
}

.footer-column a {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: #22d3ee;
    transform: translateX(5px);
}

.footer-column .footer-logo-link {
    display: inline-block;
    margin-bottom: 5px;
}

.footer-column .footer-logo-link:hover {
    transform: none;
    opacity: 0.8;
}

.footer-icon {
    width: 18px;
    height: 18px;
    stroke: #06b6d4;
    flex-shrink: 0;
    transition: stroke 0.3s ease;
}

.footer-column a:hover .footer-icon {
    stroke: #22d3ee;
}

.footer-logo {
    height: 36px;
    display: block;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-logo:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.5));
}

.footer-logo:active {
    transform: scale(0.9);
    transition: all 0.1s ease;
}

.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 30px 0 20px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #64748b;
}

.footer-legal a {
    font-size: 0.85rem;
    color: #64748b;
    margin-left: 20px;
}

.footer-legal a:hover {
    color: #06b6d4;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #06b6d4;
    color: #0f172a;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top-btn:hover {
    background-color: #22d3ee;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.6);
}


/* Animation: Ken Burns Effect (Slow Zoom) */
@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Tech Cloud in About Me */
.tech-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 35px;
}

.tech-tag {
    background: rgba(30, 41, 59, 0.5); /* Neutral dark background */
    color: #94a3b8; /* Lighter grey text */
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tech-tag:hover {
    background: var(--tag-color, rgba(6, 182, 212, 0.1));
    color: #ffffff;
    border-color: var(--tag-color, rgba(6, 182, 212, 0.5));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--tag-color-shadow, rgba(6, 182, 212, 0.15));
}

.tech-tag.active {
    background: var(--tag-color, rgba(6, 182, 212, 0.25));
    color: #fff;
    border-color: var(--tag-color, #22d3ee);
    box-shadow: 0 0 15px var(--tag-color-shadow, rgba(6, 182, 212, 0.4));
    transform: translateY(-1px);
}

/* Animation: Pulse for CTA Button */
@keyframes pulse-cyan {
    0% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(6, 182, 212, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    }
}

/* Animation: Gradient Pan for Avatar Background */
@keyframes gradient-pan {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Animation: Pulse for Timeline Dot */
@keyframes pulse-timeline-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 23, 42, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(15, 23, 42, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(15, 23, 42, 0);
    }
}
.timeline-item:hover .timeline-dot { animation: pulse-timeline-dot 2s infinite; }

/* Print Styles */
@page {
    margin: 1.5cm;
}

@media print {
    body {
        background-color: #fff;
        color: #000;
        font-size: 12pt;
        line-height: 1.4;
    }

    .container {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .mobile-menu-toggle,
    .main-nav,
    #hero-canvas,
    .scroll-top-btn,
    .contact-form,
    .interest-cart,
    .slider-btn,
    .slogan-icon,
    .profile-comic,
    .hero,
    .projects-section,
    .contact-section,
    .footer-grid {
        display: none !important;
    }

    .site-header {
        position: static;
        background-color: #fff;
        border-bottom: 2px solid #000;
        padding: 10px 0;
    }

    .hero-overlay {
        position: static;
        transform: none;
        text-align: left;
        width: 100%;
        color: #000;
        text-shadow: none;
        padding: 0;
    }

    .logo, .footer-logo {
        filter: brightness(0); /* Logo completely black for print */
    }

    .slogan-item {
        border: none;
        padding: 0;
        margin-bottom: 15px;
        color: #000;
    }

    .hero-overlay p {
        color: #333;
        opacity: 1;
        background: none !important;
        border: none;
        padding: 0;
    }

    main {
        display: block;
    }

    .content-grid {
        display: block;
        margin-top: 20px;
    }

    .column {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 30px;
        background: none !important;
        border: 1px solid #000;
        padding: 20px;
        color: #000;
        box-shadow: none;
    }

    .profile-container { margin: 0; }

    .column h2 {
        color: #000;
        border-bottom: 1px solid #000;
    }
    
    .column h2::after {
        display: none;
    }
    
    .column p, .column p strong {
        color: #000;
    }

    .section-icon {
        filter: brightness(0);
        background: none !important;
        border-color: #000;
    }

    .tech-cloud, .project-tags { display: none; }

    .feature-list li, .info-list li {
        color: #000;
        border-bottom: 1px solid #eee;
    }
    
    .feature-list li::before, .info-list li::before {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        filter: grayscale(100%);
    }
    
    .service-icon {
        background: none !important;
        color: #000 !important;
        border: 1px solid #000;
    }
    
    .service-title {
        color: #000;
    }
    
    .service-desc {
        color: #333;
    }

    .section-header h2 {
        color: #000;
    }
    
    .section-header h2::after {
        background-color: #000;
    }

    .projects-slider {
        display: block;
        overflow: visible;
    }

    .project-card {
        break-inside: avoid;
        page-break-inside: avoid;
        background: none !important;
        border: 1px solid #000;
        box-shadow: none;
        margin-bottom: 30px;
        width: 100%;
        flex: none;
        color: #000;
    }
    
    .project-card h3 {
        color: #000;
    }
    
    .project-card p {
        color: #333;
    }
    
    .project-visual.terminal-style { display: none; }

    .contact-section {
        background: none;
        border: none;
        color: #000;
        padding: 20px 0;
    }
    
    .contact-intro h2 {
        color: #000;
    }
    
    .contact-intro p {
        color: #333;
    }

    footer {
        background: none;
        color: #000;
        padding: 20px 0;
        border-top: 2px solid #000;
    }

    footer::after {
        display: none;
    }

    .footer-grid {
        display: block;
        text-align: center;
    }

    .footer-copyright, .footer-legal a {
        color: #333;
    }
    
    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
}

/* Accessibility: Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal, 
    .main-nav a.nav-btn, 
    .hero-overlay p,
    .tech-item,
    .section-icon,
    .footer-column a,
    .scroll-top-btn,
    .tech-tag {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Tech Journey Timeline Section */
.timeline-section {
    /* Spacing is handled by the global section spacing rule */
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #fcfaf6; /* Warmer, very light beige background */
    /* Subtle linear gradient for a clean, top-down light effect */
    background-image:
        linear-gradient(to bottom, #ffffff, #fcfaf6);
}

.about-content p {
    margin-bottom: 15px;
    color: #475569;
    color: #334155; /* Dunklerer Text für besseren Kontrast */
    font-size: 1.05rem; /* Etwas größerer Text */
    line-height: 1.7; /* Mehr Zeilenabstand */
}

.timeline-section .section-header h2 {
    color: #0f172a; /* Dark text on light background */
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0; /* Remove padding to align intro */
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #cbd5e1; /* Lighter gray line */
    top: 90px; /* Start below the avatar's center */
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-intro {
    background: #ffffff;
    /* border-left: 4px solid #06b6d4; */
    border-radius: 8px;
    padding: 30px 40px;
    margin: 0 auto 60px;
    max-width: 1000px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2; /* Above the timeline's pseudo-element */
    text-align: left;
}

.about-content-wrapper {
    overflow: auto; /* clearfix */
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0 60px;
    align-items: center;
}

.about-aside {
    text-align: center;
}

@media (min-width: 768px) {
}

.about-pull-quote {
    background-color: #06b6d4; /* Primary cyan background */
    color: #ffffff; /* White text */
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.25);
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 1.3rem; /* Slightly adjusted for monospace readability */
    font-weight: 600;
    line-height: 1.5;
}

.about-pull-quote strong {
    color: #ffffff; /* Make strong text white as well */
    font-weight: 700;
}

.quote-solution {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 6px;
    color: #fff; /* Accent Orange */
    font-weight: 700; /* Slightly more subtle glow */
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .about-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px 0;
    }
    .about-pull-quote {
        font-size: 1.2rem;
        text-align: center;
        padding: 25px 20px; /* Adjust padding for mobile */
    }
}

.about-content-wrapper p {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.about-content-wrapper p strong {
    color: #0f172a;
    font-weight: 600;
}

.timeline-intro {
    margin-top: 0;
}

.timeline-idea-item {
    width: 100%;
    left: 0;
    padding: 20px 0;
    margin-top: 20px;
}

.timeline-idea-item .timeline-dot {
    left: 50%;
    margin-left: -16px;
}

.timeline-idea-item .timeline-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    padding-top: 40px;
}

.idea-bulb {
    width: 96px; /* Slightly larger for more presence */
    height: 96px;
    margin-bottom: 15px;
    animation: pulse-bulb 2s infinite;
}

@keyframes pulse-bulb {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.7));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 25px rgba(251, 191, 36, 0.9));
    }
}

.timeline-idea-item .btn-small {
    margin-top: 10px;
    padding: 8px 22px;
    font-size: 0.9rem;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

/* Place items on the left and right */
.timeline-item:nth-child(odd) {
    left: 0;
}
.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    background-color: #fff; /* Match section background */
    border: 4px solid #cbd5e1; /* Lighter gray border */
    top: 32px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(odd) .timeline-dot {
    right: -16px;
}
.timeline-item:nth-child(even) .timeline-dot {
    left: -16px;
}

.about-content-wrapper .profile-comic {
    border-color: #0f172a; /* Dunkler Rand passend zum hellen Hintergrund */
}

.timeline-content {
    padding: 20px 30px;
    background: #ffffff; /* White cards */
    border: 1px solid #e2e8f0; /* Light border */
    position: relative;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.timeline-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 128px;
    height: 128px;
    color: #cbd5e1; /* A neutral color from the light theme */
    color: #cbd5e1; /* Darker gray for visibility on light background */
    z-index: 0;
    transition: all 0.4s ease;
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -310px; /* Position right of the center line */
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -310px; /* Position left of the center line */
}

.timeline-item:hover .timeline-icon { color: #06b6d4; transform: translateY(-50%) scale(1.1) rotate(-5deg); }

.timeline-content h3 { color: #1e293b; margin-top: 0; margin-bottom: 10px; font-size: 1.2rem; }
.timeline-content p { color: #475569; font-size: 0.95rem; margin-bottom: 20px; }
.timeline-content .project-tags { margin-top: 15px; }

/* Override tech-tag active state for light timeline */
.timeline-section .tech-tag.active {
    background: var(--tag-color, #06b6d4);
    color: #ffffff;
    border-color: var(--tag-color, #06b6d4);
    box-shadow: 0 4px 15px var(--tag-color-shadow, rgba(6, 182, 212, 0.4));
    transform: translateY(-2px);
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::after {
        left: 31px; /* Move line to the left */
        top: 240px; /* Start line below the avatar */
    }

    .timeline-intro {
        margin-top: 40px; /* Add space between avatar and intro text on mobile */
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    /* Reset left positioning for all items */
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 23px; /* Position dot on the line (31px - 8px) */
        right: auto; /* Reset right property from odd items */
    }

    .timeline-dot {
        width: 16px;
        height: 16px;
        border-width: 3px;
    }

    .timeline-icon {
        display: none; /* Hide icons on mobile to save space */
    }
}

/* Interest Cart (Sticky) */
.interest-cart {
    position: fixed;
    top: 25px;
    right: 20px;
    z-index: 1002;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.interest-cart.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.interest-cart.pulsing .cart-icon-wrapper {
    animation: pulse-cart 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pulse-cart {
    0% { transform: scale(1); }
    50% { transform: scale(1.25) rotate(-5deg); }
    100% { transform: scale(1); }
}

.cart-icon-wrapper {
    background-color: #ffffff;
    color: #06b6d4;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
    position: relative;
}

.interest-cart:hover .cart-icon-wrapper {
    background-color: #f1f5f9;
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

/* Shift Navigation for Cart (Desktop) */
body.cart-active .main-nav {
    margin-right: 70px;
    transition: margin-right 0.3s ease;
}

/* Legal Pages (Imprint, Privacy, Terms) */
.legal-page {
    padding: 120px 20px 80px;
    min-height: 80vh;
}

.legal-content {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.legal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #06b6d4, #22d3ee);
}

.legal-content h1 {
    color: #f8fafc;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.5px;
}

.legal-section {
    margin-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 35px;
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    color: #06b6d4;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 700;
}

.legal-section p {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

.legal-section strong {
    color: #f8fafc;
    font-weight: 600;
}

.legal-note {
    margin-top: 10px !important;
    opacity: 0.7;
    font-size: 0.9em !important;
}

/* --- Finishing Touches --- */

/* Custom Scrollbar for Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f172a; 
}

::-webkit-scrollbar-thumb {
    background: #334155; 
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #06b6d4; 
}

/* Custom Text Selection Color */
::selection {
    background: #06b6d4;
    color: #0f172a;
}

/* Search Highlight & Visibility */
.search-highlight {
    background-color: #f59e0b; /* Amber-500 */
    color: #020617;
    border-radius: 3px;
    padding: 1px 3px;
    font-weight: 600;
}

.search-hidden {
    display: none !important;
}

.search-no-results {
    text-align: center;
    padding: 80px 20px;
    display: none;
    flex-direction: column;
    align-items: center;
}

.search-no-results h2 {
    color: #f8fafc;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.search-no-results img {
    width: 120px;
    margin-bottom: 20px;
}

.search-no-results p {
    color: #94a3b8;
    font-size: 1.1rem;
}