:root {
    --primary-color: #5d4037; /* Deep Brown */
    --secondary-color: #a1887f; /* Muted Rose */
    --accent-color: #8d6e63; /* Tan */
    --light-color: #efebe9; /* Off-white */
    --dark-color: #3e2723; /* Darker Brown */
    --text-color: #333;
    --text-light: #777;
    --bg-color: #fff;
    --overlay-color: rgba(0, 0, 0, 0.8);
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* Dark mode variables */
[data-theme="dark"] {
    --primary-color: #f5f5f5; /* Light Gray */
    --secondary-color: #a1887f;
    --accent-color: #8d6e63;
    --light-color: #3e2723;
    --dark-color: #2c3e50;
    --text-color: #efebe9;
    --text-light: #bdc3c7;
    --bg-color: #262626; /* Darker Gray */
    --overlay-color: rgba(0, 0, 0, 0.9);
}
[data-theme="dark"] .theme-toggle, [data-theme="dark"] .filter-btn.active, [data-theme="dark"] .footer, [data-theme="dark"] a.social-link, [data-theme="dark"] .pagination-btn {
     background: black;
}
[data-theme="dark"] .filter-btn:hover, [data-theme="dark"] .btn:hover {
     color: black;
}
[data-theme="dark"] .filter-btn.active:hover {
     color: white;
}
 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.edit-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.edit-btn:hover {
    background-color: var(--primary-color);
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header.scrolled {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-list {
    display: flex;
}

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

.nav-list a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-list a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1549429188-be940f90c422?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover;
    color: white;
    position: relative;
    margin-top: 70px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Two Column Layout for Sections */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start; /* Align items to the start of their grid areas */
}

/* About Section */
.about .section-title {
    text-align: left; /* Align title to left within its column */
    margin-left: 0; /* Remove auto margin */
}

.about .section-title::after {
    margin-left: 0; /* Align pseudo-element with title */
}

.about-text {
    line-height: 1.8;
}

.bio-text p {
    margin-bottom: 20px;
}

.profile-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    align-self: center; /* Center image vertically in its column */
}

.profile-image img {
    width: 100%;
    height: auto;
    display: block;
}

.skills {
    margin-top: 30px;
}

.skills h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills-list li {
    background-color: var(--light-color);
    padding: 8px 15px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

/* Collections Section (formerly Work) */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Specific for two-column project display */
.projects-grid.two-column-grid {
    grid-template-columns: repeat(2, 1fr); /* Force 2 columns */
}


.project-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background-color: var(--light-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-img {
    height: 350px; /* Adjusted height for fashion images */
    width: 100%;
    object-fit: cover;
    cursor: pointer;
}

.project-info {
    padding: 20px;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.project-category {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.project-desc {
    color: var(--text-light);
    margin-bottom: 15px;
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-links a {
    font-size: 0.9rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
}

.project-links a i {
    margin-right: 5px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.pagination-btn {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--secondary-color);
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    padding: 8px 12px;
    background-color: var(--light-color);
    color: var(--text-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.page-number.active {
    background-color: var(--secondary-color);
    color: white;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Specific for two-column testimonial display */
.testimonials-grid.two-column-grid {
    grid-template-columns: repeat(2, 1fr); /* Force 2 columns */
}

.testimonial-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 10px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 700;
    color: var(--secondary-color);
}

/* Contact Section */
.contact-info {
    padding-right: 20px; /* Space between info and form */
}

.contact-intro {
    margin-bottom: 30px;
    color: var(--text-light);
}

.contact .section-title {
    text-align: left; /* Align title to left within its column */
    margin-left: 0; /* Remove auto margin */
}

.contact .section-title::after {
    margin-left: 0; /* Align pseudo-element with title */
}

.contact-form {
    padding: 30px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(161, 136, 127, 0.2);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px 0;
}

.copyright {
    font-size: 0.9rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.lightbox.show {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-img {
    max-height: 80vh;
    max-width: 90vw;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 15px;
    font-size: 1.2rem;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-lightbox:hover {
    color: var(--secondary-color);
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .two-column-layout {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
        gap: 30px;
    }

    .about .section-title,
    .contact .section-title {
        text-align: center;
    }

    .about .section-title::after,
    .contact .section-title::after {
        margin-left: auto;
        margin-right: auto;
    }

    .profile-image {
        order: -1; /* Move image above text on small screens */
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-info {
        padding-right: 0;
        text-align: center;
    }

    .social-links {
        justify-content: center;
        margin-top: 20px;
    }

    .projects-grid.two-column-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Adjust for smaller screens */
    }

    .testimonials-grid.two-column-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-list {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: var(--transition);
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .nav-list li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .projects-grid,
    .testimonials-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
    
    .about-content {
        gap: 30px;
    }
    
    .contact-form {
        padding: 20px;
    }
}
.theme-toggle {
    position: fixed;
    bottom: 30px; /* Increased from 20px for more padding */
    right: 30px; /* Increased from 20px for more padding */
    background-color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 50px; /* Increased from 40px */
    height: 50px; /* Increased from 40px */
    cursor: pointer;
    font-size: 22px; /* Increased from 18px for a larger icon */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    z-index: 1001; /* Increased from 1000 to ensure it stays above other elements */
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: var(--secondary-color);
}

[data-theme="dark"] .theme-toggle {
    background-color: var(--dark-color);
    color: var(--text-light);
}

[data-theme="dark"] .theme-toggle:hover {
    background-color: var(--accent-color);
}

/* Ensure footer doesn't overlap */
.footer {
    position: relative;
    z-index: 1000; /* Lower than theme-toggle to avoid overlap */
}