:root {
    /* Color Palette */
    --slate-dark: #191919;
    --slate-medium: #262626;
    --slate-light: #40403E;

    --cloud-dark: #666663;
    --cloud-medium: #91918D;
    --cloud-light: #BFBFBA;

    --ivory-dark: #E5E4DF;
    --ivory-medium: #F0F0EB;
    --ivory-light: #FAFAF7;

    --book-cloth: #CC785C;
    --kraft: #D4A27F;
    --manilla: #EBDBBC;

    --black: #000000;
    --white: #FFFFFF;
    --focus: #61AAF2;
    --error: #BF4D43;

    /* Semantic Variables */
    --bg-body: var(--ivory-light);
    --bg-alt: var(--ivory-medium);
    --bg-dark: var(--slate-dark);

    --text-main: var(--slate-dark);
    --text-muted: var(--cloud-dark);
    --text-light: var(--ivory-light);

    --accent-primary: var(--book-cloth);
    --accent-secondary: var(--kraft);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --border-radius: 8px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-primary);
    border-radius: 2px;
}

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

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.bg-dark p {
    color: var(--cloud-light);
}

.bg-dark h2::after {
    background-color: var(--accent-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: #b0664d;
    /* Darker book cloth */
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--slate-dark);
    color: var(--slate-dark);
}

.btn-secondary:hover {
    background-color: var(--slate-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(250, 250, 247, 0.9);
    /* Ivory Light with opacity */
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--slate-dark);
}

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

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

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--slate-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--accent-secondary);
    margin-bottom: var(--spacing-xs);
    display: block;
}

.hero-text {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.contact-info-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--slate-light);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 10s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background-color: var(--manilla);
    top: 0;
    right: 0;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background-color: var(--kraft);
    bottom: 0;
    left: 50px;
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, 20px);
    }
}

/* About / Summary */
.summary-card {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--spacing-lg);
    border-left: 4px solid var(--accent-primary);
}

.summary-card p {
    font-size: 1.1rem;
    color: var(--slate-medium);
    margin: 0;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.achievement-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    border: 1px solid var(--ivory-dark);
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-secondary);
}

.achievement-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.achievement-card h3 {
    font-size: 1.2rem;
    color: var(--slate-dark);
    margin-bottom: 0.5rem;
}

.achievement-card p {
    font-size: 0.95rem;
    margin: 0;
}

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

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

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: var(--spacing-lg);
}

.timeline-marker {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-primary);
    border: 4px solid var(--bg-alt);
}

.timeline-content {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.job-header {
    margin-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--ivory-dark);
    padding-bottom: var(--spacing-sm);
}

.job-header h3 {
    margin-bottom: 0.2rem;
    color: var(--slate-dark);
}

.company {
    font-weight: 600;
    color: var(--accent-primary);
    display: block;
}

.period {
    font-size: 0.9rem;
    color: var(--cloud-dark);
    display: block;
    margin-top: 0.2rem;
}

.job-details {
    list-style-type: disc;
    padding-left: 1.2rem;
}

.job-details li {
    margin-bottom: 0.5rem;
    color: var(--slate-medium);
}

/* Skills */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.skills-category h3 {
    color: var(--accent-secondary);
    border-bottom: 2px solid var(--ivory-dark);
    padding-bottom: 0.5rem;
    margin-bottom: var(--spacing-md);
}

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

.tag {
    background-color: var(--ivory-medium);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-medium);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.tag:hover {
    background-color: var(--white);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: scale(1.05);
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.contact-content h2 {
    color: var(--white);
}

.contact-direct {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
}

.contact-row {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--ivory-light);
}

.contact-row strong {
    color: var(--accent-secondary);
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.contact-form {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--slate-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--ivory-dark);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

.success {
    color: green;
}

.error {
    color: var(--error);
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--cloud-dark);
    padding: var(--spacing-md) 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .contact-info-bar {
        justify-content: center;
    }

    .hero-visual {
        display: none;
        /* Simplify for mobile */
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-marker {
        left: 1px;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.fade-in {
    transition-delay: 0.2s;
}

.achievement-card.fade-in:nth-child(1) {
    transition-delay: 0.1s;
}

.achievement-card.fade-in:nth-child(2) {
    transition-delay: 0.2s;
}

.achievement-card.fade-in:nth-child(3) {
    transition-delay: 0.3s;
}

.achievement-card.fade-in:nth-child(4) {
    transition-delay: 0.4s;
}