/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c9a86c;
    --primary-dark: #b8956a;
    --secondary-color: #2d3748;
    --text-color: #1a202c;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-dark: #1a202c;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-dark);
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('villa-night.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -2;
    /* iOS fix */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(201, 168, 108, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--text-light);
}

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

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--bg-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #128C7E;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    text-align: center;
}

.hero-content {
    flex: 1;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    background: rgba(201, 168, 108, 0.2);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    justify-content: center;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(201, 168, 108, 0.2);
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.feature p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.image-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* ===== Sections Common ===== */
section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Services Section ===== */
.services {
    background: rgba(0, 0, 0, 0.5);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 168, 108, 0.2);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(201, 168, 108, 0.2);
}

.service-card.featured-service {
    background: linear-gradient(135deg, rgba(201, 168, 108, 0.15), rgba(201, 168, 108, 0.05));
    border: 2px solid var(--primary-color);
    grid-column: span 2;
}

.service-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-card h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.service-card > p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.service-card ul {
    list-style: none;
    margin-bottom: 15px;
}

.service-card ul li {
    color: var(--text-light);
    padding: 5px 0;
    padding-right: 20px;
    position: relative;
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary-color);
}

.service-note {
    background: rgba(201, 168, 108, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

.cta-button {
    text-align: center;
}

/* ===== Categories Section ===== */
.categories {
    background: rgba(0, 0, 0, 0.6);
}

.category-group {
    margin-bottom: 50px;
}

.category-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(201, 168, 108, 0.3);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 168, 108, 0.2);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.category-card h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.category-card ul {
    list-style: none;
}

.category-card ul li {
    color: var(--text-light);
    padding: 5px 0;
    font-size: 0.95rem;
}

.category-card ul li::before {
    content: '•';
    color: var(--primary-color);
    margin-left: 8px;
}

/* ===== Styles Section ===== */
.styles {
    background: rgba(0, 0, 0, 0.5);
}

.styles-group {
    margin-bottom: 50px;
}

.styles-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 25px;
    text-align: center;
}

.styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.style-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 168, 108, 0.2);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
}

.style-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.style-card.trending {
    border-color: var(--primary-color);
    background: rgba(201, 168, 108, 0.1);
}

.style-card.trending::after {
    content: '🔥';
    position: absolute;
    top: 10px;
    left: 10px;
}

.style-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.style-card h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

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

/* ===== Colors Section ===== */
.colors {
    background: rgba(0, 0, 0, 0.6);
}

.colors-group {
    margin-bottom: 50px;
}

.colors-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 25px;
    text-align: center;
}

.color-trends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.trend-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 168, 108, 0.2);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.trend-colors {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.trend-colors span {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.trend-card h4 {
    color: var(--white);
    margin-bottom: 10px;
}

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

.room-colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.room-color-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 168, 108, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.room-color-card h4 {
    color: var(--white);
    margin-bottom: 15px;
}

.room-palette {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.room-palette span {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.room-color-card p {
    color: var(--text-light);
    font-size: 0.85rem;
}

.color-cta {
    background: linear-gradient(135deg, rgba(201, 168, 108, 0.2), rgba(201, 168, 108, 0.05));
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
}

.color-cta h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.color-cta p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* ===== Contact Section ===== */
.contact {
    background: rgba(0, 0, 0, 0.5);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(201, 168, 108, 0.2);
}

.contact-icon {
    font-size: 2rem;
}

.contact-item h4 {
    color: var(--white);
    margin-bottom: 5px;
}

.contact-item a,
.contact-item p {
    color: var(--text-light);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(201, 168, 108, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(201, 168, 108, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

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

.form-group select option {
    background: var(--bg-dark);
    color: var(--white);
}

/* ===== Footer ===== */
.footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 50px 20px 20px;
    border-top: 1px solid rgba(201, 168, 108, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.footer-brand p {
    color: var(--text-light);
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s;
}

.footer-social a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(201, 168, 108, 0.1);
}

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

/* ===== WhatsApp Float Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
    }

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

    .hero-buttons {
        justify-content: center;
    }

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

    .service-card.featured-service {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 32, 44, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-buttons {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

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

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

/* About Section */
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.95) 0%, rgba(45, 55, 72, 0.95) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 168, 108, 0.2);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(201, 168, 108, 0.15);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.about-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-card strong {
    color: var(--primary-color);
}

.values-section {
    margin-top: 50px;
}

.values-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.value-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 168, 108, 0.15);
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    background: rgba(201, 168, 108, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.value-card h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.value-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Responsive for About Section */
@media (max-width: 992px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}


/* Social Links in Contact Section */
.social-links-contact {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links-contact a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 5px 12px;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-links-contact a:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

/* iOS Safari Background Fix */
@supports (-webkit-touch-callout: none) {
    body::before {
        background-attachment: scroll;
        height: 100vh;
        height: -webkit-fill-available;
    }
}

/* Additional iOS fix for older devices */
@media screen and (max-width: 768px) {
    body::before {
        background-attachment: scroll;
        background-position: center top;
    }
}


/* Portfolio Section */
.portfolio {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(45, 45, 45, 0.9) 100%);
}

.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: #1a1a1a;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio-grid.hidden {
    display: none;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.portfolio-overlay p {
    color: #ccc;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Full Project Section Styles */
.project-intro {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(201, 168, 108, 0.15), rgba(30, 30, 30, 0.8));
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--primary-color);
}

.project-intro h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 10px;
}

.project-intro p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.portfolio-item.full-width {
    grid-column: 1 / -1;
}

.portfolio-item.full-width img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

#fullproject .portfolio-item img {
    object-fit: contain;
    background: #f5f5f5;
}

#fullproject .portfolio-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .project-intro h3 {
        font-size: 1.5rem;
    }
    
    .portfolio-item.full-width {
        grid-column: 1;
    }
}

/* Video Item Styles */
.portfolio-item.video-item {
    position: relative;
}

.portfolio-item.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.portfolio-item.video-item .portfolio-overlay {
    pointer-events: none;
}

.portfolio-item.video-item:hover .portfolio-overlay {
    transform: translateY(0);
}

/* Commercial Cards Styles */
.commercial-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.commercial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(201, 168, 108, 0.3);
}

.commercial-card .card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.commercial-card .view-gallery {
    display: block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.commercial-card:hover .view-gallery {
    text-decoration: underline;
}

/* Gallery Modal Styles */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.gallery-modal-content {
    background: var(--bg-dark);
    border-radius: 20px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    border: 1px solid rgba(201, 168, 108, 0.3);
}

.gallery-close {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.gallery-close:hover {
    color: #fff;
}

.gallery-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 30px;
    padding-top: 10px;
}

.gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item p {
    padding: 15px;
    text-align: center;
    color: #fff;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .gallery-images {
        grid-template-columns: 1fr;
    }
    
    .gallery-modal-content {
        padding: 20px;
    }
    
    .gallery-title {
        font-size: 1.5rem;
    }
}
