/* --- CSS Variables (Purple Theme) --- */
:root {
    --bg-main: #ffffff;
    --bg-light: #f9f9fb;
    --bg-dark: #120e26; 
    --text-main: #1a162e;
    --text-muted: #5a5770;
    --text-light: #f1f0f7;
    
    --accent-deep: #2a1e5c;   
    --accent-vibrant: #6f5392; 
    --accent-gradient: linear-gradient(135deg, #2a1e5c 0%, #6f5392 100%);
    
    --border-color: #e8e7f0;
    --card-shadow: 0 10px 30px -10px rgba(42, 30, 92, 0.1);
}

/* --- Base Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* --- Master Container --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    max-width: 1000px; 
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-deep);
    letter-spacing: -0.5px;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-vibrant);
}

/* The Vault Nav Button */
.nav-archive {
    color: var(--accent-deep) !important;
    border: 2px solid var(--accent-deep);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease !important;
}

.nav-archive:hover {
    background-color: var(--accent-deep);
    color: #ffffff !important;
}

/* --- Hero Section & Typography --- */
.hero {
    padding: 12rem 0 8rem;
    background: radial-gradient(circle at top right, rgba(111, 83, 146, 0.06), transparent 50%);
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.2;
    padding-bottom: 0.15em; /* Prevents text clipping */
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    letter-spacing: -1.5px;
}

.hero h2 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 3rem;
}

/* --- Buttons (Let's Talk & LinkedIn) --- */
.hero-actions {
    display: flex;
    gap: 1.2rem;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(42, 30, 92, 0.2);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(42, 30, 92, 0.3);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--accent-deep);
    border: 2px solid var(--accent-deep);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    transform: translateY(-3px);
}

/* --- Layout Sections --- */
.section { padding: 8rem 0; }
.bg-light { background-color: var(--bg-light); }

.section-kicker {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-vibrant);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 3rem;
    color: var(--text-main);
}

/* --- Impact Grid & Cards --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-vibrant);
}

.card h4 {
    font-size: 1.4rem;
    color: var(--accent-deep);
    margin: 0.75rem 0 0.5rem;
}

.tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-vibrant);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.card-body p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* --- Experience Timeline --- */
.timeline {
    border-left: 2px solid var(--border-color);
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.4rem;
    top: 0.4rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-vibrant);
    border: 3px solid var(--bg-light);
}

.timeline-meta {
    color: var(--accent-vibrant);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.25rem;
    color: var(--text-main);
}

.timeline-content h5 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-muted);
}

/* --- The Vault (Dark Theme) --- */
.section.bg-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-radius: 20px;
    margin: 0 1rem;
}

.section.bg-dark .section-title {
    color: #ffffff;
}

.vault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.vault-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    color: var(--text-light);
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.vault-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-vibrant);
    transform: scale(1.03);
}

.vault-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.vault-title {
    font-weight: 500;
}

/* --- Culture Image Grid --- */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem; /* Gives breathing room below your paragraph */
}

.culture-img {
    height: 280px; /* Keeps all three photos a uniform height */
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-light);
    box-shadow: 0 4px 15px rgba(42, 30, 92, 0.08);
}

.culture-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents squishing */
    filter: grayscale(100%) opacity(90%); /* Starts black-and-white and slightly muted */
    transition: all 0.5s ease; /* Controls the speed of the hover effect */
}

.culture-img:hover img {
    filter: grayscale(0%) opacity(100%); /* Blooms into full color */
    transform: scale(1.05); /* Adds a subtle zoom effect */
}

/* Mobile Fix: Stacks the images in a single column on phones */
@media (max-width: 768px) {
    .culture-grid { 
        grid-template-columns: 1fr; 
        gap: 1rem;
    }
}

/* --- Footer --- */
.footer {
    padding: 4rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding: 9rem 0 4rem; }
    .hero h1 { font-size: 2.5rem; line-height: 1.3; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
    .section.bg-dark { margin: 0; border-radius: 0; }
}

/* --- Hero Image Split Layout --- */
.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1; 
}

.hero-image {
    flex-shrink: 0;
    width: 320px; 
    height: 320px;
    border-radius: 20px; 
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(42, 30, 92, 0.15);
    border: 4px solid #ffffff;
    transform: rotate(2deg); /* Gives it a slight, stylized tilt */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(42, 30, 92, 0.25);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/* Mobile Fix for Hero Image */
@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column-reverse; /* Puts photo on top of text on mobile */
        text-align: center;
        gap: 3rem;
    }
    .hero-image {
        width: 220px;
        height: 220px;
        transform: rotate(0);
        margin: 0 auto;
    }
    .hero-actions { 
        justify-content: center; 
    }
}


/* --- Portfolio Section Additions --- */

/* Badge chips on vault/portfolio cards */
.vault-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.6rem;
}

.vault-badge-pdf {
    background: rgba(111, 83, 146, 0.35);
    color: #c4a8e8;
    border: 1px solid rgba(111, 83, 146, 0.5);
}

.vault-badge-coming {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Description text inside portfolio cards */
.vault-desc {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* Disabled / coming-soon card */
.vault-item.disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

/* Stack vault-item children vertically */
.vault-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Three-button hero layout — wraps gracefully on narrow screens */
@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
