:root {
    --bg-paper: #fdfcf8;
    --bg-stone: #f4f1e6;
    --text-main: #1a1c19;
    --text-muted: #5c635b;
    --text-forest: #1a2a1a; /* Deep Forest Green */
    --accent: #2d5a27; /* Forest Green */
    --accent-hover: #1e3d1a;
    --accent-earth: #8b5e3c; /* Oak Brown */
    --accent-sun: #d4a373; /* Golden Sand */
    --card-bg: #ffffff;
    --glass-border: rgba(45, 90, 39, 0.1);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1100px;
    --radius-lg: 32px;
    --radius-md: 16px;
    --shadow-soft: 0 20px 50px -12px rgba(26, 42, 26, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-paper);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

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

ul {
    list-style: none;
}

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

.section-padding {
    padding: 6rem 0;
}

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

.text-center {
    text-align: center;
}

/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(253, 252, 248, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.nav-logo {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--accent);
}

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

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

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

.nav-cta {
    background: var(--accent);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    color: white !important;
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.2);
}

.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 39, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('nature3.jpg') center 30% / cover no-repeat;
    padding: 160px 0 100px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 42, 26, 0.2), rgba(253, 252, 248, 0.85) 60%, var(--bg-paper));
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero h1 {
    font-size: 5.5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: #000; /* Pure black for maximum contrast */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #1a2a1a; /* Darker Forest Green */
    margin-bottom: 2rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

.hero-tags {
    display: flex;
    justify-content: flex-start;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-tags span {
    background: var(--card-bg);
    color: var(--accent);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700; /* Bolder */
    border: 2px solid var(--accent); /* Stronger border */
}

.hero-contact {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    color: #1a1c19; /* Darker */
    font-size: 1rem;
    font-weight: 600; /* Bolder */
    flex-wrap: wrap;
}

.hero-contact .dot {
    width: 5px;
    height: 5px;
    background: var(--accent-sun);
    border-radius: 50%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.contact-item i {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.hero-image {
    flex: 0 0 450px;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: var(--bg-stone);
    aspect-ratio: 4/5;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.btn-primary {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--accent);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1.05rem;
    box-shadow: 0 10px 30px -10px rgba(45, 90, 39, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px);
    background: var(--accent-hover);
    box-shadow: 0 15px 40px -10px rgba(45, 90, 39, 0.5);
}

/* Summary Section */
.section-title {
    font-size: 2.8rem;
    margin-bottom: 4rem;
    position: relative;
    color: var(--text-main);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 40px;
    height: 4px;
    background: var(--accent-sun);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.lead {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--accent);
    line-height: 1.4;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.skill-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
    border-color: var(--accent);
}

.skill-icon {
    margin-bottom: 2rem;
    color: var(--accent);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-stone);
    border-radius: 16px;
}

.skill-icon i {
    width: 28px;
    height: 28px;
}

.skill-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Scrapbook Gallery */
.scrapbook-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1rem 0;
}

.scrapbook-item {
    background: white;
    padding: 10px 10px 40px 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.05);
    height: fit-content;
}

.scrapbook-item img {
    width: 100%;
    height: auto; /* Full visibility, no cropping */
    display: block;
    border: 1px solid #f0f0f0;
}

.scrapbook-item:hover {
    transform: scale(1.3) rotate(0deg) !important;
    z-index: 100;
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
}

.p1 { transform: rotate(-3deg); margin-top: 30px; }
.p2 { transform: rotate(2deg); }
.p3 { transform: rotate(-2deg); margin-top: 50px; }
.p4 { transform: rotate(3deg); margin-top: -20px; }
.p5 { transform: rotate(-4deg); margin-top: 10px; }
.p6 { transform: rotate(1deg); margin-top: 40px; }
.p7 { transform: rotate(-2deg); }
.p8 { transform: rotate(4deg); margin-top: 20px; }
.p10 { transform: rotate(2deg); margin-top: 30px; }

/* Secondary Gallery (4 per row) */
.scrapbook-container.secondary {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.s1 { transform: rotate(-2deg); }
.s2 { transform: rotate(3deg); margin-top: 20px; }
.s3 { transform: rotate(-3deg); margin-top: -10px; }
.s4 { transform: rotate(2deg); margin-top: 15px; }
.s5 { transform: rotate(-1deg); margin-top: 25px; }
.s6 { transform: rotate(4deg); margin-top: -5px; }
.s7 { transform: rotate(-3deg); margin-top: 10px; }

@media (max-width: 1200px) {
    .scrapbook-container.secondary { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

@media (max-width: 992px) {
    .scrapbook-container { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
    .scrapbook-container.secondary { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 850px) {
    .skills-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .scrapbook-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none !important; }
    .hero { padding: 120px 0 60px; min-height: auto; }
    .hero-container { flex-direction: column; text-align: center; gap: 2rem; }
    .hero-content { text-align: center; width: 100%; }
    .hero h1 { font-size: 3rem; }
    .hero-contact { flex-direction: column; gap: 1rem; align-items: center; }
    .hero-image { flex: 0 0 auto; width: 280px; margin: 0 auto; }
    .footer-content { flex-direction: column; text-align: center; gap: 3rem; }
    .section-padding { padding: 4rem 0; }
    .skills-grid { grid-template-columns: 1fr !important; }
    .scrapbook-container, .scrapbook-container.secondary { grid-template-columns: 1fr !important; gap: 3rem; }
    .p1, .p2, .p3, .p4, .p5, .p6, .p7, .p8, .p9, .p10, .s1, .s2, .s3, .s4, .s5, .s6, .s7 { 
        margin-top: 0 !important; 
        transform: rotate(0) !important; 
    }
}

@media (max-width: 500px) {
    .hero h1 { font-size: 2.8rem; }
    .scrapbook-container, .scrapbook-container.secondary { grid-template-columns: 1fr; }
}

.skill-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
    border-color: var(--accent);
}

.skill-icon {
    margin-bottom: 2rem;
    color: var(--accent);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-stone);
    border-radius: 16px;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 31px;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--bg-stone);
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 6rem;
}

.timeline-dot {
    position: absolute;
    left: 20px;
    top: 5px;
    width: 24px;
    height: 24px;
    background: var(--bg-paper);
    border: 4px solid var(--accent);
    border-radius: 50%;
    z-index: 2;
}

.timeline-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-earth);
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.3rem 1rem;
    background: var(--bg-stone);
    border-radius: 50px;
}

.timeline-content {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 30px rgba(0,0,0,0.03);
    border: 1px solid var(--glass-border);
}

/* Education & Certs */
.education-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
}

.edu-card {
    background: var(--bg-stone);
    padding: 3rem;
    border-radius: var(--radius-md);
    border-top: 6px solid var(--accent-earth);
}

.cert-list li {
    background: var(--card-bg);
    padding: 1.5rem 2rem;
    margin-bottom: 1.2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.cert-list li:hover {
    background: var(--bg-stone);
    transform: translateX(12px);
}

/* Footer */
.footer {
    padding: 8rem 0 3rem;
    background: var(--text-forest);
    color: white;
}

.footer .container {
    max-width: 900px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6rem;
}

.footer-brand h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact .btn-primary {
    background: white;
    color: #1a2a1a;
    box-shadow: none;
}

.footer-contact .btn-primary:hover {
    background: var(--accent-sun);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
}

/* Animations */
.reveal-text, .reveal-up {
    opacity: 0;
    transform: translateY(30px);
}

.active {
    opacity: 1;
    transform: translateY(0);
    transition: var(--transition-smooth);
}
