/* styles.css */
:root {
    /* Forest Color Palette */
    --primary-dark: #3A5A40;
    --primary-color: #588157;
    --primary-light: #A3B18A;
    --secondary-color: #344E41;
    --accent-color: #a0ca9f;
    --light-color: #f8fafa;
    --dark-color: #1A1F16;
    --text-color: #2B2D42;
    
    /* Textures */
    --bg-texture: url('https://images.unsplash.com/photo-1448375240586-882707db888b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    --card-texture: url('https://www.transparenttextures.com/patterns/soft-wallpaper.png');
    
    --max-width: 1200px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--primary-dark) var(--bg-texture);
    background-blend-mode: overlay;
    background-attachment: fixed;
    color: var(--accent-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--accent-color);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 0.7rem 1.8rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 31, 22, 0.2);
}

.section {
    padding: 5rem 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-light);
}

/* Header */
/* header {
    background: rgba(52, 78, 65, 0.9);
    backdrop-filter: blur(5px);
    position: fixed;
    top: 0;
    
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(163, 177, 138, 0.3);
}
 */

header {
    background: rgba(52, 78, 65, 0.9);
    backdrop-filter: blur(5px);
    position: fixed;   /* stays fixed at the top */
    top: 0;
    left: 0;
    width: 100%;       /* full width */
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(163, 177, 138, 0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* keep everything in one line */
    width: 100%;
}

nav ul {
    display: flex;
            gap: 2rem;
            list-style: none;
            margin: 0;
            padding: 0;
}

nav a {
    font-family: 'Merriweather', serif;
            font-weight: 700;
            color: inherit;
            text-decoration: none;
            font-size: 1rem;
            transition: color 0.3s;
}

nav a:hover {
    color: #A3B18A;
}

/* Hero Section */
#hero {
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: 
        linear-gradient(rgba(52, 78, 65, 0.85), rgba(52, 78, 65, 0.85)),
        var(--bg-texture) center/cover;
}

#hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(26, 31, 22, 0.5);
}

#hero p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.profile-img {
    width: 100%;
    max-width: 350px;
    border-radius: 50%;
    border: 8px solid var(--primary-color);
    box-shadow: 0 0 25px rgba(156, 175, 136, 0.4);
}

/* Resume Section */
/* PDF Viewer Container */
#pdf-viewer-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* This centers child elements horizontally */
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  /* Button Container */
  .btn-container {
    width: 100%;
    text-align: center; /* Centers the button horizontally */
    margin-top: 1.5rem;
  }
  
  /* Keep existing button styles */
  .download-btn {
    display: inline-flex; /* Changed from inline-block for better icon alignment */
    align-items: center;
    gap: 0.5rem;
    /* existing button styles are preserved */
    background: var(--primary-color);
    color: var(--light-color);
    padding: 0.7rem 1.8rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none; /* Added for anchor tag */
  }
  
  .download-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 31, 22, 0.2);
  }
  
/* Mobile view adjustments */
/* @media (max-width: 768px) {
    #pdf-viewer-container {
      padding: 1.5rem;
    }
    
    .btn-container {
      margin-top: 1rem;
    }
  } */
  
/*   @media (max-width: 480px) {
    .download-btn {
      padding: 0.6rem 1.5rem;
      font-size: 0.9rem;
    }
  }
 */

/* Hamburger Menu Styles */
/* .hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
} */

.hamburger {
    margin-left: auto;   /* pushes it all the way to the right */
    margin-right: 1rem;  /* adds some spacing from screen edge */
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease;
    background-color: var(--accent-color);
}

/* @media (max-width: 768px) {
    #pdf-viewer-container {
      padding: 1rem;
    }
    
    #pdf-canvas {
      height: auto;
      max-height: 70vh;
    }
  }
  
  @media (max-width: 480px) {
    #pdf-canvas {
      max-height: 60vh;
    }
  } */

/* @media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: rgba(52, 78, 65, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        z-index: 99;
        padding: 1rem 0;
        border-top: 1px solid rgba(163, 177, 138, 0.3);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    header {
        padding: 0.8rem 0;
    }
    
    header .container {
        align-items: center;
    }
}
 */

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.8rem;
    color: var(--accent-color);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-light);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--primary-light);
    border-radius: 4px;
    background: rgba(218, 215, 205, 0.8);
    font-family: inherit;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: rgba(26, 31, 22, 0.95);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(163, 177, 138, 0.3);
}

.eco-statement {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
/* @media (max-width: 768px) {
    .about-content {
    grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        text-align: center;
    }

    #hero h2 {
        font-size: 2.5rem;
    }

    .resume-pdf {
        height: 80vh;
        width: 100%;
        min-height: 500px;
      }
      
      .resume-container {
        padding: 1rem;
      }
} */

/* @media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        order: 1; 
    }
    .contact-form {
        order: 2; 
    }

    .about-image {
        order: -1;
        text-align: center;
    }

    #hero h2 {
        font-size: 2.5rem;
    }

    .resume-pdf {
        height: 80vh;
        width: 100%;
        min-height: 500px;
    }
      
    .resume-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 0;
    }

    #hero h2 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 1.2rem;
    }

    nav ul {
        gap: 1rem;
    }
}
 */
/* Add to styles.css */

/* .horizontal-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scroll-padding: 1rem;
    padding-bottom: 1rem;
} */

.horizontal-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    display: flex;
    padding-bottom: 1rem;
    scroll-padding: 1rem;
    gap: 2rem;
}

.projects-grid {
  display: flex;
  gap: 2rem;
}

/* .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
 */
/* .project-card {
    background: 
        linear-gradient(135deg, rgba(218, 215, 205, 0.9) 0%, rgba(163, 177, 138, 0.95) 100%),
        var(--card-texture);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
} */

/* .project-card {
    scroll-snap-align: start;
    flex: 0 0 300px; 
    background: 
        linear-gradient(135deg, rgba(218, 215, 205, 0.9) 0%, rgba(163, 177, 138, 0.95) 100%),
        var(--card-texture);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
 */

.project-card {
    scroll-snap-align: start;
    flex: 0 0 300px; /* locks card width without shrink/grow */
    background: 
        linear-gradient(135deg, rgba(218, 215, 205, 0.9) 0%, rgba(163, 177, 138, 0.95) 100%),
        var(--card-texture);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;

    /* For consistency + button positioning */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    min-height: 420px; /* desktop height */
    padding-bottom: 60px; /* space for button */
}

/* Button stays only as wide as its text */
.project-card .btn {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap; /* ensures text stays on one line */
    width: auto; /* button width adapts to text */
}

/* Add extra spacing before Visual & Design Explorations */
#projects h2:nth-of-type(2) {
    margin-top: 6rem;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
    color: var(--dark-color);
}

.project-content h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.project-content p {
    margin-bottom: 1.5rem;
}

nav .active {
    color: var(--primary-light);
    font-weight: 700;
}

/* @media (max-width: 480px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}
 */

/* 🎨 Base Desktop Styles (Default for large screens)
   -------------------------------------------------- */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* side by side on desktop */
    gap: 2rem;
}

/* Other desktop styles here… */


/* 📱 Tablet & Mobile (≤ 768px)
   -------------------------------------------------- */
@media (max-width: 768px) {
    /* PDF Viewer */
    #pdf-viewer-container {
        padding: 1rem;
    }
    #pdf-canvas {
        height: auto;
        max-height: 70vh;
    }

    /* Buttons */
    .btn-container {
        margin-top: 1rem;
    }

    /* Navigation / Hamburger Menu */
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: rgba(52, 78, 65, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        z-index: 99;
        padding: 1rem 0;
        border-top: 1px solid rgba(163, 177, 138, 0.3);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-menu li {
        margin: 1rem 0;
    }

    header {
        padding: 0.8rem 0;
    }
    header .container {
        align-items: center;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
    }
    .about-image {
        order: -1;
        text-align: center;
    }

    /* Contact Section */
    .contact-content {
        display: grid !important;
        grid-template-columns: 1fr !important; /* force stacking */
        grid-template-rows: auto auto;
    }
    .contact-info {
        grid-row: 1;
    }
    .contact-form {
        grid-row: 2;
    }

    /* Hero */
    #hero h2 {
        font-size: 2.5rem;
    }

    /* Resume */
    .resume-pdf {
        height: 80vh;
        width: 100%;
        min-height: 500px;
    }
    .resume-container {
        padding: 1rem;
    }
}


/* 📱 Small Mobile (≤ 480px)
   -------------------------------------------------- */
@media (max-width: 480px) {
    /* PDF */
    #pdf-canvas {
        max-height: 60vh;
    }

    /* Download button */
    .download-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Sections */
    .section {
        padding: 3rem 0;
    }

    /* Hero */
    #hero h2 {
        font-size: 2rem;
    }
    #hero p {
        font-size: 1.2rem;
    }

    /* Nav */
    nav ul {
        gap: 1rem;
    }

    /* Contact Section - stack */
    .contact-content {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto;
    }
    .contact-info {
        grid-row: 1;
    }
    .contact-form {
        grid-row: 2;
    }
}

/* last media query stuff above... */


/* 🚫 Prevent sideways scrolling on small screens */
/* html, body {
  max-width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

img, iframe, canvas {
  max-width: 100%;
}
 */

/* === Fix layout issues === */

/* Prevent horizontal scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure proper wrapping */
* {
    box-sizing: border-box;
}

/* Fix email cutting off */
.contact-info a,
.contact-info p {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Push hamburger to the right side */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hamburger {
    margin-left: auto;
    margin-right: 1rem; /* adjust spacing from right edge */
}


/* Show hamburger only on small screens */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* visible on tablet & phone */
    }

    nav ul {
        display: flex; /* hide full menu */
    }
}

/* On bigger screens, hide hamburger and show menu */
@media (min-width: 769px) {
    .hamburger {
        display: none; /* hide */
    }

    nav ul {
        display: flex; /* show full menu */
    }
}



