/*
Theme Name: Cavra Studio
Theme URI: https://cavrastudio.site
Author: Cavra Studio
Author URI: https://cavrastudio.site
Description: A modern, creative WordPress theme for Cavra Studio - a photography, graphic design, and web design studio.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cavra-studio
Tags: photography, portfolio, creative, modern, responsive
*/

/* ==========================================
   CAVRA STUDIO - MAIN STYLESHEET
   ========================================== */

/* CSS Variables */
:root {
    --primary-green: #2a3a2e;
    --light-green: #3d5240;
    --accent-green: #4a6350;
    --cream: #f5f4f0;
    --white: #ffffff;
    --text-light: #e8e8e8;
    --text-dark: #1a1a1a;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Montserrat', sans-serif;
    --font-display: 'Playfair Display', serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--cream);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(42, 58, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.main-nav.scrolled {
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-cavra {
    font-size: 1.8rem;
}

.logo-studio {
    font-size: 0.8rem;
    letter-spacing: 4px;
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
}

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

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    position: relative;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.title-line:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 2px;
    opacity: 0.9;
    margin-bottom: 40px;
    animation: fadeIn 1s ease 0.8s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 0.9;
    }
}

.hero-cta {
    display: inline-block;
    padding: 18px 50px;
    background: var(--cream);
    color: var(--primary-green);
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--transition);
    animation: fadeIn 1s ease 1s forwards;
    opacity: 0;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 244, 240, 0.3);
}

/* Hero Background Animation */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 244, 240, 0.1) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

.particle:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.particle:nth-child(3) {
    bottom: 10%;
    left: 50%;
    animation-delay: 10s;
}

.particle:nth-child(4) {
    top: 30%;
    right: 30%;
    width: 150px;
    height: 150px;
    animation-delay: 15s;
}

.particle:nth-child(5) {
    bottom: 20%;
    left: 20%;
    width: 250px;
    height: 250px;
    animation-delay: 7s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

/* ==========================================
   CLIENT LOGOS SLIDER
   ========================================== */

.clients-section {
    padding: 80px 0;
    background: var(--white);
    overflow: hidden;
}

.clients-section h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 50px;
}

.clients-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.clients-slider {
    display: flex;
    gap: 60px;
    animation: scroll 30s linear infinite;
    will-change: transform;
}

.clients-slider.paused {
    animation-play-state: paused;
}

.clients-slider-item {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.clients-slider-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.clients-slider-item:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Duplicate logos for seamless loop */
.clients-slider::after {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 200px;
}

/* ==========================================
   FILTER SECTION
   ========================================== */

.filter-section {
    padding: 80px 0 40px;
    background: var(--cream);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: var(--white);
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 58, 46, 0.2);
}

/* ==========================================
   PROJECTS GRID
   ========================================== */

.projects-grid {
    padding: 40px 0 100px;
    background: var(--cream);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

.project-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpGrid 0.6s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
.project-card:nth-child(7) { animation-delay: 0.7s; }
.project-card:nth-child(8) { animation-delay: 0.8s; }
.project-card:nth-child(9) { animation-delay: 0.9s; }

@keyframes fadeInUpGrid {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card.hide {
    display: none;
}

.project-link {
    display: block;
    height: 100%;
}

.project-image {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--primary-green);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(42, 58, 46, 0.95) 0%, rgba(42, 58, 46, 0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    opacity: 0;
    transition: var(--transition);
}

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

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-category {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cream);
    opacity: 0.8;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.project-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--white);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

.project-card:hover .project-category,
.project-card:hover .project-title {
    transform: translateY(0);
}

/* ==========================================
   CTA SECTION
   ========================================== */

.cta-section {
    padding: 100px 0;
    background: var(--primary-green);
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--white);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-block;
    padding: 18px 50px;
    background: var(--cream);
    color: var(--primary-green);
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 244, 240, 0.3);
}

/* ==========================================
   FOOTER
   ========================================== */

.main-footer {
    background: var(--primary-green);
    color: var(--text-light);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3,
.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links a {
    opacity: 0.8;
    transition: var(--transition);
}

.social-links a:hover {
    opacity: 1;
    color: var(--cream);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(245, 244, 240, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-bottom-left a {
    opacity: 0.6;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-bottom-left a:hover {
    opacity: 1;
}

.footer-bottom-right {
    opacity: 0.6;
    font-size: 0.9rem;
}

.footer-bottom-right a {
    color: var(--cream);
    font-weight: 600;
    transition: var(--transition);
}

.footer-bottom-right a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.6;
}

/* Footer Menu */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-menu li a:hover {
    opacity: 1;
    padding-left: 5px;
}

/* Contact Info Footer */
.contact-info-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    margin: 0;
    opacity: 0.8;
}

.contact-item a {
    color: var(--text-light);
    transition: var(--transition);
}

.contact-item a:hover {
    opacity: 1;
    color: var(--cream);
}

.social-icons-footer {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon-footer {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    opacity: 0.8;
    transition: var(--transition);
    border-radius: 5px;
}

.social-icon-footer:hover {
    opacity: 1;
    color: var(--cream);
    background: rgba(245, 244, 240, 0.1);
    transform: translateY(-3px);
}

.social-icon-footer svg {
    width: 20px;
    height: 20px;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(42, 58, 46, 0.98);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: left 0.3s ease;
    }

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

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 5rem);
    }

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

    .project-image {
        height: 400px;
    }

    .filter-buttons {
        gap: 10px;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-left {
        justify-content: center;
    }
}

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

    .project-image {
        height: 300px;
    }

    .project-title {
        font-size: 1.5rem;
    }

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

    .clients-slider-item {
        width: 150px;
        height: 90px;
    }
}
