/* Base & Resets */
:root {
    --bg-color: #F8FBF8;
    --text-primary: #112F20;
    --text-secondary: #3D624B;
    --accent-primary: #2E7D4E;
    --accent-secondary: #8bc34a;
    --blob-1: #C5E1A5;
    --blob-2: #A5D6A7;
    
    --font-main: 'Outfit', sans-serif;
    
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(28, 64, 40, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Animated Blobs */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 15s ease-in-out infinite;
    opacity: 0.6;
}

.bg-shape-1 {
    width: 600px;
    height: 600px;
    background: var(--blob-1);
    top: -100px;
    left: -200px;
    animation-delay: 0s;
}

.bg-shape-2 {
    width: 500px;
    height: 500px;
    background: var(--blob-2);
    bottom: -100px;
    right: -100px;
    animation-direction: reverse;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Typography elements */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Panel Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    padding: 2.5rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-primary);
    position: relative;
    transition: color 0.3s ease;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    bottom: -4px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 125, 78, 0.3);
}

.btn-primary:hover {
    background: #23653e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 78, 0.4);
}

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

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

.hero-text .greeting {
    font-size: 1.5rem;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.hero-text .name {
    font-size: 4rem;
    letter-spacing: -1.5px;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text .role {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero-text .summary {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    height: 450px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    position: absolute;
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
}

.main-card {
    width: 280px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.main-card:hover {
    transform: translate(-50%, -55%);
}

.small-card-1 {
    width: 200px;
    top: 10%;
    left: 10%;
    z-index: 1;
    animation: float 8s ease-in-out infinite;
}

.small-card-2 {
    width: 220px;
    bottom: 10%;
    right: 5%;
    z-index: 3;
    animation: float 10s ease-in-out infinite reverse;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Sections Global */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.leaf-separator {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.skill-tag {
    background: rgba(46, 125, 78, 0.1);
    color: var(--accent-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid rgba(46, 125, 78, 0.2);
}

/* Experience Timeline */
.experience-timeline {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.timeline-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.company-header {
    margin-bottom: 0.5rem;
}

.has-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
    background-color: white;
    border: 1px solid var(--glass-border);
    padding: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.company-name {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.company-meta {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-left: 2px solid rgba(46, 125, 78, 0.2);
    padding-left: 2rem;
    position: relative;
    margin-left: 1rem;
}

.timeline-item {
    position: relative;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    left: -2.65rem;
    top: 2.5rem;
    box-shadow: 0 0 0 4px var(--bg-color);
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-item h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.role-meta {
    color: var(--accent-primary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.role-skills {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Work grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(28, 64, 40, 0.12);
}

.project-content {
    padding: 2.5rem;
}

.project-type {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.project-link {
    color: var(--accent-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.project-link:hover {
    gap: 0.8rem;
}

/* Contact */
.contact-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-box h2 {
    margin-bottom: 1rem;
}

.contact-box p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-btn {
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent-primary);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text .summary {
        margin: 0 auto 2.5rem auto;
    }

    .cta-group {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 2rem;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none; /* simple mobile fallback, ideally add a burger menu */
    }
    .hero-text .name {
        font-size: 3rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
