/* Core Variables */
:root {
    --bg-main: #09090b;
    --bg-alt: #121214;
    --surface: #18181b;
    --border: #27272a;
    --accent: #38bdf8; 
    --accent-hover: #0ea5e9;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
    display: inline-block;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 0.5rem;
}

/* Typography & Layout */
p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
}

.hero-content h1 {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 800px;
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #000;
}

.btn-secondary {
    border: 1px solid var(--border);
    color: var(--text-primary);
    margin-left: 1rem;
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
}

/* Timeline */
.timeline {
    border-left: 2px solid var(--border);
    padding-left: 2rem;
    margin-left: 1rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.45rem;
    top: 0.4rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--accent);
}

.timeline-content h4 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.timeline-content h5 {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-content .date {
    float: right;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.timeline-content ul {
    margin-top: 1rem;
    padding-left: 1.2rem;
    color: var(--text-secondary);
}

.timeline-content li {
    margin-bottom: 0.5rem;
}

/* Two Column Layout (Press & Certs) */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 768px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

.press-card, .cert-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.press-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.press-card h4, .cert-card h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cert-date {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent);
    margin: 0.5rem 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tags span {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);

    color: var(--text-secondary);
}

/* --- Dropdown Navigation Styling --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: var(--surface);
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    border-radius: 6px;
    z-index: 1;
    top: 150%; /* Pushes it slightly below the header */
    left: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown-content a {
    color: var(--text-secondary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--bg-alt);
    color: var(--accent);
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.caret {
    font-size: 0.8em;
    margin-left: 4px;
}

/* --- Selected Works Card Grid --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.work-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    overflow: hidden;
}

.work-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.1); /* Subtle blue glow */
}

.work-card-content {
    padding: 2rem;
}

.user-metric {
    display: inline-block;
    color: var(--bg-main);
    background-color: var(--accent);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.work-card h4 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.work-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.work-card-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    background-color: rgba(0,0,0,0.2);
}

.btn-text {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-text:hover {
    color: var(--text-primary);
}


/* --- Dynamic Role Lists within Cards --- */
.project-roles {
    list-style: none;
    margin: 1.5rem 0;
    padding: 1rem 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
}

.project-roles li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.project-roles li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.role-name {
    color: var(--text-primary);
    font-weight: 500;
}

.role-duration {
    color: var(--accent);
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.8rem;
    background: rgba(56, 189, 248, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* --- Premium Footer Redesign --- */
.site-footer {
    background-color: var(--surface);
    border-top: 1px solid var(--border);
        padding-top: 3rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Bio Section (Left Side) */
.footer-brand {
    flex: 1;
    max-width: 400px;
}

.footer-brand h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Minimalist Social Icons */
.social-icons {
    display: flex;
    gap: 1.2rem;
}

.social-icons a {
    color: var(--text-secondary);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.footer-links-group {
    display: flex;
    gap: 4rem;
    flex: 2;
    justify-content: flex-end; 
}

.footer-column {
    text-align: left; 
}

.footer-column h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 1rem;
}

.footer-column a, .footer-column span {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--text-primary);
}

/* Footer Bottom Bar */
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center !important;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .footer-top {
        flex-direction: column;
        gap: 3rem;
    }
    
    .footer-links-group {
        justify-content: space-between;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .footer-links-group {
        flex-direction: column;
        gap: 2.5rem;
    }
}

.footer-bottom-bar {
    background-color: rgba(9, 9, 11, 0.85);
    border-top: 1px solid #111; 
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 2rem;
    width: 100%;
}

.footer-bottom-bar p {
    margin: 0;
    color: #888; 
    letter-spacing: 0.5px;
}

/* --- Blog Card Specifics --- */
.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
    font-family: 'SFMono-Regular', Consolas, monospace;
    color: var(--text-secondary);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 0.8rem;
}

.blog-meta time {
    color: var(--accent);
}

.read-time {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.blog-card h4 {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.blog-card p {
    color: #d4d4d8; 
    font-size: 0.95rem;
}


/* =========================================
   MOBILE OVERRIDES (Phones & Small Tablets)
   ========================================= */
@media (max-width: 768px) {
    
    /* --- 1. Navbar Size Reduction --- */
    header, .navbar, nav {
        padding: 10px 15px !important; 
        min-height: auto !important;
    }
    
    .logo, .site-title, .navbar-brand { 
        font-size: 1rem !important; 
        margin: 0 !important;
    }

    nav ul {
        gap: 12px !important; 
    }

    .nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
}

    .hero-actions { 
        display: none !important;
    }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

    nav a {
        font-size: 0.85rem !important; 
        padding: 5px !important;
    }

    .hidden, .fade-in, .reveal, .scroll-anim {
        transform: translateY(20px) !important; 
    }
}


