/* 
   Modern 2026 Personal Branding Portfolio
   Vanilla CSS - No Frameworks
*/

/* --- Root Variables & Theme --- */
:root {
    /* Colors - Dark Mode (Default) */
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #ffffff;
    --accent-secondary: #333333;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: #1a1a1a;
    --hover-bg: #252525;
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', sans-serif;
    
    /* Spacing & Sizing */
    --container-width: 1200px;
    --section-padding: 100px 0;
    --transition-smooth: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f8;
    --text-primary: #0a0a0a;
    --text-secondary: #666666;
    --accent-primary: #0a0a0a;
    --accent-secondary: #e0e0e0;
    --border-color: rgba(0, 0, 0, 0.1);
    --card-bg: #ffffff;
    --hover-bg: #f0f0f0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

ul {
    list-style: none;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: var(--section-padding);
}

.bg-alt {
    background-color: var(--bg-secondary);
}

/* --- Components --- */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

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

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

.btn-text {
    background: none;
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    border-bottom: 1px solid var(--accent-primary);
}

.text-link {
    font-weight: 600;
    border-bottom: 1px solid transparent;
}

.text-link:hover {
    border-bottom-color: var(--accent-primary);
}

.placeholder-image {
    background-color: var(--accent-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-radius: 8px;
    aspect-ratio: 16/9;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background-color: var(--bg-primary);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

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

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

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

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-tagline strong {
    color: var(--text-primary);
}

.hero-ctas {
    display: flex;
    gap: 1rem;
}

.profile-placeholder {
    aspect-ratio: 1/1;
    border-radius: 50%;
    max-width: 400px;
    margin: 0 auto;
}

/* --- Section Headers --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
}

.section-header p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* --- Snapshot Section --- */
.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.snapshot-card {
    padding: 2.5rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.snapshot-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
}

.icon-placeholder {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.snapshot-card h3 {
    margin-bottom: 0.75rem;
}

.snapshot-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.service-card:hover {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* --- Work Grid --- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.work-card {
    cursor: pointer;
}

.work-image {
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.work-card:hover .work-image {
    transform: scale(0.98);
}

.work-info .category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.work-info h3 {
    margin-bottom: 0.5rem;
}

.work-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Writing Section --- */
.writing-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.writing-item {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
}

.writing-item .date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Philosophy --- */
.philosophy-quote {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.3;
}

/* --- Social Proof --- */
.logos-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 5rem;
    opacity: 0.5;
}

.logo-placeholder {
    font-weight: 800;
    font-size: 1.2rem;
}

.testimonial-card {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-card p {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-card cite {
    font-style: normal;
    font-weight: 600;
    color: var(--text-secondary);
}

/* --- CTA Section --- */
.cta-box {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    padding: 5rem;
    text-align: center;
    border-radius: 20px;
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

/* --- Footer --- */
.footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.footer-socials {
    display: flex;
    gap: 2rem;
}

.social-link {
    font-weight: 600;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* --- About Page Specific --- */
.page-header {
    padding-top: 150px;
    text-align: center;
}

.page-header h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.bio-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.bio-image {
    aspect-ratio: 4/5;
}

.bio-text h2 {
    margin-bottom: 1.5rem;
}

.bio-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 1px;
    background-color: var(--border-color);
}

.timeline-item {
    padding-left: 3rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    width: 9px;
    height: 9px;
    background-color: var(--accent-primary);
    border-radius: 50%;
}

.timeline-year {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-tag {
    padding: 0.5rem 1.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.9rem;
}

/* --- Work Page Specific --- */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

/* --- Writing Page Specific --- */
.writing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.article-card {
    display: flex;
    flex-direction: column;
}

.article-image {
    margin-bottom: 1.5rem;
}

.article-content .date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.article-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.article-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* --- Contact Page Specific --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
}

.info-item {
    margin-bottom: 3rem;
}

.info-item h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.info-item p {
    font-size: 1.5rem;
    font-weight: 600;
}

.social-links-large {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.form-group input, .form-group textarea {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

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

.form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    background-color: var(--bg-primary);
    margin: 5% auto;
    padding: 3rem;
    width: 80%;
    max-width: 900px;
    border-radius: 12px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 2rem;
    cursor: pointer;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-text {
    animation: fadeInUp 1s ease forwards;
}

/* --- Responsive Design - IMPROVED --- */
@media (max-width: 1024px) {
    :root {
        --container-width: 960px;
    }
    
    .container {
        padding: 0 1.5rem; /* Reduced from 2rem */
    }
    
    .hero .container, .bio-content, .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem; /* Reduced gap */
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 80px; /* Adjusted padding */
    }
    
    .hero-visual {
        order: -1;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .work-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Reduced from 400px */
    }
}

@media (max-width: 768px) {
    :root {
        --container-width: 100%;
        --section-padding: 50px 0; /* Reduced padding */
        --transition-smooth: all 0.3s ease; /* Faster transitions on mobile */
    }
    
    .container {
        padding: 0 1rem; /* Further reduced for mobile */
    }
    
    /* Navigation fixes */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-primary);
        padding: 2rem;
        flex-direction: column;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-actions {
        gap: 1rem;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Hero section */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem; /* Reduced from 3.5rem */
        line-height: 1.1;
    }
    
    .hero-tagline {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .hero-ctas {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Section headers */
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    /* Grid layouts */
    .snapshot-grid, .services-grid, .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* More columns on mobile */
        gap: 1.5rem;
    }
    
    .work-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 2rem;
    }
    
    .writing-grid {
        grid-template-columns: 1fr;
    }
    
    /* Cards and content */
    .snapshot-card, .service-card, .value-card {
        padding: 1.5rem; /* Reduced padding */
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .work-info h3 {
        font-size: 1.25rem;
    }
    
    .work-info p {
        font-size: 0.9rem;
    }
    
    /* Philosophy */
    .philosophy-quote {
        font-size: 1.5rem;
        padding: 0 1rem;
    }
    
    /* CTA Section */
    .cta-box {
        padding: 2.5rem 1.5rem;
    }
    
    .cta-box h2 {
        font-size: 1.75rem;
    }
    
    .cta-box p {
        font-size: 1rem;
    }
    
    /* Footer fixes */
    .footer-top {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    
    .footer-brand, .footer-socials {
        width: 100%;
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    /* About page */
    .page-header {
        padding-top: 100px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .bio-content {
        gap: 2.5rem;
    }
    
    .timeline::before {
        left: 1rem;
    }
    
    .timeline-item {
        padding-left: 3.5rem;
    }
    
    .timeline-item::after {
        left: 0.5rem;
    }
    
    /* Writing page */
    .writing-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-bottom: 1.5rem;
    }
    
    .writing-item .date {
        text-align: left;
    }
    
    /* Contact page */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .info-item {
        margin-bottom: 2rem;
    }
    
    .info-item p {
        font-size: 1.25rem;
    }
    
    /* Form */
    .contact-form {
        gap: 1.5rem;
    }
    
    .form-group input, .form-group textarea {
        padding: 0.75rem;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        padding: 2rem 1.5rem;
        margin: 20px auto;
    }
    
    .close-modal {
        right: 1rem;
        top: 1rem;
        font-size: 1.5rem;
    }
}

/* Extra small devices (phones) */
@media (max-width: 480px) {
    :root {
        --section-padding: 40px 0;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .philosophy-quote {
        font-size: 1.3rem;
    }
    
    .cta-box h2 {
        font-size: 1.5rem;
    }
    
    .footer-bottom {
        font-size: 0.75rem;
        padding-top: 1.5rem;
    }
    
    .nav-links {
        padding: 1.5rem;
    }
    
    .mobile-menu-btn span {
        width: 20px;
    }
}

@media (max-width: 768px) {
  .work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0rem;
    padding: 0 1rem;
    align-items: center;
  }
}
.explore-resources {
  display: flex;
  justify-content: center; /* centers horizontally */
  align-items: center;     /* centers vertically if container has height */
  margin: 1rem 0;          /* optional spacing top & bottom */
  width: 90%;             /* ensures full width for centering */
  text-align: center;      /* fallback for inline elements */
  padding-left: 10px;
}