/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 70px;
    background: linear-gradient(160deg,
        #e8ede4 0%,
        #dfe8d8 20%,
        #f0ebe0 45%,
        #e4ddd0 70%,
        #d8e0d4 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Full page background */
body.full-page-bg {
    background-color: #2c3e50; /* Fallback color while image loads */
    background-image: url('sunset.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
}

/* Dark overlay for entire page */
body.full-page-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* Navigation */
nav {
    background: rgba(62, 74, 54, 0.92);
    backdrop-filter: blur(6px);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #a8c898;
}

/* Hero Section */
.hero-section {
    height: 40vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.social-links {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-top: 30px;
}

.social-links a {
    color: white;
    font-size: 40px;
    transition: transform 0.3s, opacity 0.7s;
}

.social-links a:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

/* Exploration Section */
.exploration-section {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.exploration-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.exploration-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.exploration-tagline {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.exploration-description {
    font-size: 1.2rem;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Footer */
footer {
    background: rgba(62, 74, 54, 0.88);
    color: white;
    text-align: center;
    padding: 1.5rem;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #a8c898;
    text-decoration: underline;
}
/* About Page Styles */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding: 1rem;
}

.profile-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.about-text h3 {
    margin: 1.5rem 0 1rem 0;
    color: #3e4a36;
}

.about-text p {
    margin-bottom: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.skill-category {
    background: rgba(220, 232, 212, 0.5);
    padding: 1rem;
    border-radius: 8px;
}

.skill-category h4 {
    color: #3e4a36;
    margin-bottom: 0.5rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category ul li {
    padding: 0.3rem 0;
}

/* Page Section - Universal container for all main sections */
.page-section {
    padding: 100px 20px 40px 20px;
    min-height: calc(100vh - 70px);
}

/* Section Title */
.section-title {
    padding-top: 0;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.5rem;
    color: #3e4a36;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.project-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.project-tech {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.project-link:hover {
    background: #34495e;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    background: #2c3e50;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #34495e;
}

/* =====================
   CAROUSEL (projects.html)
   ===================== */
.carousel-section {
    padding: 60px 20px 40px;
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 860px;
    position: relative;
}

.carousel-track {
    flex: 1;
    overflow: hidden;
}

.carousel-card {
    display: none;
    background: rgba(255, 253, 248, 0.92);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(80, 70, 50, 0.13);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.carousel-card.active {
    display: block;
}

.card-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.card-content {
    padding: 1.8rem;
}

.card-content h3 {
    color: #3e4a36;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.card-summary {
    color: #555;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: #dce8d4;
    color: #3e4a36;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3e4a36;
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.learn-more-btn:hover {
    background: #6b8c5a;
}

.carousel-btn {
    background: #3e4a36;
    color: white;
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.carousel-btn:hover {
    background: #6b8c5a;
}

.carousel-indicators {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: #3e4a36;
}

/* =====================
   PROJECT DETAIL PAGES
   ===================== */
.project-detail {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.project-header {
    margin-bottom: 2rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b8c5a;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: #3e4a36;
}

.project-header h1 {
    font-size: 2rem;
    color: #3e4a36;
    line-height: 1.3;
    margin-top: 0.5rem;
}

.project-hero-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.project-hero-image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.project-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
    align-items: start;
}

.project-main-content {
    min-width: 0;
}

.content-section {
    margin-bottom: 2rem;
}

.content-section h2 {
    font-size: 1.5rem;
    color: #3e4a36;
    margin-bottom: 0.8rem;
    border-bottom: 2px solid #dce8d4;
    padding-bottom: 0.4rem;
}

.content-section h3 {
    font-size: 1.15rem;
    color: #4a5e3a;
    margin: 1rem 0 0.5rem;
}

.content-section p {
    color: #444;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.content-section ul {
    padding-left: 1.4rem;
    color: #444;
    line-height: 1.8;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.tech-item {
    background: #dce8d4;
    color: #3e4a36;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.project-links-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3e4a36;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #6b8c5a;
}

/* Sidebar */
.project-sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-section {
    background: rgba(255, 253, 248, 0.88);
    border-radius: 10px;
    padding: 1.4rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(80,70,50,0.09);
}

.sidebar-section h3 {
    color: #3e4a36;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #dce8d4;
    padding-bottom: 0.4rem;
}

.info-item {
    margin-bottom: 0.8rem;
}

.info-item strong {
    color: #3e4a36;
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-item p {
    color: #555;
    margin: 0.2rem 0 0;
    font-size: 0.95rem;
}

.nav-project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b8c5a;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-project-link:hover {
    color: #3e4a36;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-content-wrapper {
        grid-template-columns: 1fr;
    }

    .project-sidebar {
        position: static;
    }

    nav ul {
        justify-content: center;
    }

    nav ul li {
        margin: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .profile-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .project-card {
        margin: 0 auto;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }
}
/* =====================
   POSTER THUMBNAIL
   ===================== */
.poster-container {
    margin-top: 1rem;
}

.poster-thumbnail {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

.poster-thumbnail:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

/* =====================
   LIGHTBOX
   ===================== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 95vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    cursor: default;
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 1.4rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}
