/* css/content.css */

.content-layout {
    display: flex;
    width: 85vw;
    max-width: 1200px;
    height: 60vh;
    margin-top: 180px;
    align-items: center;
    justify-content: space-between;
}

/* =========================================
   Left Side: RGB Looping Notebook
   ========================================= */
.notepad-container {
    flex: 0.8;
    position: relative;
    padding: 3px;
    border-radius: 12px;
    overflow: hidden;

    /* 3D Tilt for a physical, angled look */
    transform: perspective(1200px) rotateY(6deg) rotateX(-2deg);
    transform-style: preserve-3d;

    /* Layered shadow for deep 3D effect */
    box-shadow:
        -8px 8px 15px rgba(0, 0, 0, 0.5),
        -20px 20px 40px rgba(0, 0, 0, 0.6),
        -35px 35px 70px rgba(0, 0, 0, 0.4);

    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.content-layout:not(.resume-mode):not(.about-mode):not(.contact-mode):not(.rosmerta-mode) .notepad-container:hover {
    transform: perspective(1200px) rotateY(3deg) rotateX(-1deg) translateZ(10px);
    box-shadow:
        -5px 5px 10px rgba(0, 0, 0, 0.4),
        -15px 15px 35px rgba(0, 0, 0, 0.5),
        -30px 30px 60px rgba(0, 0, 0, 0.35),
        0 0 25px rgba(0, 210, 255, 0.08);
}

/* Base Flattening for single pages */
.content-layout.resume-mode .notepad-container,
.content-layout.about-mode .notepad-container,
.content-layout.contact-mode .notepad-container,
.content-layout.rosmerta-mode .notepad-container {
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* The Animated RGB Loop */
.rgb-border {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* A conic gradient with a sharp laser line of color */
    background: conic-gradient(from 0deg, transparent 70%, #ff0055 80%, #00d2ff 100%);
    animation: spinRGB 3s linear infinite;
    z-index: 1;
}

@keyframes spinRGB {
    100% {
        transform: rotate(360deg);
    }
}

.notepad {
    position: relative;
    width: 100%;
    min-height: 380px;
    padding: 50px 40px 50px 60px;
    /* Extra left padding for the binding */
    background: #0a0a0a;
    border-radius: 10px;
    z-index: 2;
    /* Sits on top of the RGB border */

    /* Subtle paper lines */
    background-image: repeating-linear-gradient(to bottom, transparent, transparent 39px, rgba(255, 255, 255, 0.03) 39px, rgba(255, 255, 255, 0.03) 40px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, padding 0.3s ease, background-image 0.3s ease;
}

/* Physical Notebook Binding Details */
.notebook-binding {
    position: absolute;
    top: 0;
    left: 15px;
    width: 20px;
    height: 100%;
    border-left: 2px dashed rgba(255, 255, 255, 0.2);
    border-right: 2px dashed rgba(255, 255, 255, 0.2);
    transition: opacity 0.3s ease;
}

/* Clean card mode — analytics view: hide notebook elements */
.notepad-container.clean-card .notepad {
    padding: 24px;
    background-image: none;
}

.notepad-container.clean-card .notebook-binding {
    opacity: 0;
    pointer-events: none;
}

.notepad.pop-forward {
    transform: translateZ(50px) scale(1.02);
    opacity: 0.5;
}

/* Typography */
.info-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 300;
    font-style: italic;
    color: #fff;
    margin-bottom: 5px;
}

.info-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #00d2ff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.info-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
}

/* =========================================
   Mobile Controls (Hidden on Desktop)
   ========================================= */
.mobile-swipe-controls,
.mobile-menu-scroll-hint {
    display: none;
}

/* =========================================
   Dial Visibility 
   Hide dial entirely on Desktop/Mobile when viewing standalone pages
   ========================================= */
.content-layout.about-mode .dial-section,
.content-layout.tech-mode .dial-section,
.content-layout.contact-mode .dial-section,
.content-layout.resume-mode .dial-section,
.content-layout.rosmerta-mode .dial-section {
    display: none !important;
}

/* =========================================
   Right Side: Smaller, Shifted Dial
   ========================================= */
.dial-section {
    width: 300px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: -30px;
    margin-left: auto;
}

.dial-hint {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    margin-top: 18px;
    animation: hintPulse 3s ease-in-out infinite;
}

@keyframes hintPulse {

    0%,
    100% {
        opacity: 0.75;
    }

    50% {
        opacity: 1;
    }
}

.dial-casing {
    position: relative;
    width: 260px;
    /* Shrunk down */
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

/* The Snap Marks — Major (content stops) */
.dial-mark {
    position: absolute;
    width: 4px;
    height: 14px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    top: 8px;
    transform-origin: 50% 122px;
    transition: all 0.3s ease;
}

.dial-mark.glow {
    background: #00d2ff;
    box-shadow: 0 0 10px #00d2ff, 0 0 20px #00d2ff;
}

/* Minor tick marks — decorative for a mechanical feel */
.dial-mark-minor {
    position: absolute;
    width: 2px;
    height: 7px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    top: 10px;
    transform-origin: 50% 122px;
}

.mechanical-dial {
    width: 200px;
    /* Shrunk down */
    height: 200px;
    position: relative;
    cursor: grab;
    border-radius: 50%;
    --light-angle: 0deg;
    background: conic-gradient(from var(--light-angle), #111 0%, #444 15%, #111 30%, #0a0a0a 50%, #111 70%, #444 85%, #111 100%);
    border: 2px solid #050505;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.mechanical-dial:active {
    cursor: grabbing;
}

.dial-indicator {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 15px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.dial-center {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, #222 0%, #0a0a0a 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.9),
        inset 0 1px 2px rgba(255, 255, 255, 0.15),
        inset 0 -1px 2px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Knurled ring around the center */
.dial-center::before {
    content: '';
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: repeating-conic-gradient(rgba(255, 255, 255, 0.03) 0deg 5deg,
            transparent 5deg 10deg);
}

.center-screw {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.2) 0%, transparent 60%),
        radial-gradient(circle, #1a1a1a, #050505);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

/* Tiny crosshair slot on the screw */
.center-screw::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.center-screw::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
}

/* =========================================
   Analytics Sub-Navigation Glass Tube
   ========================================= */
.glass-sub-nav {
    position: sticky;
    top: 85px;
    z-index: 99;
    margin-top: 14px;

    /* Liquid glass background */
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.10) 0%,
            rgba(255, 255, 255, 0.03) 40%,
            rgba(255, 255, 255, 0.06) 60%,
            rgba(255, 255, 255, 0.02) 100%);

    backdrop-filter: blur(35px) saturate(170%) brightness(1.05);
    -webkit-backdrop-filter: blur(35px) saturate(170%) brightness(1.05);

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 40px;
    padding: 5px 6px;

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.25),
        0 10px 30px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12);

    overflow: hidden;

    /* Slide-down entrance */
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.4s ease,
        transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        margin-top 0.4s ease,
        padding 0.4s ease;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    pointer-events: none;
}

.glass-sub-nav.visible {
    max-height: 60px;
    opacity: 1;
    transform: translateY(0) scale(1);
    margin-top: 14px;
    padding: 5px 6px;
    pointer-events: all;
}

/* Specular top shine */
.glass-sub-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 30%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0.3) 70%,
            transparent 100%);
    border-radius: 50%;
    pointer-events: none;
}

.glass-sub-nav::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.04) 0%,
            transparent 100%);
    border-radius: 40px 40px 0 0;
    pointer-events: none;
    z-index: 0;
}

.sub-nav-links {
    position: relative;
    display: flex;
    list-style: none;
    gap: 3px;
    z-index: 2;
    justify-content: center;
}

.sub-nav-item {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.50);
    padding: 8px 18px;
    cursor: pointer;
    border-radius: 25px;
    transition: color 0.35s ease, text-shadow 0.35s ease, background 0.35s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.sub-nav-icon {
    display: flex;
    align-items: center;
    transition: filter 0.35s ease;
}

.sub-nav-item:hover {
    color: rgba(255, 255, 255, 0.85);
}

/* Sub-nav Sliding Pill Indicator */
.sub-nav-indicator {
    position: absolute;
    top: 5px;
    left: 6px;
    height: calc(100% - 10px);

    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.06) 50%,
            rgba(255, 255, 255, 0.10) 100%);

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-top-color: rgba(255, 255, 255, 0.30);
    border-radius: 25px;

    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);

    z-index: 1;
    pointer-events: none;

    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.18);
}

.sub-nav-indicator::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 15%;
    right: 15%;
    height: 40%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.12) 0%,
            transparent 100%);
    border-radius: 25px 25px 50% 50%;
    pointer-events: none;
}

/* =========================================
   Category Accent Colors
   ========================================= */

/* Excel — Green */
.sub-nav-item.active[data-subtarget="excel"] {
    color: #4ADE80;
    text-shadow: 0 0 12px rgba(74, 222, 128, 0.3);
}

.sub-nav-item.active[data-subtarget="excel"] .sub-nav-icon {
    filter: drop-shadow(0 0 4px rgba(74, 222, 128, 0.5));
}

/* SQL — Orange */
.sub-nav-item.active[data-subtarget="sql"] {
    color: #FB923C;
    text-shadow: 0 0 12px rgba(251, 146, 60, 0.3);
}

.sub-nav-item.active[data-subtarget="sql"] .sub-nav-icon {
    filter: drop-shadow(0 0 4px rgba(251, 146, 60, 0.5));
}

/* Tableau — Blue-Teal */
.sub-nav-item.active[data-subtarget="tableau"] {
    color: #38BDF8;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.sub-nav-item.active[data-subtarget="tableau"] .sub-nav-icon {
    filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.5));
}

/* Power BI — Gold */
.sub-nav-item.active[data-subtarget="powerbi"] {
    color: #FACC15;
    text-shadow: 0 0 12px rgba(250, 204, 21, 0.3);
}

.sub-nav-item.active[data-subtarget="powerbi"] .sub-nav-icon {
    filter: drop-shadow(0 0 4px rgba(250, 204, 21, 0.5));
}

/* Rosmerta — Rose Red */
.sub-nav-item.active[data-subtarget="rosmerta"] {
    color: #F43F5E;
    text-shadow: 0 0 12px rgba(244, 63, 94, 0.3);
}

.sub-nav-item.active[data-subtarget="rosmerta"] .sub-nav-icon {
    filter: drop-shadow(0 0 4px rgba(244, 63, 94, 0.5));
}

/* Accent border glow on the sub-nav for active category */
.glass-sub-nav[data-active-category="excel"] {
    border-color: rgba(74, 222, 128, 0.2);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.25),
        0 10px 30px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(74, 222, 128, 0.06),
        inset 0 1px 0 rgba(74, 222, 128, 0.1);
}

.glass-sub-nav[data-active-category="sql"] {
    border-color: rgba(251, 146, 60, 0.2);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.25),
        0 10px 30px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(251, 146, 60, 0.06),
        inset 0 1px 0 rgba(251, 146, 60, 0.1);
}

.glass-sub-nav[data-active-category="tableau"] {
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.25),
        0 10px 30px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(56, 189, 248, 0.06),
        inset 0 1px 0 rgba(56, 189, 248, 0.1);
}

.glass-sub-nav[data-active-category="powerbi"] {
    border-color: rgba(250, 204, 21, 0.2);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.25),
        0 10px 30px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(250, 204, 21, 0.06),
        inset 0 1px 0 rgba(250, 204, 21, 0.1);
}

.glass-sub-nav[data-active-category="rosmerta"] {
    border-color: rgba(244, 63, 94, 0.2);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.25),
        0 10px 30px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(244, 63, 94, 0.06),
        inset 0 1px 0 rgba(244, 63, 94, 0.1);
}

/* Accent color on the RGB border when in analytics mode */
.notepad-container[data-accent="excel"] .rgb-border {
    background: conic-gradient(from 0deg, transparent 70%, #217346 80%, #4ADE80 100%);
}

.notepad-container[data-accent="sql"] .rgb-border {
    background: conic-gradient(from 0deg, transparent 70%, #CC6600 80%, #FB923C 100%);
}

.notepad-container[data-accent="tableau"] .rgb-border {
    background: conic-gradient(from 0deg, transparent 70%, #1E6FA0 80%, #38BDF8 100%);
}

.notepad-container[data-accent="powerbi"] .rgb-border {
    background: conic-gradient(from 0deg, transparent 70%, #B8960F 80%, #FACC15 100%);
}

.notepad-container[data-accent="rosmerta"] .rgb-border {
    background: conic-gradient(from 0deg, transparent 70%, #9F1239 80%, #F43F5E 100%);
}

/* Accent glow on dial marks */
.dial-mark.glow[data-accent="excel"] {
    background: #4ADE80;
    box-shadow: 0 0 10px #4ADE80, 0 0 20px #4ADE80;
}

.dial-mark.glow[data-accent="sql"] {
    background: #FB923C;
    box-shadow: 0 0 10px #FB923C, 0 0 20px #FB923C;
}

.dial-mark.glow[data-accent="tableau"] {
    background: #38BDF8;
    box-shadow: 0 0 10px #38BDF8, 0 0 20px #38BDF8;
}

.dial-mark.glow[data-accent="powerbi"] {
    background: #FACC15;
    box-shadow: 0 0 10px #FACC15, 0 0 20px #FACC15;
}

.dial-mark.glow[data-accent="rosmerta"] {
    background: #F43F5E;
    box-shadow: 0 0 10px #F43F5E, 0 0 20px #F43F5E;
}

/* =========================================
   Project Image Card (inside notebook)
   ========================================= */
.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.project-card:hover .project-image {
    transform: scale(1.02);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.6),
        0 0 30px var(--accent-glow, rgba(0, 210, 255, 0.15));
}

.project-image {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.02);
}

.project-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-label .github-icon {
    width: 14px;
    height: 14px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-label .github-icon {
    opacity: 0.9;
}

.project-label .link-hint {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    font-style: italic;
}

/* =========================================
   Rosmerta Gallery — 3×2 Grid of Individual Cards
   ========================================= */
.rosmerta-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
}

/* Individual Rosmerta card */
.rosmerta-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
}

.rosmerta-card:hover {
    box-shadow: 0 4px 16px rgba(244, 63, 94, 0.15);
    transform: translateY(-2px);
    border-color: rgba(244, 63, 94, 0.2);
}

.rosmerta-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.02);
}

/* Content layout expansion for Rosmerta (full width, no dial) */
.content-layout.rosmerta-mode {
    justify-content: center;
    margin-top: 260px;
}

.content-layout.rosmerta-mode .notepad-container {
    flex: 1;
    max-width: 900px;
}

.content-layout.rosmerta-mode .dial-section {
    display: none;
}

/* =========================================
   About Section Layout & Styling
   ========================================= */
.content-layout.about-mode {
    justify-content: center;
}

.content-layout.about-mode .notepad-container {
    flex: 1;
    max-width: 900px;
}

.content-layout.about-mode .dial-section {
    display: none;
}

.about-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    margin-top: 10px;
}

.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-section h4 {
    font-family: 'Montserrat', sans-serif;
    color: #4ADE80;
    font-size: 1rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-section p,
.about-section ul {
    font-family: 'Montserrat', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.about-section ul {
    padding-left: 20px;
}

.about-section li {
    margin-bottom: 5px;
}

.about-section strong {
    color: #fff;
    font-weight: 500;
}

.about-image {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.about-image img {
    width: 100%;
    max-width: 220px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.05);
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 210, 255, 0.15);
}

/* =========================================
   Tech Section Layout & Styling (Brick Wall)
   ========================================= */

.content-layout.tech-mode {
    justify-content: center;
}

.content-layout.tech-mode .notepad-container {
    flex: 1;
    max-width: 1000px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.content-layout.tech-mode .notepad-container:hover {
    transform: none;
    box-shadow: none;
}

.content-layout.tech-mode .rgb-border {
    display: none;
}

.content-layout.tech-mode .notepad {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.content-layout.tech-mode .dial-section {
    display: none;
}

.tech-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-top: 20px;
}

.tech-header {
    text-align: center;
    max-width: 800px;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}

.tech-intro {
    font-family: 'Montserrat', sans-serif;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 15px;
    letter-spacing: 0.5px;
}

.brick-wall {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0 15px;
    margin-bottom: 20px;
}


/* The Bricks and Traveling Lines Animation */
.brick {
    position: relative;
    padding: 1px;
    /* The width of the glowing border */
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: default;

    color: #e0e0e0;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    background: rgba(10, 10, 10, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease, box-shadow 0.3s ease;
}

/* Inner mask block so the glow-line only shines on the border */
.brick span {
    position: relative;
    z-index: 2;
    background: #0d0d0d;
    padding: 12px 24px;
    border-radius: 5px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

/* Traveling lines glowing from beneath the span mask */
.glow-line {
    position: absolute;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    /* Base multicolors */
    background: conic-gradient(from 0deg, transparent 40%, #00d2ff 60%, transparent 80%);
    animation: brickBorderGlow 4s linear infinite;
    z-index: 0;
    opacity: 0.8;
}

@keyframes brickBorderGlow {
    100% {
        transform: rotate(360deg);
    }
}

/* Hover effects */
.brick:hover {
    transform: translateY(-4px) scale(1.08);
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 210, 255, 0.3);
}

.brick:hover .glow-line {
    background: conic-gradient(from 0deg, transparent 20%, #ff0055 50%, #00d2ff 80%);
    opacity: 1;
    animation-duration: 1.5s;
}

.brick:hover span {
    background: rgba(18, 18, 18, 0.95);
}

/* Randomize line traveling colors and speeds */
/* Pink & Teal */
.brick:nth-child(2n) .glow-line {
    background: conic-gradient(from 0deg, transparent 50%, #f43f5e 70%, transparent 90%);
    animation-duration: 5s;
    animation-direction: reverse;
}

/* Yellow & Orange */
.brick:nth-child(3n) .glow-line {
    background: conic-gradient(from 0deg, transparent 45%, #fb923c 65%, #facc15 85%, transparent 100%);
    animation-duration: 3.5s;
}

/* Green */
.brick:nth-child(5n) .glow-line {
    background: conic-gradient(from 0deg, transparent 60%, #4ade80 80%, transparent 100%);
    animation-duration: 6s;
    animation-direction: reverse;
}

/* Purple / Blue */
.brick:nth-child(7n) .glow-line {
    background: conic-gradient(from 0deg, transparent 55%, #8b5cf6 75%, #3b82f6 95%, transparent 100%);
    animation-duration: 4.5s;
}

/* =========================================
   Resume Section Styling
   ========================================= */

.content-layout.resume-mode {
    justify-content: center;
    max-width: none;
    width: 100%;
}

.content-layout.resume-mode .notepad-container {
    flex: 1;
    width: 100vw;
    max-width: 100vw;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    height: 100vh;
}

.content-layout.resume-mode .notepad-container:hover {
    transform: none;
    box-shadow: none;
}

.content-layout.resume-mode .rgb-border {
    display: none;
}

.content-layout.resume-mode .notepad {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    height: 100%;
    width: 100%;
    border-radius: 0;
}

.content-layout.resume-mode .dial-section {
    display: none;
}

.resume-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding-top: 60px;
    /* Moves the resume a bit lower from nav */
}

.resume-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    /* Align button towards to top of the resume */
    gap: 40px;
    /* Gap between resume and button */
    max-width: 95vw;
}

.resume-actions {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.resume-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(10, 10, 10, 0.85);
    /* Dark background */
    backdrop-filter: blur(10px);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.resume-btn:hover {
    background: rgba(244, 63, 94, 0.8);
    border-color: #f43f5e;
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.4);
    transform: translateY(-2px);
}

.resume-viewer {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: #050505;

    /* 3D Glow Effect */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 210, 255, 0.3),
        0 0 60px rgba(244, 63, 94, 0.15);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.resume-viewer:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 210, 255, 0.45),
        0 0 80px rgba(244, 63, 94, 0.3);
}

.resume-viewer img {
    max-width: 100%;
    max-height: 82vh;
    /* Set height to allow the 3D wrapper to contain it well */
    object-fit: contain;
    border: none;
    border-radius: 12px;
}