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

:root {
    --bg-color: #022c22;
    --text-color: #ecfdf5;
    --text-muted: #a7f3d0;
    --accent-color: #4ade80;
    --secondary-accent: #bef264;
    --grid-line: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(6, 78, 59, 0.6);
    --glass-border: rgba(167, 243, 208, 0.1);
    --card-hover: rgba(74, 222, 128, 0.1);
}

html {
    scroll-behavior: smooth;
}

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

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

/* Dynamic Backgrounds */
.background-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.15) 0%, rgba(129, 140, 248, 0.05) 40%, transparent 60%);
    border-radius: 50%;
    z-index: -2;
    pointer-events: none;
    transition: transform 0.2s ease-out;
}

.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.1), transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: screen;
}

/* Header/Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(15px);
    background: rgba(2, 44, 34, 0.8);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

.nav-cta {
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    color: #fff !important;
}

.nav-cta:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000 !important;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 5rem;
    /* Nav offset */
}

/* Hero Section */
.hero-section {
    text-align: left;
    min-height: 90vh;
    /* Slightly shorter than full viewport */
}

h1 {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

h1 span {
    display: block;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.primary-btn {
    background: var(--accent-color);
    color: #0f172a;
}

.primary-btn:hover {
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
    transform: translateY(-2px);
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: #fff;
}

.secondary-btn:hover {
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
}

.stats-container {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Generic Section Styles */
.section-header {
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #fff;
}

.section-header .line {
    height: 1px;
    background: var(--glass-border);
    flex-grow: 1;
}

/* Glass Cards */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.3s, border-color 0.3s;
}

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

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: #fff;
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Skills */
.skills-wrapper {
    display: grid;
    gap: 3rem;
}

.skill-category h4 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tags span {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: background 0.3s;
}

.tags span.highlight {
    color: var(--accent-color);
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.05);
}

.tags span:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* Clickable */
}

.project-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    background: var(--accent-color);
    color: #000;
    border-radius: 1rem;
    font-weight: 700;
}

.project-content h3 {
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.role {
    color: var(--secondary-accent);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-metrics {
    margin-top: 1.5rem;
    list-style: none;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

.project-metrics li {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: var(--text-muted);
}

.project-metrics strong {
    color: #fff;
}

.click-hint {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--accent-color);
    text-align: right;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .click-hint {
    opacity: 1;
}

/* Nature / Perspective Section */
.perspective-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

.perspective-text {
    flex: 1;
}

.perspective-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.perspective-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.perspective-text .quote {
    font-style: italic;
    color: var(--accent-color);
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
}

.perspective-image {
    flex: 1;
    position: relative;
    /* For overlay */
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.perspective-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s ease;
    filter: sepia(20%) contrast(1.1) brightness(0.9);
    /* Cinematic filter */
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(2, 44, 34, 0.9) 0%,
            rgba(2, 44, 34, 0.3) 30%,
            transparent 100%);
    pointer-events: none;
}

.glass:hover .perspective-image img {
    transform: scale(1.05);
    filter: sepia(0%) contrast(1.2) brightness(1);
    /* Reveal true colors on hover */
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-details {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.detail-item a {
    color: #fff;
    text-decoration: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #fff;
}

input,
textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    color: #fff;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.full-width {
    width: 100%;
}

footer {
    text-align: center;
    padding: 3rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    /* Max Z-Index for safety */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    /* Darker background for better focus */
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 800px;
    width: 90%;
    margin: auto;
    animation: zoomIn 0.3s ease;
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    border-radius: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: var(--accent-color);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animations using Intersection Observer class */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }

    h1 {
        font-size: 3rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .perspective-content {
        flex-direction: column-reverse;
    }

    nav {
        display: none;
        /* Simple hide for mobile for now, can be expanded to burger if requested */
    }
}

/* Disabled Button State */
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #475569;
    /* Slate 600 */
    color: #94a3b8;
    /* Slate 400 */
    pointer-events: all;
    /* Ensure we can catch clicks */
}

.btn.disabled:hover {
    box-shadow: none;
    transform: none;
}

/* Tooltip */
.validation-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ef4444;
    /* Red 500 */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 50;
}

.validation-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #ef4444 transparent transparent transparent;
}

/* LANDING PAGE STYLES */
.landing-body {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.split-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

.split {
    position: relative;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.3s;
}

.split:hover {
    background: rgba(255, 255, 255, 0.02);
}

.left-split {
    border-right: 1px solid transparent;
}

/* Divider Line */
.divider-line {
    position: absolute;
    left: 50%;
    top: 25vh;
    /* Spacing from top */
    bottom: 25vh;
    /* Spacing from bottom */
    width: 2px;
    /* Thicker */
    background: rgba(255, 255, 255, 0.2);
    /* Make it subtle */
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
}

/* Logo Styles */
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-img {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 50%;
    /* Circle crop */
    border: 1px solid var(--glass-border);
}

/* The Content (PERSONAL / BUSINESS) */
.split .content {
    z-index: 2;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.split h2 {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    transition: color 0.3s, transform 0.3s;
}

.split:hover h2 {
    color: #fff;
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}


/* SEVERANCE Background Text Logic */
.bg-text-container {
    position: absolute;
    top: 50%;
    /* We will center the text based on the viewport, not the container */
    left: 0;
    width: 100vw;
    /* Occupy full viewport width effectively */
    height: 200px;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    /* Behind content */
    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.6s ease;
}

/* 
   Since .split is width: 50%, the .bg-text-container inside it needs to be shifted
   to align with the viewport center.
*/
.left-split .bg-text-container {
    left: 0;
    /* It's already at left 0 of the left split (which is 0 of viewport) */
}

.right-split .bg-text-container {
    left: -50vw;
    /* Shift it back left by 50vw so its center aligns with viewport center */
}

.bg-text {
    font-size: 15vw;
    /* Huge font */
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    /* Very subtle base visibility? Or completely hidden? User said "slightly visible... way bigger" */
    /* User said: "if cursor is far... nothing will be visible" */
    /* So default is invisible or barely there. let's go with invisible (opacity on container) */
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.05em;
}

/* Reveal on Hover */
.split:hover .bg-text-container {
    opacity: 1;
    /* Fade in the container */
}

.split:hover .bg-text {
    color: rgba(255, 255, 255, 0.04);
    /* Slightly visible when hovered */
}


.validation-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* SEO Footer */
.seo-footer {
    font-size: 0.6rem;
    color: var(--glass-border);
    margin-top: 2rem;
    opacity: 0.3;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    pointer-events: none;
    line-height: 1.4;
}