/* Base Configuration & Premium Colors */
:root {
    --black: #030303;
    --gray-900: #0a0a0a;
    --gray-800: #121212;
    --gray-700: #1e1e1e;
    --text-white: #ffffff;
    --text-muted: #a1a1aa;
    --accent-glow: #ffffff;
    --border-color: rgba(255, 255, 255, 0.08);
    
    font-size: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor for custom one */
}

/* Typography Customization */
html {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--black);
    color: var(--text-white);
    scroll-behavior: smooth;
}

h1, h2, h3, h4, .mega-title, .nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
}

.fw-800 { font-weight: 800; }

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

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: exclusion;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor.active {
    width: 60px;
    height: 60px;
    background-color: var(--text-white);
    mix-blend-mode: exclusion;
}
.cursor-follower.active {
    width: 0; height: 0; border: none;
}

/* Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}
.container-sm { max-width: 800px; }
.mt-auto { margin-top: auto; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.text-center { text-align: center; }

/* Navigation */
.premium-nav {
    position: fixed;
    top: 0; width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    z-index: 1000;
    mix-blend-mode: difference;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-item {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-item:hover::after { width: 100%; }

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, rgba(3,3,3,0) 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

#donutCanvas {
    position: absolute; top: 50%; right: 5%; transform: translateY(-50%);
    width: 640px; height: 600px;
    z-index: 0; pointer-events: none; opacity: 0.15;
}
.hero-container { position: relative; z-index: 10; width: 100%; }

.hero-greeting {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-title {
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 1.1;
    padding-bottom: 0.1em;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    font-weight: 400;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}
.scroll-indicator .line {
    width: 60px; height: 1px;
    background: var(--text-muted);
    position: relative;
    overflow: hidden;
}

/* Magnetic Buttons */
.magnetic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 500;
    transition: background 0.3s;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background: var(--text-white);
    color: var(--black);
}

.primary-btn:hover { background: #e0e0e0; }

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.magnetic-btn .btn-text {
    position: relative; z-index: 2; pointer-events: none;
}

/* Section Common */
.section-title { margin-bottom: 4rem; }
.section-title h2 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; }
.glass-dark {
    background: rgba(18, 18, 18, 0.6);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Bento Grid Section */
.bento-section {
    padding: 150px 5%;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 1.5rem;
}

.bento-card {
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, transform 0.4s ease;
}

.bento-card:hover { border-color: rgba(255, 255, 255, 0.2); }

.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-square { grid-column: span 1; grid-row: span 1; }
.bento-tall { grid-column: span 1; grid-row: span 2; }
.bento-wide { grid-column: span 2; grid-row: span 1; }

/* Split Section Layout */
.split-section { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; 
    padding: 150px 5%; position: relative;
    align-items: flex-start;
}

.split-left { position: relative; height: 100%; min-height: 80vh; }
.sticky-anchor { position: sticky; top: 20vh; padding-right: 2rem;}

.stats-vertical { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 3rem;}
.stat-item {
    border: 1px solid var(--border-color); border-radius: 16px; padding: 1.5rem 2rem;
    background: rgba(18,18,18, 0.4); display: flex; align-items: center; gap: 2rem;
}
.stat-item h2 { margin: 0; font-size: 3rem; font-family: 'Space Grotesk';}

.split-right { display: flex; flex-direction: column; gap: 2rem; margin-top: 5vh; }

.about-intro { padding: 3rem; border-radius: 24px; }

/* Accordion Component */
.accordion { border-radius: 16px; overflow: hidden; margin-bottom: 1.5rem; border: 1px solid var(--border-color); transition: all 0.3s;}
.accordion.active { border-color: rgba(255,255,255,0.3); }
.accordion-header { padding: 2rem; display: flex; justify-content: space-between; align-items: center; background: rgba(18,18,18,0.6); }
.accordion-header h3 { margin: 0; display: flex; align-items: center; font-size: 1.4rem; font-family:'Space Grotesk'; font-weight:500;}
.accordion-icon { font-size: 2rem; font-weight:300; transition: transform 0.4s cubic-bezier(0.25,1,0.5,1); line-height:1;}
.accordion.active .accordion-icon { transform: rotate(45deg); color: var(--accent-glow);}

.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.25,1,0.5,1); background: rgba(10,10,10,0.8); }
.accordion-content .clean-list { padding: 1rem 2rem 2rem; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.accordion-content .clean-list li { margin: 0; }

.football-banner { display: flex; align-items: center; gap: 2rem; padding: 2rem 3rem; border-radius: 24px; }

.status-indicator {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.05); padding: 6px 12px;
    border-radius: 20px; font-size: 0.8rem; letter-spacing: 0.05em;
    margin-bottom: 1.5rem; border: 1px solid var(--border-color);
}
.pulse {
    width: 6px; height: 6px; border-radius: 50%;
    background: #00ff66;
    box-shadow: 0 0 10px #00ff66;
    animation: pulse 2s infinite;
}
.pulse.small { width: 4px; height: 4px; box-shadow: 0 0 5px #00ff66;}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.bento-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.text-dim { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }
.text-mini { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.5rem; opacity: 0.8;}

.image-card { padding: 0; border: none; }
.bg-img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(20%) contrast(1.1);
    transition: transform 0.5s ease;
}
.image-card:hover .bg-img { transform: scale(1.05); }

.card-icon { color: var(--text-white); margin-bottom: 1.5rem; }
.card-icon.large { width: 48px; height: 48px; stroke-width: 1.5; }
.center-content { align-items: center; justify-content: center; text-align: center; height: 100%; }

.clean-list { list-style: none; margin-top: 0.5rem; }
.clean-list li { margin-bottom: 0.6rem; color: var(--text-muted); font-size: 0.95rem; }

.flex-row { display: flex; flex-direction: row; justify-content: space-between; align-items: center; height: 100%; gap: 1rem; }
.text-glow { font-size: 2rem; margin-bottom: 0.2rem; text-shadow: 0 0 20px rgba(255,255,255,0.3); }

/* Experience & List Sections */
.list-section { padding: 100px 5%; }
.interactive-list { display: flex; flex-direction: column; gap: 1.5rem; }
.list-item {
    border-radius: 16px; padding: 2.5rem;
    transition: border-color 0.4s ease, transform 0.4s ease, background 0.4s ease;
}
.list-item:hover { border-color: rgba(255, 255, 255, 0.2); background: rgba(30, 30, 30, 0.4); }

.list-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 1.5rem;
}
.role { font-size: 1.5rem; font-family: 'Space Grotesk'; margin-bottom: 0.3rem;}
.company { font-size: 1.1rem; color: var(--text-muted); font-weight: 500;}
.date { font-family: 'Space Grotesk'; font-size: 0.9rem; color: var(--text-muted); letter-spacing: 0.05em;}

.bullet-list { margin-left: 1.2rem; margin-top: 1rem; }
.bullet-list li { margin-bottom: 0.5rem; line-height: 1.6; }

/* Certifications Container */
.certs-container { padding: 2.5rem; border-radius: 24px; margin-top: 2rem;}
.certs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;}
.cert-item { display:flex; align-items:center; gap: 10px; font-size: 0.95rem; color: var(--text-muted);}

/* Projects Section */
.projects-section { padding: 100px 5%; }
.stacking-cards-container { padding-bottom: 5rem; }

.stack-card {
    position: sticky;
    top: 15vh;
    height: 70vh;
    border-radius: 30px;
    margin-bottom: 2rem;
    overflow: hidden;
    display: flex;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.5);
    transition: transform 0.4s ease;
}

.stack-card:nth-child(1) { top: 12vh; z-index: 10; transform: scale(1); }
.stack-card:nth-child(2) { top: 15vh; z-index: 20; }
.stack-card:nth-child(3) { top: 18vh; z-index: 30; }
.stack-card:nth-child(4) { top: 21vh; z-index: 40; }
.stack-card:nth-child(5) { top: 24vh; z-index: 50; }

.stack-img-wrapper {
    flex: 1; position: relative; overflow: hidden;
}
.stack-img-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.6) contrast(1.2);
}
.img-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to right, rgba(3,3,3,0.9), transparent);
}

.stack-content {
    flex: 1; padding: 5rem; display: flex;
    flex-direction: column; justify-content: center;
}
.stack-card.text-only .stack-content {
    flex: 1; text-align: center; align-items: center; padding: 5rem 10rem;
}

.proj-category {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-muted); margin-bottom: 1rem; display: block;
}
.proj-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.flex-header { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.tech-badges { font-family: 'Space Grotesk'; font-size: 0.85rem; border: 1px solid var(--border-color); padding: 0.3rem 0.8rem; border-radius: 20px;}

/* App Gallery Layout */
.app-gallery-section { padding: 50px 5% 150px; }
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
.app-card {
    border-radius: 36px; padding: 4rem; position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-start;
    min-height: 550px; border: 1px solid var(--border-color);
    background: radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent 60%), rgba(10,10,12,0.6);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    transition: transform 0.4s ease, border-color 0.4s ease;
}
.app-card:hover { transform: translateY(-10px); border-color: rgba(255,255,255,0.2); }
.app-content { position: relative; z-index: 2; }
.app-badge {
    display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1);
    padding: 8px 16px; border-radius: 20px; font-size: 0.85rem; font-family: 'Space Grotesk';
    margin-bottom: 2rem; border: 1px solid var(--border-color);
}
.app-card h3 { font-size: 2.5rem; margin-bottom: 1rem; line-height: 1.1; }
.app-visual {
    position: absolute; bottom: -15%; right: -10%; width: 60%; height: 60%;
    display: flex; justify-content: flex-end; align-items: flex-end; pointer-events: none; z-index: 1;
}
.device-frame {
    width: 70%; height: 120%; background: #000; border: 8px solid #333; border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8); position: relative; overflow: hidden;
    transform: rotate(-15deg); transition: transform 0.5s ease;
}
.device-frame::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 40%; height: 20px; background: #333; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; z-index: 10;
}
.app-card:hover .device-frame { transform: rotate(0deg) translateY(-20px); }
.device-glass {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%); pointer-events: none;
}

.tablet-frame {
    width: 120%; height: 80%; background: #000; border: 2px solid #333; border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8); position: relative; overflow: hidden;
    transform: rotate(-5deg) translateY(20px); transition: transform 0.5s ease;
}
.app-card:hover .tablet-frame { transform: rotate(0deg) translateY(0); }

.app-title { max-width: 60%; }
.app-desc { max-width: 45%; font-size: 1rem; }

/* Wide showcase card */
.app-card.wide {
    grid-column: span 2;
}
.app-card.wide .app-title {
    max-width: 80%;
}
.app-card.wide .app-desc {
    max-width: 55%;
}

/* Contact Section */
.contact-section { padding: 200px 5%; }
.mega-title { font-size: clamp(4rem, 10vw, 10rem); line-height: 1; margin-bottom: 1rem; }
.contact-sub { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 3rem; }
.primary-btn.large { padding: 1.5rem 4rem; font-size: 1.2rem; border-radius: 100px; }

.social-links { display: flex; justify-content: center; gap: 2rem; }
.link-hover { font-size: 1.1rem; position: relative; }
.link-hover::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px;
    background: currentColor; transition: width 0.3s ease;
}
.link-hover:hover::after { width: 100%; }

.minimal-footer {
    display: flex; justify-content: space-between;
    padding: 2rem 5%; border-top: 1px solid var(--border-color);
    color: var(--text-muted); font-size: 0.9rem;
}

/* Animations */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Responsive adjustments */
@media(max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stack-card { flex-direction: column; height: 80vh; }
    .stack-img-wrapper { flex: 0.4; }
    .img-overlay { background: linear-gradient(to top, rgba(3,3,3,0.9), transparent); }
    .stack-content { flex: 0.6; padding: 2rem; }
    .stack-card.text-only .stack-content { padding: 3rem 2rem; }
    
    #donutCanvas { right: -20%; opacity: 0.1; }
    .app-grid { grid-template-columns: 1fr; }
    .app-card { min-height: auto; padding: 3rem 2rem 0 2rem; }
    .app-card.wide { grid-column: span 1; }
    .app-visual { 
        position: relative; width: 100%; height: 260px; 
        bottom: auto; right: auto; margin-top: 2rem; 
        justify-content: center; opacity: 1; 
    }
    .device-frame, .tablet-frame {
        width: 70%; height: 100%;
        transform: rotate(0) translateY(20px) !important;
    }
    .app-card:hover .device-frame, .app-card:hover .tablet-frame {
        transform: rotate(0) translateY(0) !important;
    }
    .app-title, .app-desc { max-width: 100%; }
}

@media(max-width: 600px) {
    .bento-grid, .split-section { grid-template-columns: 1fr !important; }
    .split-left { min-height: auto; margin-bottom: 2rem; }
    .sticky-anchor { position: relative; top: 0; }
    .bento-large, .bento-tall, .bento-wide, .bento-square { grid-column: span 1 !important; grid-row: auto; }
    .cursor, .cursor-follower { display: none; } /* Disable custom cursor on mobile */
    * { cursor: auto; }
    .nav-links { display: none; }
}
