@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700;900&display=swap');

:root {
    /* Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --bg-card-dark: #151515;
    --bg-card-white: #ffffff;
    
    --text-primary: #ffffff;
    --text-secondary: #998f8f;
    --text-dark: #151312;
    
    --accent-orange: #FF5733;
    --accent-lime: #b5e61d;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --nav-bg: rgba(10, 10, 10, 0.8);
    --modal-bg: #111;
    --modal-overlay: rgba(0, 0, 0, 0.9);
    --btn-primary-bg: #fff;
    --btn-primary-text: #000;
    --btn-secondary-bg: rgba(255, 255, 255, 0.05);
    
    --card-hover-bg: #1a1a1a;
    --close-btn-bg: rgba(255, 255, 255, 0.05);

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --container-width: 1300px;
    --sidebar-width: 400px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-theme="light"] {
    --bg-primary: #f5f5f7;
    --bg-secondary: #e5e5ea;
    --bg-card-dark: #ffffff;
    --bg-card-white: #ffffff;
    
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-dark: #1d1d1f;
    
    --border-color: rgba(0, 0, 0, 0.1);

    --nav-bg: rgba(255, 255, 255, 0.8);
    --modal-bg: #ffffff;
    --modal-overlay: rgba(255, 255, 255, 0.9);
    --btn-primary-bg: #000;
    --btn-primary-text: #fff;
    --btn-secondary-bg: rgba(0, 0, 0, 0.05);

    --card-hover-bg: #f5f5f7;
    --close-btn-bg: rgba(0,0,0,0.05);

    /* Specific overrides for light mode */
    --profile-bg: #001f3f; /* Dark Blue */
    --profile-text: #ffffff;
    --hero-shadow-color: rgba(0, 0, 0, 0.05);
    --terminal-item-bg: #151515;
    --terminal-item-text: #ffffff;
    --active-tile-highlight: #2a2a2a;
    --active-tile-text: #ffffff;
    --active-tile-border: var(--accent-orange);
}

:root {
    --profile-bg: var(--bg-card-white);
    --profile-text: var(--text-dark);
    --hero-shadow-color: rgba(255, 255, 255, 0.1);
    --terminal-item-bg: var(--bg-card-dark);
    --terminal-item-text: var(--text-primary);
    --active-tile-highlight: #ffffff;
    --active-tile-text: #000000;
    --active-tile-border: #ffffff;
}


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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.nav-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 12px 30px;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
    transform: scale(1.1);
}

/* Main Layout Structure */
main {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    gap: 80px;
    padding: 160px 20px 100px;
}

/* Sidebar (Left Profile Card) */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

.sticky-wrapper {
    position: sticky;
    top: 40px;
}

.profile-card {
    background: var(--profile-bg);
    border-radius: 32px;
    padding: 40px;
    color: var(--profile-text);
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: var(--transition-smooth);
}

.profile-portrait {
    background: var(--accent-orange);
    border-radius: 20px;
    width: 100%;
    aspect-ratio: 1/1.2;
    overflow: hidden;
    position: relative;
}

.profile-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: luminosity; /* Replicating that B&W look with orange bg */
}

.profile-info h1 {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.fire-status {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px dashed #ddd;
    border-bottom: 1px dashed #ddd;
    padding: 20px 0;
    margin: 10px 0;
}

.fire-icon {
    background: var(--accent-orange);
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.status-text {
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
}

.profile-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 10px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.social-btn:hover {
    background: var(--accent-orange);
    color: var(--text-primary);
    border-color: var(--accent-orange);
}

/* Content Area (Right Side) */
.content-area {
    flex-grow: 1;
}

/* Background Typography Section */
.hero-text-bg {
    margin-bottom: 60px;
}

.bg-title-stack {
    position: relative;
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
}

.bg-title-stack .title-main {
    font-size: 110px;
    color: var(--text-primary);
    letter-spacing: -2px;
}

.bg-title-stack .title-shadow {
    position: absolute;
    top: 40px;
    left: 0;
    font-size: 110px;
    color: var(--hero-shadow-color);
    z-index: -1;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 480px;
    margin-top: 30px;
}

/* Stats Section */
.stats-grid {
    display: flex;
    gap: 60px;
    margin: 80px 0;
}

.stat-item h2 {
    font-size: 4rem;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -2px;
}

.stat-item p {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Featured Bento Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    gap: 20px;
    margin-bottom: 60px;
}

.f-card {
    border-radius: 24px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    text-decoration: none;
}

.f-card.about { 
    grid-column: span 1; 
    grid-row: span 2; 
    height: 100%;
}

.f-card.projects { 
    grid-column: span 2; 
    grid-row: span 1; 
}

.f-card.apps { 
    grid-column: span 1; 
    grid-row: span 1; 
}

.f-card.roms { 
    grid-column: span 1; 
    grid-row: span 1; 
}

.f-card.orange { background: var(--accent-orange); }
.f-card.lime { background: #6b8e23; } /* Olive green */
.f-card.blue { background: #33a1ff; }
.f-card.purple { background: #a133ff; }

.f-card, .f-card * {
    color: #fff !important;
}

.f-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin-top: 5px;
}

.f-card p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 10px;
    line-height: 1.4;
}

.f-card.about h3 {
    font-size: 2rem;
}

.f-card.projects h3 {
    font-size: 1.8rem;
    max-width: 90%;
}

.f-card .icon-arrow {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    z-index: 2;
}

.f-card:hover {
    transform: translateY(-5px);
}

.f-card:hover .icon-arrow {
    background: #fff;
    color: #000;
    transform: translateX(5px);
    border-color: #fff;
}

.f-card.lime:hover .icon-arrow {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Projects Section */
.section-header {
    margin-top: 120px;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-item {
    background: var(--terminal-item-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    color: var(--terminal-item-text);
}

.project-item:hover {
    background: var(--active-tile-highlight);
    border-color: var(--active-tile-border);
    transform: scale(1.01);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.project-item:hover .project-meta h3,
.project-item:hover .project-meta p,
.project-item:hover .project-meta span {
    color: var(--active-tile-text) !important;
}

.project-meta h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: inherit;
}

.project-meta p {
    color: var(--text-secondary);
}

.project-arrow {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--btn-secondary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.project-item:hover .project-arrow {
    background: var(--accent-orange) !important;
    color: #fff !important;
    border-color: var(--accent-orange) !important;
    transform: rotate(-45deg);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* Responsive */
@media (max-width: 1100px) {
    main {
        flex-direction: column;
        padding-top: 100px;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .sticky-wrapper {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .bg-title-stack .title-main, 
    .bg-title-stack .title-shadow {
        font-size: 60px;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .stats-grid {
        flex-direction: column;
        gap: 30px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: min-content;
    }

    .f-card.about, .f-card.projects, .f-card.apps, .f-card.roms {
        grid-column: span 1;
        grid-row: span 1;
        height: 240px;
    }
}
/* Modal System */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--modal-overlay);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--modal-bg);
    border: 1px solid var(--border-color);
    max-width: 900px;
    width: 100%;
    border-radius: 40px;
    position: relative;
    padding: 60px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes modalSlideIn {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

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

.modal-header {
    margin-bottom: 30px;
}

.modal-tag {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: inline-block;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.modal-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

.modal-links {
    margin-top: 50px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 14px 30px;
    border-radius: 100px;
    background: #fff;
    color: #000;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.modal-btn:hover {
    transform: scale(1.05);
    background: var(--accent-orange);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 30px;
        border-radius: 24px;
    }
    .modal-title {
        font-size: 2rem;
    }
}
