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

/* ===========================
   CSS VARIABLES & THEME
=========================== */
:root {
    /* Muted, elegant dark theme */
    --bg-dark: #0f172a;      /* Slate 900 */
    --bg-surface: #1e293b;   /* Slate 800 */
    --bg-card: #1e293b;
    --bg-card-hover: #334155;/* Slate 700 */
    
    /* Elegant Accents */
    --accent-primary: #38bdf8;   /* Light Blue */
    --accent-secondary: #818cf8; /* Indigo */
    
    /* Text */
    --text-primary: #f8fafc;   /* Slate 50 */
    --text-secondary: #94a3b8; /* Slate 400 */
    --text-muted: #64748b;     /* Slate 500 */
    
    /* Borders */
    --border-light: #334155;   /* Slate 700 */
    --border-hover: #475569;   /* Slate 600 */
    
    /* Metrics */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.25s ease-in-out;
}

/* ===========================
   GLOBAL STYLES
=========================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    margin-bottom: 50px;
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--accent-primary);
    border-radius: 4px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.section-title p {
    color: var(--text-secondary);
    margin-top: 8px;
    font-size: 1.05rem;
}

/* Buttons */
.primary-btn, .secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

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

.primary-btn:hover {
    background: #7dd3fc;
    transform: translateY(-2px);
}

.secondary-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.secondary-btn:hover {
    border-color: var(--text-secondary);
    background: var(--bg-surface);
    transform: translateY(-2px);
}

/* ===========================
   NAVIGATION
=========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: var(--bg-dark);
    transition: var(--transition);
    z-index: 1000;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 15px 5%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-family: 'JetBrains Mono', monospace, 'Inter';
}

.logo-symbol { color: var(--text-muted); }
.logo-name { color: var(--text-primary); margin-left: 2px; }
.logo-cursor {
    color: var(--accent-primary);
}

.logo:hover .logo-cursor {
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-primary);
}

.resume-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}

.resume-btn:hover {
    background: var(--bg-surface);
    border-color: var(--text-secondary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===========================
   HERO SECTION
=========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 400px;
    width: 100%;
}

.hero-greeting {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--text-secondary);
}

.hero h2 {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.hero h2 span {
    color: var(--text-muted);
    margin: 0 10px;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-social {
    display: flex;
    gap: 20px;
}

.hero-social a {
    color: var(--text-secondary);
    font-size: 1.4rem;
}

.hero-social a:hover {
    color: var(--text-primary);
}

.mobile-break {
    display: none;
}

/* ===========================
   ABOUT SECTION
=========================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
}

.about-image-gradient {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, rgba(129, 140, 248, 0.15) 0%, transparent 70%);
    z-index: 0;
    border-radius: 50%;
}

.about-image {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    background: var(--bg-surface);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.about-branding {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: var(--bg-dark);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    z-index: 2;
    font-family: 'JetBrains Mono', monospace, 'Inter';
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.about-content {
    padding-top: 10px;
}

.about-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.about-heading {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.about-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 35px;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 35px;
}

.highlight-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: var(--transition);
}

.highlight-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.hl-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hl-value.hl-text {
    font-size: 1.1rem;
}

.hl-sub {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hl-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.about-skills {
    margin-bottom: 35px;
}

.about-skills-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.about-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-skill-tags span {
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.about-skill-tags span:hover {
    border-color: var(--accent-secondary);
    color: var(--text-primary);
}

.about-focus-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--accent-secondary);
    border-radius: var(--radius-md);
    padding: 20px;
}

.focus-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.focus-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===========================
   EXPERIENCE SECTION
=========================== */
.experience-timeline {
    position: relative;
    padding-left: 30px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 8px;
    width: 2px;
    background: var(--border-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -28px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 3px solid var(--bg-dark);
}

.experience-card {
    background: transparent;
    padding: 0;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    flex-wrap: wrap;
    gap: 10px;
}

.exp-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
}

.exp-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.exp-company {
    font-size: 1rem;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 15px;
}

.exp-company span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.exp-details {
    list-style: none;
    padding-left: 0;
    color: var(--text-secondary);
}

.exp-details li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}
.exp-details li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* ===========================
   SKILLS SECTION
=========================== */
.skills-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.skill-category {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 25px;
}

.skill-category.core-cs {
    grid-column: 1 / -1;
}

.skill-category h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 600;
}

.skill-category h3 i {
    color: var(--text-secondary);
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-chip {
    padding: 6px 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.skill-chip:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

/* ===========================
   PROJECTS SECTION
=========================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

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

.featured-project {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.project-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-light);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.02);
}

.project-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-project .project-content {
    justify-content: center;
    padding: 30px;
}

.project-content h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex: 1;
    line-height: 1.5;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tags span {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    color: var(--text-secondary);
}

.project-buttons {
    display: flex;
    gap: 12px;
}

/* ===========================
   CERTIFICATIONS SECTION
=========================== */
.certifications-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.cert-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.cert-item:hover {
    border-color: var(--border-hover);
}

.cert-icon {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-top: 2px;
}

.cert-details h3 {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.cert-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===========================
   CONTACT SECTION
=========================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: var(--transition);
    font-size: 0.95rem;
}

a.contact-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.contact-card i {
    color: var(--text-secondary);
}

.contact-form {
    background: var(--bg-surface);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.form-submit {
    width: 100%;
    justify-content: center;
    padding: 12px;
}

/* ===========================
   FOOTER
=========================== */
.footer {
    background: var(--bg-dark);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-light);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'JetBrains Mono', monospace, 'Inter';
}

.footer-symbol { color: var(--text-muted); }
.footer-name { color: var(--text-primary); margin-left: 2px; }
.footer-cursor { color: var(--accent-primary); }

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h3, .footer-social h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-social a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-social a i {
    width: 20px;
    text-align: center;
}

.footer-social a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Scroll To Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 99;
}

.scroll-top.show {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

/* ===========================
   RESPONSIVENESS
=========================== */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .hero h2 { font-size: 1.5rem; }
    .hero-container { flex-direction: column-reverse; text-align: center; gap: 30px;}
    .hero-buttons { justify-content: center; }
    .hero-social { justify-content: center; }
    
    .about-container { 
        grid-template-columns: 1fr; 
        text-align: center;
    }
    .about-image-wrapper { margin: 0 auto 30px auto; }
    .about-skill-tags { justify-content: center; }
    .about-eyebrow { justify-content: center; }
    
    .featured-project {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 20px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid var(--border-light);
        z-index: 999;
    }
    
    .nav-links.show {
        transform: translateY(0);
    }
    
    .resume-btn { display: none; }
    
    .hero { padding-top: 100px; }
    .hero h1 { font-size: 2.5rem; }
    .hero h2 { font-size: 1.2rem; }
    .mobile-break { display: block; }
    
    .section-title h2 { font-size: 1.8rem; }
    
    .experience-timeline { padding-left: 20px; }
    .timeline-dot {
        left: -27px;
        width: 12px;
        height: 12px;
    }
}