/* General Styling */
:root {
    --primary-color: #ff6600; /* Example blue */
    --secondary-color: #272c31; /* Example gray */
    --dark-color: #1b1a19;
    --light-color: #ffefea;
    --white-color: #ffffff;
    --text-color: #181716;
    --card-bg: #e4fcff;
    --border-color: #ddd;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
span{
    color: var(--primary-color);
}
a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

h1, h2, h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

p {
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: darken(var(--primary-color), 50%);
}

/* Header */
.header {
    /* background-color: var(--white-color),20%; */
    padding: 15px 0;
   
    
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* background-color: #ffffe4b4; */
    padding: 15px 30px;
    border-radius: 50px;
}

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dark-color);
}
.logo img{
    width: 30px;
    height: auto;
    padding: auto;
   
}

.main-nav .nav-list {
    display: flex;
}

.main-nav .nav-list li {
    margin-left: 25px;
}

.main-nav .nav-list a {
    font-weight: 500;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.main-nav .nav-list a:hover {
    color: var(--primary-color);
}

.footer-nav .nav-list {
    display: flex;
    align-items: center;
}

.footer-nav .nav-list li {
    margin-left: 25px;
}

.footer-nav .nav-list a {
    font-weight: 500;
    color: var(--white-color);
    transition: color 0.3s ease;
}

.footer-nav .nav-list a:hover {
    color: var(--primary-color);
}

.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    cursor: pointer;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    background-color:rgb(255, 250, 238);
    padding: 80px 0;
    text-align: center;
}

.hero-section .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-height: 500px;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.social-links a {
    font-size: 1.8rem;
    margin-right: 20px;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

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

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
}
/* --- Project Main Content Area --- */
.project-main {
    padding: 60px 0;
}

.project-case-study {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* --- Project Overview Section --- */
.project-overview {
    text-align: center;
    margin-bottom: 50px;
}

.project-overview h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.project-intro {
    font-size: 1.3rem;
    color: var(--secondary-color);
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.5;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.meta-item {
    text-align: center;
}

.meta-item h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

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

/* --- Section Divider --- */
.section-divider {
    border: none;
    border-top: 1px dashed var(--border-color);
    margin: 60px 0;
}

/* --- Case Study Sections --- */
.case-study-section {
    margin-bottom: 50px;
}

.case-study-section h2 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 8px;
}

.case-study-section h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-top: 30px;
}

/* New: Side-by-Side Layout for Text and Image */
.text-image-layout {
    display: flex;
    align-items: center; /* Vertically align items in the middle */
    gap: 40px; /* Space between text and image */
    margin: 40px 0; /* Margin around this layout block */
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

.text-image-layout.reverse {
    flex-direction: row-reverse; /* Image on left, text on right */
}

.text-image-layout .text-content {
    flex: 1; /* Allows text to take available space */
    min-width: 300px; /* Minimum width before wrapping */
}

/* Image Containers */
.image-container {
    flex: 1; /* Allows image to take available space */
    min-width: 300px; /* Minimum width before wrapping */
    text-align: center; /* Center image within its flex item */
    margin: 0; /* Reset margin as it's handled by gap in flexbox */
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

.image-container.wide-image img {
    max-width: 100%;
}

.image-caption {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: 10px;
    margin-bottom: 0;
}

/* --- Next Project Navigation --- */
.next-project-nav {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px dashed var(--border-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .project-main {
        padding: 40px 0;
    }

    .project-case-study {
        padding: 30px;
    }

    .project-overview h1 {
        font-size: 2.5rem;
    }

    .project-intro {
        font-size: 1.1rem;
    }

    .project-meta {
        flex-direction: column;
        gap: 20px;
    }

    .case-study-section h2 {
        font-size: 2rem;
    }

    .case-study-section h3 {
        font-size: 1.5rem;
    }

    /* Stack text and image vertically on smaller screens */
    .text-image-layout {
        flex-direction: column;
        gap: 20px; /* Reduce gap when stacked */
    }

    .text-image-layout.reverse {
        flex-direction: column; /* Ensure it stacks even if reversed */
    }

    .text-image-layout .text-content,
    .image-container {
        min-width: unset; /* Remove min-width when stacked */
        width: 100%; /* Take full width when stacked */
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .project-case-study {
        padding: 20px;
    }

    .project-overview h1 {
        font-size: 2rem;
    }

    .project-intro {
        font-size: 1rem;
    }

    .case-study-section h2 {
        font-size: 1.7rem;
    }

    .case-study-section h3 {
        font-size: 1.3rem;
    }

    .image-caption {
        font-size: 0.85rem;
    }
}
/* Footer */
.footer {
    display: flex;
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    margin-bottom: 20px;
}

.footer-content p {
    margin-bottom: 10px;
}

.footer-content a {
    color: var(--primary-color);
    font-weight: bold;
}

.footer-social a {
    color: var(--white-color);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary-color);
}

/* Responsive Design */

/* Tablet View (e.g., max-width: 768px) */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        align-items: flex-start;
        
    }

    .main-nav {
        width: 100%;
        text-align: center;
    }

    .main-nav .nav-list {
        display: none; /* Hide navigation by default */
        flex-direction: column;
        width: 100%;
        background-color: var(--white-color);
        border-top: 1px solid var(--border-color);
        padding: 20px 0;
        position: absolute;
        top: 80px; /* Adjust based on header height */
        left: 0;
        z-index: 10;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .main-nav .nav-list.active {
        display: flex; /* Show when active */
    }

    .main-nav .nav-list li {
        margin: 15px 0;
    }

    .hamburger-menu {
        display: block; /* Show hamburger menu */
        position: absolute;
        right: 20px;
        top: 30px;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-section .container {
        flex-direction: column;
        text-align: center;
         max-height:none;
    }

    .hero-image {
        margin-top: 40px;
        text-align: center;
    }

    .hero-image img {
        max-width: 80%;
    }

    .skills-grid {
        grid-template-columns: 1fr; /* Single column for skills */
    }

    .projects-grid {
        grid-template-columns: 1fr; /* Single column for projects */
    }
}

/* Mobile View (e.g., max-width: 480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .social-links a {
        font-size: 1.5rem;
        margin-right: 15px;
    }

    .skill-card, .project-card {
        padding: 20px;
    }

    .footer-social a {
        font-size: 1.2rem;
    }
}