:root {
    --background: #080D18;
    --text: #F1F5F9;
    --muted: #94A3B8;
    --blue: #60A5FA;
    --cyan: #38BDF8;
    --purple: #A78BFA;
    --border: rgba(148, 163, 184, 0.16);
}

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

html, body {
    height: 100vh;
    width: 100vw;
    overflow: hidden; /* Fixed / Non-Scrolling Layout */
}

body {
    display: flex;
    flex-direction: column;
    background: linear-gradient(
        135deg, 
        var(--background) 0%, 
        color-mix(in srgb, var(--background) 70%, #000000) 100%
    );
    transition: background 0.3s ease;
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 10%, var(--blue) 0%, transparent 65%);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
    transition: background 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

/* NAVIGATION */

.navbar {
    width: 100%;
    height: 75px;
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.logo {
    font-size: 1.25rem;
    font-weight: 750;
    letter-spacing: -0.5px;
}

.logo-icon {
    color: var(--blue);
    margin-right: 8px;
}

.accent {
    color: var(--cyan);
}

.nav-label {
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 1.8px;
}

/* MAIN HERO */

.hero {
    flex: 1;
    min-height: 0;
    width: min(1280px, 92%); /* Widened container to fit content safely */
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); /* Expanded second column for code window */
    align-items: center;
    gap: 40px;
    position: relative;
    padding: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #B7C9E6;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
}

.name {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #f2f5ed;
    font-family: 'Inter', sans-serif;
    margin: 0;
    cursor: pointer;
}

.about-image {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 10px 0;
}

.about-image img {
    width: clamp(180px, 24vh, 280px);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border-color: rgba(59, 130, 246, 0.65);
    box-shadow:
        0 0 0 12px rgba(59, 130, 246, 0.05),
        0 0 65px rgba(34, 211, 238, 0.13);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.about-image img:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

/* THEME SWITCHER */
body.theme-purple {
    --background: #110c1d;
    --text: #f3e8ff;
    --muted: #c084fc;
    --blue: #c084fc;
    --cyan: #e879f9;
    --purple: #f472b6;
    --border: rgba(192, 132, 252, 0.2);
}

body.theme-emerald {
    --background: #061a14;
    --text: #ecfdf5;
    --muted: #6ee7b7;
    --blue: #34d399;
    --cyan: #10b981;
    --purple: #6ee7b7;
    --border: rgba(52, 211, 153, 0.2);
}

body.theme-light {
    --background: #f1f5f9;
    --text: #1e293b;
    --muted: #64748b;
    --blue: #2563eb;
    --cyan: #0284c7;
    --purple: #7c3aed;
    --border: rgba(15, 23, 42, 0.1);
}

body.theme-midnight {
    --background: #04060b;
    --text: #cbd5e1;
    --muted: #64748b;
    --blue: #38bdf8;
    --cyan: #22d3ee;
    --purple: #a78bfa;
    --border: rgba(255, 255, 255, 0.08);
}

/* THEME TOGGLE BUTTON */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 16px;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.12);
}

/* MAIN BUTTON */

.enter-button {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    margin-top: 15px;
    margin-left: 0;
    padding: 10px 20px;
    border-radius: 50px;
    background: var(--blue);
    color: #08111F;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(96, 165, 250, 0.16);
    transition: 0.25s ease;
}

.enter-button:hover {
    background: #93C5FD;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(96, 165, 250, 0.28);
}

.arrow {
    font-size: 1.15rem;
    transition: transform 0.25s ease;
}

.enter-button:hover .arrow {
    transform: translate(3px, -3px);
}

.footer-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    color: #64748B;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
}

.line {
    width: 32px;
    height: 1px;
    background: var(--blue);
}

/* DECORATIVE CODE WINDOW */

.code-decoration {
    position: relative;
    z-index: 1;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--background);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
    transform: rotate(2deg);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    max-height: 85vh;
    overflow: hidden;
}

.code-decoration:hover {
    transform: rotate(0deg) translateY(-5px);
}

.code-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.75rem;
}

body.theme-light .code-decoration {
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

body.theme-light .code-content {
    color: #1e293b;
}

body.theme-light .purple {
    color: #7c3aed;
}

body.theme-light .blue {
    color: #0284c7;
}

body.theme-light .green {
    color: #0d9488;
}

body.theme-light .comment {
    color: #64748b;
}

body.theme-light .name {
    color: #0f172a;
}

.window-dots {
    display: flex;
    gap: 7px;
}

.window-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #F87171;
}

.window-dots span:nth-child(2) {
    background: #FBBF24;
}

.window-dots span:nth-child(3) {
    background: #34D399;
}

.code-content {
    padding: 18px 22px;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    font-family: Consolas, "Courier New", monospace;
    font-size: clamp(0.62rem, 0.85vw, 0.8rem); /* Slightly optimized font size to fit long email strings */
    line-height: 1.8;
    white-space: normal; /* Allows text wrapping instead of forcing horizontal scroll */
    word-break: break-all; /* Breaks long strings like email safely */
}

.indent {
    padding-left: 18px;
}

.purple {
    color: #C4B5FD;
}

.blue {
    color: #7DD3FC;
}

.green {
    color: #86EFAC;
}

.comment {
    margin-top: 8px;
    color: #64748B;
}

/* BACKGROUND EFFECTS */

.background-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    opacity: 0.15;
}

.glow-one {
    top: 5%;
    left: 5%;
    background: #2563EB;
}

.glow-two {
    right: 0;
    bottom: 5%;
    background: #7C3AED;
}

.decorative-symbol {
    position: absolute;
    color: rgba(96, 165, 250, 0.12);
    font-family: Consolas, monospace;
    font-weight: 700;
    pointer-events: none;
}

.symbol-one {
    top: 10%;
    right: 5%;
    font-size: 3rem;
}

.symbol-two {
    bottom: 12%;
    left: 45%;
    font-size: 4rem;
}

/* FOOTER */

.page-footer {
    height: 55px;
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--border);
    color: #64748B;
    font-size: 0.68rem;
    letter-spacing: 1px;
    flex-shrink: 0;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px 6%;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .about-image {
        justify-content: center;
    }

    .code-decoration {
        display: none;
    }

    .symbol-one, .symbol-two {
        display: none;
    }
}

@media (max-width: 600px) {
    .navbar {
        min-height: 65px;
        padding: 0 6%;
    }

    .nav-label {
        max-width: 120px;
        text-align: right;
        font-size: 0.55rem;
        line-height: 1.7;
    }

    .enter-button {
        padding: 10px 16px;
        gap: 12px;
    }

    .page-footer {
        align-items: center;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        padding: 8px 6%;
        font-size: 0.58rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto;
        transition: none;
    }
}
