/* ===================================
   GLOBAL STYLES & CSS VARIABLES
   =================================== */

:root {
    /* Color Palette - Calm & Soothing Theme */
    --bg-primary: #f0e9da;
    /* Warm off-white */
    --bg-secondary: #ffffff;
    /* Pure white */
    --bg-tertiary: #f4f1ea;
    /* Slightly darker warm gray */

    --text-primary: #2d3748;
    /* Dark slate gray */
    --text-secondary: #718096;
    /* Muted gray */

    --accent-primary: #84a98c;
    /* Sage Green */
    --accent-secondary: #52796f;
    /* Darker Sage */
    --accent-hover: #354f52;
    /* Deep Green-Blue */

    --border-color: #e2e8f0;

    /* Spacing */
    --section-padding: 100px 20px;
    --container-max-width: 1200px;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows - Soft & Diffused */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-neu: 5px 5px 10px #e6e6e6, -5px -5px 10px #ffffff;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 25px;
}

.section {
    padding: var(--section-padding);
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
    position: relative;
    letter-spacing: -0.02em;
}

.mt-large {
    margin-top: 80px;
}

.clickable-card {
    text-decoration: none;
    color: inherit;
    display: grid;
    /* Maintain grid layout of education-item */
}

/* Removed the underline for a cleaner look, or styled subtly */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-primary);
    margin: 15px auto 0;
    border-radius: 2px;
    opacity: 0.7;
}

.gradient-text {
    color: var(--accent-secondary);
    /* Removed aggressive gradients */
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 50px;
    /* Pillow shape */
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(132, 169, 140, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(132, 169, 140, 0.6);
}

.btn-secondary {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-resume {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    padding: 10px 20px;
}

.btn-resume:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: #fff;
}

/* Ripple Animation */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background-color: rgba(255, 255, 255, 0.7);
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Reveal Animation - Soft fade up */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   NAVIGATION BAR
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(253, 251, 247, 0.9);
    /* Translucent warm white */
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 15px 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-secondary);
}

/* Simple dot indicator on hover instead of underline */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.nav-link:hover::after {
    transform: translateX(-50%) scale(1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: radial-gradient(circle at 80% 20%, rgba(132, 169, 140, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(159, 168, 218, 0.1) 0%, transparent 50%);

}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    animation: fadeIn 1.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--accent-secondary);
    margin-bottom: 25px;
    font-weight: 500;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: var(--text-secondary);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.social-icon:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1;
}

/* Soft organic blob background instead of circle */
.image-wrapper::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: #eef5e4;
    /* Very light sage */
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    z-index: -1;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50px;
    /* Large rounded corners but not full circle */
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    border: 5px solid white;
}

/* ===================================
   EDUCATION SECTION
   =================================== */

.education-section {
    background: var(--bg-secondary);
}

.education-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.education-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 30px;
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #f0f0f0;
}

.education-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-primary);
    border-radius: 50%;
    /* Circle icon bg */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-primary);
}

.education-icon img,
.education-icon svg {
    width: 50%;
    height: 50%;
    object-fit: contain;
}

.education-degree {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.education-institution {
    font-size: 1.1rem;
    color: var(--accent-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.education-duration {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.education-details {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   PROJECTS SECTION
   =================================== */

.projects-section {
    background: var(--bg-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.project-card {
    background: white;
    padding: 35px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.project-title {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.project-links {
    display: flex;
    gap: 12px;
}

.project-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.project-link:hover {
    background: var(--accent-primary);
    color: white;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-badge {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.project-card:hover .tech-badge {
    background: #edf2ea;
    /* Light green tint */
    color: var(--accent-secondary);
}

/* ===================================
   EXPERIENCE SECTION
   =================================== */

.experience-section {
    background: var(--bg-secondary);
}

.experience-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: var(--border-color);
    border-radius: 2px;
}

.experience-item {
    position: relative;
    padding-left: 90px;
    margin-bottom: 60px;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-marker {
    position: absolute;
    left: 31px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    border: 5px solid var(--accent-primary);
    z-index: 2;
    box-shadow: 0 0 0 5px rgba(132, 169, 140, 0.2);
}

.experience-content {
    /* Transparent bg for timeline items, cleaner look */
    padding: 0;
    transition: all var(--transition-normal);
}

.experience-role {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.experience-company {
    color: var(--accent-secondary);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.experience-duration {
    display: inline-block;
    background: var(--bg-tertiary);
    padding: 5px 12px;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.experience-responsibilities {
    list-style: none;
    padding: 0;
}

.experience-responsibilities li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.experience-responsibilities li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* ===================================
   SKILLS SECTION
   =================================== */

.skills-section {
    background: var(--bg-primary);
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-category {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.skill-category-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
}

.skill-category-title i {
    color: var(--accent-primary);
    font-size: 1.3rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: default;
}

.skill-tag:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.05);
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact-section {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-subtitle {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: var(--text-primary);
}

.contact-description {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-detail i {
    background: var(--bg-primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--accent-primary);
}

.contact-detail h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-detail p,
.contact-detail a {
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(132, 169, 140, 0.1);
    background: white;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--bg-tertiary);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: color var(--transition-fast);
}

.footer-social a:hover {
    color: var(--accent-primary);
}

/* ===================================
   SCROLL TO TOP
   =================================== */

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 900;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-3px);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons,
    .social-links {
        justify-content: center;
    }

    .hero-image {
        order: -1;
        margin-bottom: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .education-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .education-icon {
        margin: 0 auto;
    }

    .experience-timeline::before {
        left: 20px;
    }

    .experience-item {
        padding-left: 50px;
    }

    .experience-marker {
        left: 11px;
    }
}