/*
Template Name: PhotoFolio
Description: A modern, responsive portfolio template for photographers.
Author: Gemini
Version: 1.0
*/

/* ======== GLOBAL STYLES & VARIABLES ======== */
:root {
    --primary-font: 'Montserrat', sans-serif;
    --secondary-font: 'Playfair Display', serif;
    --primary-color: #2c2c2c;
    --secondary-color: #f4f4f4;
    --accent-color: #bfa57f; /* Muted gold for elegance */
    --background-color: #ffffff;
    --container-width: 1140px;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--primary-font);
    line-height: 1.7;
    color: var(--primary-color);
    background-color: var(--background-color);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--secondary-font);
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
    font-size: 1.1rem;
    color: #666;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #a88e6a;
    transform: translateY(-3px);
}

.text-center {
    text-align: center;
    margin-top: 40px;
}

img {
    max-width: 100%;
    height: auto;
}

/* ======== HEADER & NAVIGATION ======== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: top var(--transition-speed) ease;
}

.header.hide {
    top: -100px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    font-family: var(--secondary-font);
    font-size: 1.8rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 35px;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 5px;
    transition: color var(--transition-speed) ease;
}

.nav-link.active, .nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all var(--transition-speed) ease-in-out;
}

/* ======== HERO SECTION ======== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/assets/img/bridge-9599215_1920.jpg') no-repeat center center/cover;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-content {
    transform: translateY(-50px);
    animation: slideUp 1s ease-out forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(0); }
    to { opacity: 1; transform: translateY(-50px); }
}

.hero-title {
    font-family: var(--secondary-font);
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 400;
}

/* ======== PORTFOLIO & GALLERY ======== */
.portfolio-grid, .portfolio-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.portfolio-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 30px;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-family: var(--secondary-font);
    transform: translateY(20px);
    transition: transform var(--transition-speed) ease;
}

.portfolio-overlay p {
    transform: translateY(20px);
    transition: transform var(--transition-speed) ease 0.1s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

/* Filter Buttons */
.filter-buttons {
    text-align: center;
    margin-bottom: 50px;
}

.filter-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    transition: color var(--transition-speed) ease;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

.filter-btn.active, .filter-btn:hover {
    color: var(--accent-color);
}

.filter-btn.active::after, .filter-btn:hover::after {
    width: 100%;
}


/* ======== LIGHTBOX ======== */
.lightbox {
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: transform var(--transition-speed) ease;
}
.lightbox-close:hover {
    transform: scale(1.1);
}

/* ======== ABOUT PAGE ======== */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}
.about-image {
    flex: 1;
}
.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.about-text {
    flex: 1.5;
}
.skills {
    margin-top: 80px;
}
.skills-title {
    text-align: center;
    font-family: var(--secondary-font);
    font-size: 2rem;
    margin-bottom: 40px;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.skill-item {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

/* ======== SERVICES PAGE ======== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.service-card {
    border: 1px solid #eee;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    transition: box-shadow var(--transition-speed) ease, transform var(--transition-speed) ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.service-card h3 {
    font-family: var(--secondary-font);
}
.service-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 20px 0;
}
.service-card ul {
    list-style: none;
    margin-bottom: 30px;
}
.service-card ul li {
    margin-bottom: 10px;
}

/* ======== BLOG PAGE ======== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}
.blog-post {
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    border-radius: 8px;
    overflow: hidden;
}
.blog-post-content {
    padding: 30px;
}
.post-meta {
    font-size: 0.9rem;
    color: #888;
    margin: 10px 0;
}
.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
}

/* ======== CONTACT PAGE ======== */
.contact-wrapper {
    display: flex;
    gap: 50px;
    background: var(--secondary-color);
    padding: 50px;
    border-radius: 8px;
}
.contact-info, .contact-form {
    flex: 1;
}
.contact-info h3 {
    font-family: var(--secondary-font);
}
.contact-social a {
    display: inline-block;
    margin-right: 15px;
    margin-top: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}
.form-group {
    margin-bottom: 20px;
    position: relative;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--primary-font);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Form Validation Styles */
.form-group .error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    display: none;
    margin-top: 5px;
}
.form-group.error input, .form-group.error textarea {
    border-color: #e74c3c;
}
.form-group.error .error-message {
    display: block;
}

#form-status {
    margin-top: 15px;
    font-weight: 700;
}

/* ======== FOOTER ======== */
.footer {
    background: var(--primary-color);
    color: #aaa;
    padding: 40px 0;
    text-align: center;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-brand h2 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}
.footer-social a {
  color: #fff;
  margin: 0 10px;
  font-size: 1.5rem;
  transition: color var(--transition-speed) ease;
}
.footer .footer-social a:hover {
  color: var(--secondary-color);
  transform: translateY(-3px);
}

/* ======== RESPONSIVE DESIGN ======== */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }
    .about-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 20px 0;
    }

    .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);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .portfolio-grid, .portfolio-grid-full {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        flex-direction: column;
        padding: 30px;
    }

   .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

    .footer-content p {
        margin-bottom: 20px;
    }

    .social-links a {
        margin: 0 10px;
    }
}
