/*
Theme Name: Maria Zaman Portfolio
Theme URI: https://mariaz.design
Author: Maria Zaman
Author URI: https://mariaz.design
Description: A modern, elegant portfolio theme for interior architecture and design professionals. Features a responsive layout, smooth animations, and seamless project showcase capabilities.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mariazaman-portfolio
Tags: portfolio, architecture, design, interior-design, responsive, custom-post-types, featured-images

This theme supports custom post types for Projects and uses WordPress customizer for easy configuration.
*/

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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #c9a961;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* WordPress Core Styles */
.alignnone {
    margin: 20px 0;
}

.aligncenter {
    display: block;
    margin: 20px auto;
}

.alignright {
    float: right;
    margin: 10px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 10px 20px 20px 0;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-link:hover::after,
.nav-link.current-menu-item::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    margin-top: 60px;
    z-index: 1;
}

/* Hero overlay for background images */
.hero.has-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.7) 100%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    opacity: 0.7;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: var(--white);
    margin-top: 10px;
    animation: scrollDown 2s infinite;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #b39754;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 169, 97, 0.3);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* About Section */
.about {
    background: var(--bg-light);
    position: relative;
    z-index: 2;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-text h3,
.about-text h4 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-text h3 {
    font-size: 1.8rem;
}

.about-text h4 {
    font-size: 1.4rem;
}

.about-text ul,
.about-text ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-text li {
    margin-bottom: 0.5rem;
}

.about-text strong {
    color: var(--text-dark);
    font-weight: 600;
}

.about-text a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.about-text a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

section.projects {
    position: relative;
    z-index: 2;
}

.project-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
}

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

.project-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--bg-light);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

/* Better aspect ratio on larger screens - reduces zoom effect */
@media (min-width: 768px) {
    .project-image {
        height: 340px;
    }
}

@media (min-width: 1200px) {
    .project-image {
        height: 380px;
    }
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.project-info h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.project-info h3 a:hover {
    color: var(--secondary-color);
}

.project-category {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.project-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-description p {
    margin: 0;
}

.project-info .entry-content p {
    margin-bottom: 0.5rem;
}

/* Single Project Page */
.project-single {
    padding: 100px 0 80px;
}

.project-header {
    text-align: center;
    margin-bottom: 60px;
}

.project-content {
    margin: 40px 0;
    line-height: 1.8;
}

.project-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.project-content h2,
.project-content h3,
.project-content h4 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.project-content h2 {
    font-size: 2rem;
}

.project-content h3 {
    font-size: 1.6rem;
}

.project-content h4 {
    font-size: 1.3rem;
}

.project-content ul,
.project-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: var(--text-light);
}

.project-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.project-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.project-content em {
    font-style: italic;
}

.project-content a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.project-content a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.project-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
}

.project-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 5px;
}

.project-content .wp-block-image {
    margin: 2rem 0;
}

.project-featured-image {
    margin-bottom: 40px;
}

.project-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* WordPress Block Editor Styles in Project Content */
.project-content .wp-block-gallery,
.project-content .blocks-gallery-grid {
    margin: 2rem 0;
}

.project-content .wp-block-columns {
    margin: 2rem 0;
}

.project-content .wp-block-column {
    margin-bottom: 1rem;
}

.project-content .wp-block-separator {
    margin: 3rem 0;
    border-top: 2px solid var(--bg-light);
}

.project-content .wp-block-quote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
    margin: 2rem 0;
    font-style: italic;
}

.project-content .wp-block-pullquote {
    border-top: 4px solid var(--secondary-color);
    border-bottom: 4px solid var(--secondary-color);
    padding: 2rem 0;
    margin: 3rem 0;
    text-align: center;
}

.project-content .wp-block-button__link {
    background: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.project-content .wp-block-button__link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Fix paragraph spacing issues */
.project-content > p:first-child {
    margin-top: 0;
}

.project-content > p:last-child {
    margin-bottom: 0;
}

/* Ensure WordPress auto-paragraphs work */
.project-content br {
    line-height: 1.8;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.project-gallery img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.project-details {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    margin: 40px 0;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.meta-item h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1rem;
}

/* Contact Section */
.contact {
    background: var(--bg-light);
    position: relative;
    z-index: 2;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info h3 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.info-item {
    margin-bottom: 20px;
}

.info-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-light);
}

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

.social-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
}

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

.footer p {
    margin: 0;
}

.footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

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

/* WordPress Widgets */
.widget {
    margin-bottom: 40px;
}

.widget-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

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

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

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

    .section-title {
        font-size: 2rem;
    }

    .project-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}
