/* Base Styles */
:root {
    /* Pastel color palette */
    --primary: #B3E0FF;      /* Soft pastel blue */
    --secondary: #F2F2F2;    /* Light gray */
    --accent: #F7C5BC;       /* Muted coral */
    --text: #333333;         /* Dark gray */
    --background: #FAFAFA;   /* Very light gray */
    --white: #FFFFFF;
    --dark-accent: #A1D2E7;  /* Darker shade of primary for hover effects */
}

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

body {
    font-family: 'Garamond', 'Crimson Text', Georgia, serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.8;
    font-size: 16px;
    letter-spacing: 0.3px;
}

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

h1, h2, h3, h4 {
    font-family: 'Garamond', 'Crimson Text', Georgia, serif;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    color: var(--text);
}

h1 {
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 400;
}

h3 {
    font-size: 1.3rem;
    font-weight: 500;
}

p {
    margin-bottom: 1.5rem;
}

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

a {
    text-decoration: none;
    color: var(--text);
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.section-desc {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    background-color: transparent;
    color: var(--text);
    padding: 12px 28px;
    border-radius: 0;
    font-weight: 400;
    transition: all 0.3s ease;
    border: 1px solid var(--text);
    cursor: pointer;
    font-family: 'Garamond', 'Crimson Text', Georgia, serif;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn:hover {
    background-color: var(--text);
    color: var(--white);
    box-shadow: none;
}

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

.center {
    text-align: center;
    margin: 3rem 0;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: none;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: 'Garamond', 'Crimson Text', Georgia, serif;
    font-weight: 400;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links a {
    position: relative;
    font-family: 'Garamond', 'Crimson Text', Georgia, serif;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--text);
    transition: width 0.3s ease;
}

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

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    margin-top: 70px; /* Offset fixed header */
    padding: 4rem 0;
    border-bottom: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-content {
    text-align: left;
    max-width: 450px;
}

.hero h1 {
    margin-bottom: 1.5rem;
    font-size: 3rem;
    font-weight: 400;
}

.hero p {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    line-height: 1.9;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-image img {
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background-color: var(--white);
}

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

.project-card {
    background-color: var(--white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.project-card:hover {
    border-color: var(--text);
    transform: none;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.4rem;
    font-weight: 500;
}

/* Carousel Styles */
.carousel-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    margin: 2rem 0;
}

.carousel {
    width: 50%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    padding: 0 15px;
    flex: 0 0 auto;
}

.carousel-content {
    background-color: var(--white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.carousel-content:hover {
    border-color: var(--text);
}

.carousel-content iframe {
    width: 100%;
    height: 250px;
    display: block;
}

.carousel-content h3, .carousel-content p {
    padding: 0 20px;
    font-family: 'Garamond', 'Crimson Text', Georgia, serif;
}

.carousel-content h3 {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 500;
}

.carousel-content p {
    padding-bottom: 20px;
}

.carousel-btn {
    background-color: transparent;
    border: 1px solid var(--text);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--text);
}

.carousel-btn:hover {
    background-color: var(--text);
    color: var(--white);
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border);
    margin: 0 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: var(--text);
}

/* Photography Section */
.photography {
    padding: 5rem 0;
    background-color: var(--white);
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 2rem;
}

.photo-item {
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.photo-item:hover {
    transform: none;
    border-color: var(--text);
}

/* Blog Section */
.blog {
    padding: 5rem 0;
    background-color: var(--white);
}

.blog-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 2rem;
}

.blog-post {
    background-color: var(--white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.blog-post:hover {
    border-color: var(--text);
    transform: none;
}

.blog-content {
    padding: 25px;
}

.date {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 1rem;
    font-family: 'Garamond', 'Crimson Text', Georgia, serif;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--text);
    font-weight: 400;
    position: relative;
    font-family: 'Garamond', 'Crimson Text', Georgia, serif;
}

.read-more:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--text);
    transition: width 0.3s ease;
}

.read-more:hover:after {
    width: 100%;
}

/* About/Hero Section - Contact Page */
.about-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    background-color: var(--primary);
    margin-top: 70px;
    padding: 5rem 0;
    border-bottom: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.profile-section {
    display: flex;
    justify-content: center;
}

.bio-section h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.bio-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--primary);
    text-align: center;
}

.contact-section {
    padding: 5rem 0;
    background-color: var(--white);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 2rem;
}

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

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--accent);
    color: var(--white);
}

.contact-info {
    margin-top: 2.5rem;
}

.contact-info a {
    color: var(--text);
    font-weight: 400;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
    font-size: 1.05rem;
}

.contact-info a:hover {
    border-color: var(--text);
}

/* Footer */
footer {
    background-color: var(--text);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

footer a {
    color: var(--text);
}

/* Media Queries */
@media screen and (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-grid .profile-section {
        order: 1;
    }

    .about-grid .bio-section {
        order: 2;
    }

    .bio-section h1 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

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

    .profile-circle {
        width: 250px;
        height: 250px;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        height: 0;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        overflow: hidden;
        transition: height 0.5s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        height: 250px;
    }

    .nav-links li {
        margin: 10px 0;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
    }

    .burger {
        display: block;
    }

    .projects-grid, .blog-preview {
        grid-template-columns: 1fr;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
    }

    .prev-btn {
        left: -10px;
    }

    .next-btn {
        right: -10px;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .photo-gallery {
        grid-template-columns: 1fr;
    }
    
    .carousel-content iframe {
        height: 200px;
    }
}

/* Blog Section - Updated styles for iframe content */
.blog-img {
    height: 150px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.blog-img iframe {
    margin-bottom: -5px; /* Fix any unwanted gap */
}

/* Override dark mode styles for blog iframes */
.dark-mode .blog-img iframe {
    opacity: 0.9; /* Slightly dim the iframe in dark mode */
}

@media screen and (min-width: 992px) {
    .blog-preview {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Profile circle styles */
.profile-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

.profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* For dark mode */
.dark-mode .profile-circle {
    border-color: var(--primary);
}