/* 
 * Portfolio Website Styles
 * A warm, brown-themed personal portfolio with smooth animations
 */

/* ================================
   COLOR PALETTE & VARIABLES
   ================================ */
:root {
    /* Main color scheme - earth tones for a professional yet warm feel */
    --dark-brown: #5D4037;
    --medium-brown: #8D6E63;
    --light-brown: #A1887F;
    --beige: #D7CCC8;
    --cream: #EFEBE9;
    --white: #FFFFFF;
}

/* ================================
   RESET & BASE STYLES
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--cream);
    color: var(--dark-brown);
    line-height: 1.6;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Main container - keeps content centered and responsive */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Clean up default link styling */
a {
    text-decoration: none;
}

/* ================================
   NAVIGATION & HEADER
   ================================ */
header {
    background-color: var(--dark-brown);
    color: var(--white);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.logo a {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    transition: color 0.3s;
    font-family: 'Dancing Script', serif;
}

.logo a:hover {
    color: var(--beige);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--beige);
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--white);
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
    min-height: 100vh; 
    display: flex;
    align-items: center;
    background-color: var(--beige); 
    padding-top: 100px; /* Account for fixed header */
}

.hero-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 80px;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--dark-brown);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--medium-brown);
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

/* Profile picture styling */
.hero-image img {
    width: 300px; 
    height: 300px;
    border-radius: 50%; 
    object-fit: cover;
}

/* Social media links with hover animations */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--dark-brown);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    background-color: var(--light-brown);
}

.resume-download {
    margin-top: 30px;
}

.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--dark-brown);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease;
    
}

.resume-btn:hover {
    background-color: var(--medium-brown);
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.resume-btn i {
    font-size: 0.9rem;
}

/* ================================
   BUTTONS & INTERACTIVE ELEMENTS
   ================================ */
.btn {
    display: inline-block;
    background-color: var(--dark-brown);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn:hover {
    background-color: var(--medium-brown);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.floating-btn {
    position: relative;
    overflow: visible;
}

.floating-btn::after {
    content: "Download Resume";
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--dark-brown);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    transform: translateY(-50%) translateX(10px);
    margin-right: 10px;
    z-index: 1000;
}

.floating-btn::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--dark-brown);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    margin-right: 4px;
    z-index: 1000;
}

.floating-btn:hover::after,
.floating-btn:hover::before {
    opacity: 1;
    visibility: visible;
}

.floating-btn:hover::after {
    transform: translateY(-50%) translateX(0);
}
/* ================================
   FLOATING ACTION BUTTONS
   ================================ */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.floating-btn {
    width: 60px;
    height: 60px;
    background-color: var(--dark-brown);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.floating-btn:hover {
    transform: translateY(-5px);
    background-color: var(--medium-brown);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.floating-btn:active {
    transform: translateY(-2px);
}

/* Icon specific styles */
.floating-btn i {
    color: var(--white);
}

/* ================================
   SECTION LAYOUT & TYPOGRAPHY
   ================================ */
section {
    padding: 80px 0;
}

/* Hero section keeps beige background */
.hero {
    background-color: var(--beige);
}

section:not(.hero):nth-child(odd) {
    background-color: var(--dark-brown);
}

section:not(.hero):nth-child(even) {
    background-color: var(--beige);
}

/* Hero section keeps beige background */
.hero {
    background-color: var(--beige);
}

/* Section titles with different colors based on background */
.section-title-dark h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--dark-brown);
}

.section-title-light h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--white);
}

/* ================================
   SKILLS SECTION
   ================================ */
.skills-section {
    padding: 80px 0;
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.skill-category {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-brown);
}

.skill-category h3 {
    margin-bottom: 15px;
    color: var(--dark-brown);
    border-bottom: 2px solid var(--beige);
    padding-bottom: 10px;
}

.skills-list {
    list-style: none;
}

.skills-list li {
    padding: 5px 0 5px 15px;
    position: relative;
    color: var(--medium-brown);
}

/* Custom bullet points for skills */
.skills-list li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--dark-brown);
}

/* ================================
   EDUCATION & CERTIFICATIONS
   ================================ */
.education-list,
.positions-list {
    max-width: 800px;
    margin: 0 auto;
}

.education-item,
.cert-item,
.position-item {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    padding: 20px;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-item:hover,
.cert-item:hover,
.position-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.education-content,
.cert-details,
.position-content {
    flex: 1;
}

.education-content h3,
.cert-details h3,
.position-content h3 {
    font-size: 1.5rem;
    color: var(--dark-brown);
    margin-bottom: 10px;
}

.education-content h4,
.cert-details p,
.position-item h4,
.position-item p {
    color: var(--medium-brown);
    font-style: italic;
    margin-bottom: 10px;
}

.education-details {
    border-top: 1px solid var(--beige);
    padding-top: 15px;
}

.education-details p {
    color: var(--medium-brown);
}

.education-details strong {
    color: var(--dark-brown);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.cert-status {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}
/* ================================
   PROJECTS SHOWCASE
   ================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch; /* Makes all cards same height */
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom */
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-content h3 {
    margin-bottom: 10px;
    color: var(--dark-brown);
}

.project-content p {
    margin-bottom: 20px;
    color: var(--medium-brown);
}

.project-content .btn {
    margin-top: auto;
    width: fit-content; 
    padding: 12px 30px;
}

/* ================================
   EXPERIENCE TIMELINE
   ================================ */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Central timeline line */
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--medium-brown);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 10px 10px;
    box-sizing: border-box;
}

/* Timeline dots */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--dark-brown);
    border: 4px solid var(--light-brown);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

/* Alternating left/right positioning */
.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd)::after {
    right: -14px;
}

.timeline-item:nth-child(even)::after {
    left: -14px;
}

.timeline-content {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.timeline-content h3,
.timeline-content h4,
.timeline-content p {
    margin-bottom: 10px;
}

.timeline-content h3 {
    color: var(--dark-brown);
}

.timeline-content h4,
.timeline-content p {
    color: var(--medium-brown);
    font-style: italic;
}

/* ================================
   HOBBIES & INTERESTS
   ================================ */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.hobby-card {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-align: center;
}

.hobby-header {
    text-align: center;
    margin-bottom: 20px;
}

.hobby-content {
    line-height: 1.6;
    text-align: left;
}
.hobby-card:hover {
    transform: translateY(-10px);
}

.hobby-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-brown);
    text-align: center;
}

.hobby-card h3 {
    color: var(--dark-brown);
    text-align: center;
    gap: 30px;
}

.hobby-link{
    position: relative;
    color: #8D6E63;
}

/* ================================
   LABS/PROJECTS SHOWCASE
   ================================ */
.labs-section {
    padding: 80px 0;
    text-align: center;
}

.labs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.lab-box {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lab-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.lab-box h3 {
    font-size: 2rem;
    color: var(--dark-brown);
    margin-bottom: 20px;
}

.labs-list {
    list-style: none;
    padding: 0;
}

.labs-list li {
    margin-bottom: 15px;
}

.labs-list a {
    font-size: 1.1rem;
    color: var(--dark-brown);
    text-decoration: none;
    border-bottom: 2px solid var(--beige);
    transition: border-color 0.3s, color 0.3s;
}

.labs-list a:hover {
    color: var(--medium-brown);
    border-bottom: 2px solid var(--medium-brown);
}

/* ================================
   FOOTER
   ================================ */
footer {
    background-color: var(--dark-brown);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin-top: 20px;
    color: var(--beige);
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 768px) {
    /* Mobile timeline adjustments */
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 22px;
    }

    /* Hide navigation on mobile - probably need hamburger menu */
    .nav-links {
        display: none;
    }

    /* Adjust floating buttons for mobile */
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}
