/* ======== VARIABLES ======== */
:root {
    --bg-color: #060907; /* Very deep green/black */
    --accent-green: #00ff66;
    --accent-green-dim: rgba(0, 255, 102, 0.2);
    --text-main: #f0f0f0;
    --text-muted: #8c9691;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    --font-heading: 'Syncopate', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* ======== RESET & BASE ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-green);
}

/* ======== BACKGROUND EFFECTS ======== */
.glow-bg {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 102, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    z-index: -2;
    pointer-events: none;
}
.top-left {
    top: -200px;
    left: -200px;
}
.bottom-right {
    bottom: -200px;
    right: -200px;
}

.grid-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

/* ======== TYPOGRAPHY ======== */
h1, h2, h3, h4, h5 {
    font-weight: 500;
}
a {
    text-decoration: none;
    color: inherit;
}

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

.section-spacing {
    margin-bottom: 120px;
}

.line {
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-green), transparent);
    margin-bottom: 15px;
    opacity: 0.6;
}

/* ======== HEADER ======== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    margin-bottom: 50px;
}

.pill-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 24px 8px 8px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.pill-btn:hover {
    border-color: rgba(0, 255, 102, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 102, 0.1);
}

.nav-btn .icon-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
}

.nav-btn .icon-circle:not(.icon-green) {
    background: var(--accent-green);
    color: var(--bg-color);
}

.nav-btn .icon-green {
    background: transparent;
    color: var(--accent-green);
    border: 1px solid var(--glass-border);
}

/* ======== HERO SECTION ======== */
.hero {
    position: relative;
    padding-top: 40px;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.hero-title-box h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    letter-spacing: 1px;
    color: #e0e0e0;
}

.hero-intro-box {
    max-width: 350px;
    text-align: right;
}

.hero-intro-box p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}
.hero-intro-box .highlight {
    color: #fff;
    font-weight: 500;
}

.hero-center {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -80px; /* Pull up to overlap with top text */
    height: 600px;
}

.avatar-container {
    z-index: 5;
    width: 450px;
    height: auto;
    filter: drop-shadow(0px 20px 40px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
}

.avatar {
    width: 100%;
    height: auto;
    object-fit: contain;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.big-name-bg {
    position: absolute;
    bottom: 50px;
    text-align: center;
    z-index: 4;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.small-title {
    color: var(--accent-green);
    letter-spacing: 10px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: -10px;
    z-index: 6;
    text-transform: uppercase;
}

.massive-text {
    font-family: var(--font-heading);
    font-size: 10rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4); /* Almost solid, maybe metallic */
    background: linear-gradient(180deg, #ffffff 0%, #444444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
    line-height: 1;
    text-transform: uppercase;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.tools-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: -30px;
    z-index: 6;
    font-size: 2.5rem;
    opacity: 0.7;
}

.tools-row i {
    transition: all 0.3s;
    filter: grayscale(100%) brightness(0.6);
}
.tools-row i:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

/* ======== ABOUT SECTION ======== */
.about {
    max-width: 900px;
}

.about h2 {
    font-size: 2.2rem;
    line-height: 1.4;
    margin-bottom: 25px;
    color: #fff;
    font-weight: 400;
}

.about p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.faded-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    font-size: 2.5rem;
    color: var(--glass-border);
    margin-top: 60px;
    opacity: 0.3;
}

/* ======== BENTO LAYOUT SECTIONS ======== */
.bento-sections {
    max-width: 1000px;
    margin: 0 auto;
}

/* Wireframe Headers */
.wireframe-header {
    border: 1px dashed var(--accent-green);
    display: inline-block;
    padding: 10px 20px;
    position: relative;
    margin-bottom: 30px;
}

.wireframe-header h3 {
    font-size: 1.5rem;
    color: var(--accent-green);
    letter-spacing: 1px;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.cursor-triangle {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 0; 
    height: 0; 
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid var(--text-main);
    transform: rotate(135deg);
}

.center-header {
    display: flex;
    justify-content: center;
    margin: 0 auto 40px auto;
    width: fit-content;
}

/* Two Column Layout (Education & Exp) */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

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

.timeline-item {
    display: flex;
    gap: 20px;
}

.timeline-item .year {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    min-width: 70px;
    line-height: 1.4;
}

.timeline-item .info h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 5px;
}

.timeline-item .info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Software Skills */
.skills-section {
    margin-bottom: 80px;
    text-align: center;
}

.outline-icons-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.outline-icon {
    width: 60px;
    height: 70px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    transition: all 0.3s;
    background: var(--glass-bg);
}

.outline-icon:hover {
    border-color: var(--accent-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--accent-green-dim);
}

/* Bento Contact Secton */
.contact-bento-section {
    margin-bottom: 80px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 160px);
    gap: 20px;
}

.bento-card {
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

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

/* Specific Bento Cards */
.bento-email {
    grid-column: span 2;
    background: #ffffff;
    color: #000;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}
.bento-email i { font-size: 1.8rem; color: #4285F4; }

.bento-linkedin {
    grid-column: span 1;
    background: #e9ecef;
    color: #000;
}
.bento-linkedin .in-icon { font-size: 2rem; color: #0077b5; margin-bottom: 10px; }
.bento-linkedin h4 { font-size: 1.2rem; margin-bottom: 5px; }
.bento-linkedin p { font-size: 0.8rem; opacity: 0.7; }

.bento-github {
    grid-column: span 1;
    grid-row: span 2;
    background: linear-gradient(135deg, #1db954, #00ff66); /* using neon green to tie to theme */
    color: #000;
    justify-content: space-between;
}
.bento-github i { font-size: 2.5rem; margin-bottom: 15px; }
.bento-github h4 { font-size: 1.2rem; font-weight: 600; line-height: 1.4; margin-bottom: 20px; }
.bento-btn {
    background: #000;
    color: #00ff66;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    align-self: flex-start;
}

.bento-x {
    grid-column: span 1;
    background: #111;
    border: 1px solid var(--glass-border);
    color: #fff;
    align-items: center;
    text-align: center;
}
.bento-x i { font-size: 2rem; margin-bottom: 10px; }
.bento-x span { font-weight: 600; font-size: 0.9rem; }

.bento-image {
    grid-column: span 1;
    background-size: cover;
    background-position: center;
    align-items: flex-start;
    justify-content: flex-end;
}
.bento-tag {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.bento-dev {
    grid-column: span 2;
    background: #111;
    border: 1px solid var(--glass-border);
    color: #fff;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}
.bento-dev i { font-size: 2.5rem; }
.bento-dev h4 { font-size: 1.3rem; margin-bottom: 5px; }
.bento-dev p { font-size: 0.9rem; opacity: 0.7; }

/* ======== RESPONSIVE ======== */
@media (max-width: 900px) {
    .massive-text { font-size: 6rem; }
    .hero-center { height: 400px; }
    .avatar-container { width: 300px; }
    .two-col-layout { grid-template-columns: 1fr; gap: 40px; }
    .bento-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .bento-github { grid-row: span 1; grid-column: span 2; }
    .bento-email, .bento-dev { grid-column: span 2; }
}

@media (max-width: 768px) {
    .navbar { display: none; }
    .hero-top { flex-direction: column; gap: 20px; text-align: center; }
    .line { margin: 0 auto 15px auto; }
    .hero-intro-box { text-align: center; margin: 0 auto; }
    .massive-text { font-size: 4rem; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-email, .bento-dev, .bento-linkedin, .bento-x, .bento-image, .bento-github { grid-column: 1; }
}

/* ======== FOOTER ======== */
.site-footer {
    position: relative;
    background: #0d120f; /* Slightly lighter than pure background for contrast */
    border-radius: 40px;
    padding: 60px 60px 30px 60px;
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    position: relative;
    z-index: 2;
    margin-bottom: 150px; /* space for massive text */
}

/* Columns */
.brand-col {
    max-width: 250px;
}
.brand-col .brand-desc {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
    color: #fff;
    font-family: var(--font-body);
}

.footer-heading {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 500;
}

.links-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.links-col a {
    color: var(--text-main);
    font-size: 0.95rem;
    transition: color 0.3s;
}
.links-col a:hover {
    color: var(--accent-green);
}

.social-col {
    max-width: 300px;
}
.social-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-main);
    transition: all 0.3s ease;
}
.social-pill i {
    color: var(--text-muted);
}
.social-pill:hover {
    background: rgba(255, 255, 255, 0.08); border-color: rgba(255,255,255,0.2);
}
.social-pill:hover i {
    color: var(--accent-green);
}

.action-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 280px;
}

.action-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s;
}
.action-card:hover {
    border-bottom-color: var(--accent-green);
}
.action-card h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 4px;
    transition: color 0.3s;
}
.action-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.action-card .action-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    transition: background 0.3s;
}

/* Primary Action distinct styling */
.action-card.primary-action h4 {
    color: #ff8c00; /* Matching the orange CTA in previous themes */
}
.action-card.primary-action .action-icon {
    background: #ff8c00;
    color: #fff;
}
.action-card:hover.primary-action .action-icon { transform: translateX(5px); }
.action-card:hover.secondary-action .action-icon { background: #333; transform: translateX(5px); }


/* Massive Text Background */
.footer-massive-text {
    position: absolute;
    bottom: 50px;
    left: -2%;
    width: 104%;
    font-size: 26vw;
    font-weight: 700;
    line-height: 0.75;
    color: #1a221d; /* Slightly lighter than footer bg to make it pop subtly */
    text-transform: lowercase;
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    letter-spacing: -10px;
}

/* Footer Bottom info */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.05); /* very faint */
    padding-top: 20px;
}
.fb-left .dot-separator {
    margin: 0 10px;
    opacity: 0.5;
}
.fb-left a:hover {
    color: var(--text-main);
}

.fb-right {
    display: flex;
    gap: 15px;
}
.fb-right i {
    margin-left: 5px;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-top { flex-wrap: wrap; }
    .footer-massive-text { font-size: 30vw; }
}

@media (max-width: 768px) {
    .site-footer { padding: 40px 30px 20px 30px; }
    .footer-top { flex-direction: column; gap: 40px; margin-bottom: 100px; }
    .action-col { width: 100%; }
    .footer-massive-text { font-size: 35vw; bottom: 80px; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}
