/*
Theme Name: Capture Wing
Theme URI: http://example.com/capture-wing
Author: Antigravity
Author URI: http://example.com
Description: A premium photography studio theme for Capture Wing.
Version: 1.3
License: GNU General Public License v2 or later
Text Domain: capturewing
*/

:root {
    --primary-color: #d4af37;
    /* Premium Gold */
    --primary-dark: #b5952f;
    --bg-dark: #ffffff;
    /* White Background */
    --bg-card: #f9f9f9;
    /* Light Card Background */
    --text-main: #333333;
    /* Dark Text */
    --text-muted: #666666;
    /* Muted Text */
    --font-heading: 'Optima', 'Segoe UI', serif;
    --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-top: 0;
    line-height: 1.3;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero Carousel */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 25%;
    /* Shift up slightly to keep heads in frame */
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.05);
    /* Start with a slight scale */
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1.1);
        /* Reduced max zoom to prevent excessive edge cutting */
    }
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content .tagline {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--primary-color);
    font-style: italic;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Header */
.site-header {
    background: transparent;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
}

.site-header.scrolled {
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.site-header .container>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-branding h1 {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    color: #222;
    /* Dark Text */
}

.site-branding a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.site-branding .tagline {
    display: none;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 40px;
}

.main-navigation a {
    color: #fff;
    /* White Text for Transparency */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    padding-bottom: 5px;
    position: relative;
    text-decoration: none;
}

/* Hover Effect - Gold Underline */
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item>a::after {
    width: 100%;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.site-branding h1 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
}

.site-branding a {
    color: #333;
    text-decoration: none;
}

.site-branding .tagline {
    color: var(--primary-color);
    font-size: 0.9rem;
    display: block;
    letter-spacing: 1px;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: #333;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.main-navigation a:hover,
.main-navigation .current-menu-item>a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Mobile Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

/* Force white text in Hero because it has a dark overlay */
.hero-content h1,
.hero-content p {
    color: #fff;
}

.hero-content .tagline {
    color: var(--primary-color);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn:hover {
    background: transparent;
    color: var(--primary-color);
}

/* Services Grid */
.services-section {
    background-color: var(--bg-dark);
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-card);
    width: 100%;
    margin: 0 auto;
    height: 300px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.service-card {
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    height: 250px;
    width: 100%;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay by default */
    transition: background 0.3s;
    z-index: 1;
}

.service-card:hover .service-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.service-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}



.service-card h3 {
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 1.3rem;
    margin: 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

/* About Preview Section */
.about-preview {
    background: #fff;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.about-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h4 {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 20px;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    line-height: 1.2;
    color: #333;
}

.about-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.about-stat-item {
    flex: 1;
}

.about-stat-item .number {
    display: block;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.about-stat-item .label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #777;
    letter-spacing: 1px;
}

.about-image-column {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-image-wrapper {
    position: relative;
    z-index: 1;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    opacity: 0.1;
    z-index: -1;
}

.about-main-img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-image-badge {
    position: absolute;
    bottom: -30px;
    right: 30px;
    width: 160px;
    height: 160px;
    border: 8px solid #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.about-image-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Feature Cards on Homepage */
.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    padding: 40px 30px;
    background: #fdfdfd;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    border-bottom: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--primary-color);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 25px;
    display: block;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.page-header {
    padding: 180px 0 80px !important;
}

/* Footer */
.site-footer {
    background-color: #f9f9f9;
    /* Light background */
    border-top: 4px solid var(--primary-color);
    color: #666;
    /* Darker text */
    padding: 60px 0 20px;
    font-size: 0.95rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #333;
    /* Dark heading */
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
    text-align: left;
    /* Default left align */
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.brand-widget {
    text-align: center;
}

.links-widget ul li {
    border-bottom: 1px solid #222;
}

.links-widget ul li:last-child {
    border-bottom: none;
}

.links-widget ul li a:hover {
    padding-left: 10px;
    /* Slide effect */
    color: var(--primary-color) !important;
}

.contact-widget ul li {
    font-size: 0.95rem;
    line-height: 1.6;
}


/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* Responsive */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        padding: 100px 30px 40px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        display: block !important;
    }

    .main-navigation.mobile-active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .main-navigation a {
        font-size: 1.1rem;
        color: #333;
    }

    .hero-content h1 {
        font-size: 2.5rem !important;
    }

    .hero-content .tagline {
        font-size: 1.1rem !important;
    }

    .site-header {
        background: #fff !important;
        padding: 15px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .site-branding img {
        max-height: 80px !important;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-grid-premium {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-preview .container>div {
        flex-direction: column;
        gap: 40px !important;
    }

    .column {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem !important;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        padding: 0 10px;
    }

    .service-card {
        height: 200px;
        max-width: 100%;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    }

    .video-card-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem !important;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.9rem !important;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .service-card {
        height: 180px;
    }

    .service-card h3 {
        font-size: 1rem;
    }
}

/* Gallery Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.03);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox Styles */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#lightbox.active {
    opacity: 1;
    pointer-events: all;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 2px solid #fff;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.3s;
    box-sizing: border-box;
    /* Fix padding issue */
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.contact-form textarea {
    resize: vertical;
}

/* Portfolio Redesign */
.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.portfolio-tab-btn {
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    padding: 10px 20px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -21px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.portfolio-tab-btn.active {
    color: var(--primary-color);
}

.portfolio-tab-btn.active::after {
    width: 100%;
}

/* Photo Filter Buttons */
.photo-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    background: #f8f8f8;
    border: 1px solid #eee;
    padding: 8px 25px;
    border-radius: 30px;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.portfolio-content-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.portfolio-content-section.active {
    display: block;
}

/* Masonry Grid */
.masonry-grid {
    column-count: 3;
    column-gap: 30px;
}

@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .masonry-grid {
        column-count: 1;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.masonry-item:hover {
    transform: translateY(-5px);
}

.masonry-item img {
    width: 100%;
    display: block;
    height: auto;
    transition: transform 0.5s ease;
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

.masonry-overlay .plus-icon {
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

/* Video Grid */
.video-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.video-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    aspect-ratio: 16 / 9;
}

.video-card img,
.video-card iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.video-card:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.play-btn-circle {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.video-card:hover .play-btn-circle {
    transform: scale(1.15);
    background: var(--primary-color);
}

.video-card h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Modal / Lightbox */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content-wrapper {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.portfolio-modal.active .modal-content-wrapper {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* Loading Spinner */
.portfolio-loader {
    text-align: center;
    padding: 50px 0;
    opacity: 0;
    min-height: 50px;
    transition: opacity 0.3s ease;
}

.portfolio-loader.visible {
    opacity: 1;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(212, 175, 55, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2;
    }
}

/* Contact Page Redesign */
/* Premium Contact Form Sections */

.contact-info-section {
    padding: 100px 0;
    background: #fff;
}

.contact-grid-premium {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info-card {
    background: #fdfdfd;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.info-box {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.info-box:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
}

.info-content p,
.info-content a {
    color: #777;
    margin: 0;
    text-decoration: none;
    line-height: 1.6;
}

/* Premium Form */
.premium-form-container {
    background: #fff;
}

.premium-form-container h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.premium-form-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.premium-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.premium-form .form-group {
    margin-bottom: 25px;
}

.premium-form input,
.premium-form select,
.premium-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.premium-form input:focus,
.premium-form select:focus,
.premium-form textarea:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1);
    outline: none;
}

/* Map Container */
.contact-map-premium {
    margin-top: 80px;
    border-radius: 20px;
    overflow: hidden;
    height: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
    .contact-grid-premium {
        grid-template-columns: 1fr;
    }

    .contact-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .premium-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-float {
    width: 65px;
    height: 65px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.whatsapp-tooltip {
    background: #fff;
    color: #333;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    position: relative;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 25px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #fff;
}

.whatsapp-float-container:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float-container {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

/* About Page Specific Responsiveness */
.about-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 60px !important;
    margin-bottom: 60px;
}

.about-grid .about-text {
    flex: 1 1 450px;
    min-width: 300px;
}

.about-grid .about-image {
    flex: 1 1 450px;
    min-width: 300px;
}

.features-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    margin-top: 40px;
}

.stats-section {
    margin: 80px 0;
    padding: 60px 0;
    background: #f9f9f9;
    border-radius: 15px;
}

.why-us {
    margin: 60px 0;
}

.why-us-header {
    text-align: center;
    margin-bottom: 50px;
}

.why-us-header .section-title {
    color: #333;
    margin-bottom: 20px;
}

.why-us-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.about-cta {
    text-align: center;
    margin: 80px 0 60px;
    padding: 50px 20px;
    background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
    border-radius: 15px;
    border: 2px dashed var(--primary-color);
}

.services-list ul {
    grid-template-columns: 1fr !important;
}

@media (max-width: 768px) {
    .about-grid {
        gap: 40px !important;
    }

    .about-grid .about-text,
    .about-grid .about-image {
        flex: 1 1 100%;
    }

    .stats-section {
        margin: 60px 0;
        padding: 40px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

@media (max-width: 600px) {
    .about-image div:last-child {
        position: static !important;
        max-width: 100% !important;
        margin-top: 20px;
        transform: none !important;
    }

    .page-header h1 {
        font-size: 2.2rem !important;
    }

    .about-grid {
        gap: 30px !important;
    }
}

/* --- Responsive Optimization --- */

.services-section,
.contact-preview,
.portfolio-main-container,
.about-main-container {
    padding: clamp(40px, 8vw, 80px) 20px;
}

.hero-content h1 {
    font-size: clamp(2rem, 8vw, 4rem) !important;
}

.hero-content .tagline {
    font-size: clamp(1rem, 3vw, 1.5rem) !important;
}

.page-header h1.page-title {
    font-size: clamp(2rem, 7vw, 3.5rem);
    margin-bottom: 10px;
}

.page-header p.page-tagline {
    color: var(--primary-color);
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-text-col,
.map {
    flex: 1;
    min-width: 280px;
}

.map {
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
}

.sub-heading {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

.main-heading {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 25px;
    line-height: 1.2;
    color: #333;
}

.services-box {
    margin-top: 30px;
    background: #fff;
    padding: clamp(15px, 4vw, 25px);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.expertise-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    color: #666;
}

.quote-badge {
    position: absolute;
    bottom: 40px;
    right: -30px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--primary-color);
    max-width: 250px;
}

@media (max-width: 600px) {
    .quote-badge {
        position: relative;
        right: 0;
        bottom: 0;
        margin-top: 20px;
        max-width: 100%;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    text-align: center;
    gap: 40px;
}

.portfolio-cta {
    text-align: center;
    margin-top: clamp(40px, 6vw, 60px);
    padding: clamp(25px, 5vw, 40px);
    background: #f9f9f9;
    border-radius: 15px;
    border: 1px dashed var(--primary-color);
}

.portfolio-cta h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
}

.portfolio-cta h3 a {
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 60px;
}

.about-cta .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    display: inline-block;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .about-cta .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* --- Mobile Banner Height Fix --- */
@media (max-width: 768px) {
    .page-header {
        min-height: 350px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        background-size: cover !important;
        background-position: center !important;
    }

    .about-cta {
        margin: 60px 0 40px;
        padding: 35px 15px;
    }
}

/* --- Prevent Horizontal Scroll on Mobile --- */
body,
html {
    overflow-x: hidden;
    max-width: 100%;
}

.container {
    max-width: 100%;
    overflow-x: hidden;
}

.about-grid,
.features-grid,
.services-grid {
    overflow-x: hidden;
}

.quote-badge {
    right: 0 !important;
}

/* Prevent overflow from negative positioning */
@media (max-width: 768px) {
    * {
        max-width: 100vw;
    }

    .quote-badge {
        right: 10px !important;
        left: auto !important;
    }

    .image-wrapper {
        overflow: hidden;
    }
}

/* --- Page Header Spacing Fix --- */
.page-header {
    padding-top: 160px !important;
    padding-bottom: 120px !important;
}

@media (max-width: 768px) {
    .page-header {
        padding-top: 120px !important;
        padding-bottom: 80px !important;
    }
}

/* --- Quote Badge Alignment Fix --- */
.image-wrapper {
    position: relative;
    display: inline-block;
}

.quote-badge p {
    margin: 0;
    line-height: 1.6;
}

/* --- Quote Badge Premium Redesign --- */
.quote-badge {
    position: absolute !important;
    bottom: 30px !important;
    right: 20px !important;
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%) !important;
    padding: 25px 30px !important;
    border-radius: 15px !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    border-left: 4px solid var(--primary-color) !important;
    max-width: 280px !important;
    font-style: italic !important;
    color: #555 !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
}

@media (max-width: 768px) {
    .quote-badge {
        position: static !important;
        margin: 20px auto 0 !important;
        max-width: 90% !important;
        right: auto !important;
    }
}