@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&display=swap');

/* ==================== VARIABLES ==================== */
:root {
    --bg: #e6e6e4;
    --text: #111;
    --muted: #666;
    --pill: #f1f1ef;
    --accent: rgb(36, 36, 36);
    --white: #fff;
    --black: #000;
}

body.dark {
    --bg: #111;
    --text: #f5f5f5;
    --muted: #aaa;
    --pill: #1d1d1d;
    --accent: #8aa889;
}

/* ==================== RESET ==================== */
html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==================== PRELOADER ==================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader img {
    width: 120px;
    height: auto;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

body {
    font-family: "Google Sans Flex", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background 0.4s ease, color 0.4s ease;
    min-height: 200vh;
    overflow-x: hidden;
}

/* RTL Support */
[dir="rtl"],
[dir="rtl"] body {
    font-family: "Tajawal", sans-serif;
    text-align: right;
}

[dir="rtl"] .nav-links a::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .nav-links a::before {
    left: auto;
    right: -20px;
}

[dir="rtl"] .nav-links a:hover::before {
    left: auto;
    right: -22px;
}

[dir="rtl"] .btn-icon {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .btn {
    padding: 10px 6px 10px 25px;
}

[dir="rtl"] .btn-icon i {
    transform: scaleX(-1);
}

[dir="rtl"] .glass-btn .btn-icon i {
    transform: scaleX(-1);
}

[dir="rtl"] .hero .glass-btn .btn-icon i {
    transform: scaleX(-1);
}

[dir="rtl"] .hero h1 {
    line-height: 1.2;
}

[dir="rtl"] .mobile-menu {
    right: auto;
    left: -100%;
    transition: left 0.4s ease;
}

[dir="rtl"] .mobile-menu.active {
    right: auto;
    left: 0;
}

/* RTL Button Animation */
[dir="rtl"] .btn:hover .btn-icon i {
    animation: slideLeft 0.6s ease-in-out;
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-10px);
        opacity: 0;
    }

    51% {
        transform: translateX(10px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

[dir="rtl"] .toggle-slider {
    left: auto;
    right: 0;
}

[dir="rtl"] body.dark .toggle-slider {
    left: auto;
    right: calc(100% - 30px);
}

[dir="rtl"] .service-card::before {
    transform-origin: right;
}

[dir="rtl"] .cta-section img {
    left: 0;
    right: auto;
    transform: scaleX(-1);
}

/* ==================== NAVIGATION ==================== */
.nav-wrap {
    max-width: 1200px;
    margin: 24px auto;
    padding: 12px 20px;
    background: rgba(241, 241, 239, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.4s ease, border-color 0.4s ease;
    position: sticky;
    top: 30px;
    z-index: 999;
}

body.dark .nav-wrap {
    background: rgba(29, 29, 29, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.logo img {
    height: 20px;
    display: block;
}

/* Desktop Navigation Links */
.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 16px;
    font-weight: 400;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Navigation Hover Effect - Sparkle */
.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 16px;
    font-weight: 400;
    position: relative;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 16px;
    height: 16px;
    background-image: url('../sparkles.svg');
    /* Using relative path, assuming css is in public/css */
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-links a:hover::before {
    transform: translateY(-50%) scale(1) rotate(15deg);
    opacity: 1;
    left: -22px;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ==================== DARK MODE TOGGLE SWITCH (FIXED) ==================== */
.dark-toggle-switch {
    position: relative;
    width: 80px;
    height: 45px;
    background: var(--pill);
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

body.dark .dark-toggle-switch {
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-toggle-switch:hover {
    opacity: 0.9;
}

.toggle-icons {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px;
}

.toggle-icons i {
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 1;
}

.toggle-icons .fa-sun {
    color: #fff;
}

.toggle-icons .fa-moon {
    color: #7e7e7e;
}

body.dark .toggle-icons .fa-sun {
    color: #7e7e7e;
}

body.dark .toggle-icons .fa-moon {
    color: #fff;
}

.toggle-slider {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--accent);
    border-radius: 50%;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 0;
}

body.dark .toggle-slider {
    left: calc(100% - 30px);
    background: var(--accent);
}

/* ==================== BUTTON STYLES (UPDATED) ==================== */
.btn {
    padding: 10px 25px 10px 6px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
    height: 45px;
    text-decoration: none;
    width: fit-content;
}

.btn:hover {
    opacity: 0.9;
}

.btn:active {
    opacity: 0.8;
}

.btn-icon {
    background: var(--white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: transform 0.3s ease;
    position: relative;
}

.btn-icon i {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Sliding Arrow Animation */
.btn:hover .btn-icon i {
    animation: slideRight 0.6s ease-in-out;
}

@keyframes slideRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    50% {
        transform: translateX(10px);
        opacity: 0;
    }

    51% {
        transform: translateX(-10px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* RTL Icon Animation Fix */
[dir="rtl"] .btn:hover .btn-icon i {
    animation: slideLeftRTL 0.6s ease-in-out;
}

@keyframes slideLeftRTL {
    0% {
        transform: translateX(0) scaleX(-1);
        opacity: 1;
    }

    50% {
        transform: translateX(-10px) scaleX(-1);
        opacity: 0;
    }

    51% {
        transform: translateX(10px) scaleX(-1);
        opacity: 0;
    }

    100% {
        transform: translateX(0) scaleX(-1);
        opacity: 1;
    }
}

/* Button Variants */
.book {
    background: var(--accent);
    color: var(--white);
}

.btn-lang {
    border: 1px solid rgb(210, 210, 210);
    color: var(--black);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 300;
    font-size: 14px;
    transition: background 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark .btn-lang {
    color: #fff;
}

.btn-lang:hover {
    opacity: 0.9;
}

/* Glass Button Variant */
.glass-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    color: var(--text);
    text-decoration: none;
}

body.dark .glass-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: var(--text);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

body.dark .glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.glass-btn .btn-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--accent);
}

body.dark .glass-btn .btn-icon {
    background: rgba(255, 255, 255, 0.15);
}

/* ==================== MOBILE MENU ==================== */
.menu-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text);
    background: none;
    border: none;
    padding: 8px;
    transition: color 0.3s ease;
    z-index: 1001;
}

.menu-toggle:hover {
    color: var(--accent);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--pill);
    padding: 80px 30px 40px;
    transition: right 0.4s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    position: absolute;
    top: 20px;
    right: 20px;
    left: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.mobile-menu-close:hover {
    color: var(--accent);
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text);
    font-size: 18px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 12px;
    transition: background 0.3s ease;
    display: block;
}

.mobile-menu a:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.dark .mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 16px 0;
}

body.dark .mobile-menu-divider {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.mobile-menu-actions .btn {
    justify-content: flex-start;
    width: 100%;
}

.mobile-dark-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.mobile-dark-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.dark .mobile-dark-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-dark-toggle span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
}

.mobile-dark-toggle .dark-toggle-switch {
    height: 35px;
}

/* ==================== HERO SECTION ==================== */
.hero {
    text-align: center;
    padding: 100px 20px 0;
    max-width: 900px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
}

.hero h1 {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 200;
    line-height: 1.05;
    margin: 0;
}

.hero h1 span {
    font-weight: 400;
}

.hero-sparkle {
    height: 65px;
    width: 65px;
    vertical-align: middle;
    margin-right: 15px;
    margin-top: -5px;
}

.hero p {
    max-width: 640px;
    margin: auto;
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
}

.services {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.5px;
}

/* GLASS BUTTON FOR HERO SECTION */
.hero .glass-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    color: var(--text);
    /* GSAP handles entrance animation */
}

body.dark .hero .glass-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero .glass-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

body.dark .hero .glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.hero .glass-btn .btn-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--accent);
}

body.dark .hero .glass-btn .btn-icon {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent);
}

/* Cursor is now browser default */

/* ==================== HERO FLOATING ELEMENTS ==================== */
.hero-floating-elements {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: visible;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 140px;
    height: 100px;
    opacity: 0;
    pointer-events: auto;
    transition: filter 0.5s ease, opacity 0.5s ease, scale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
    cursor: pointer;
}

body.dark .floating-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.floating-card:hover {
    filter: blur(0) !important;
    opacity: 1 !important;
    z-index: 100 !important;
    scale: 1.2;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.floating-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.floating-card:hover img {
    transform: scale(1.1);
}

/* Depth Blurry Logic */
.floating-card[data-depth="1"] {
    z-index: 5;
    filter: blur(0px);
    opacity: 1;
    transform: scale(1);
}

.floating-card[data-depth="2"] {
    z-index: 4;
    filter: blur(1.5px);
    opacity: 0.8;
    transform: scale(0.95);
}

.floating-card[data-depth="3"] {
    z-index: 3;
    filter: blur(4px);
    opacity: 0.6;
    transform: scale(0.9);
}

.floating-card[data-depth="4"] {
    z-index: 2;
    filter: blur(8px);
    opacity: 0.4;
    transform: scale(0.8);
}

/* Individual Positions - Centered a bit more */
.floating-card.c1 {
    top: 22%;
    left: 18%;
}

.floating-card.c2 {
    top: 25%;
    right: 20%;
}

.floating-card.c3 {
    bottom: 30%;
    left: 15%;
}

.floating-card.c4 {
    bottom: 20%;
    right: 18%;
}

.floating-card.c5 {
    top: 55%;
    right: 12%;
}

.floating-card.c6 {
    top: 50%;
    left: 10%;
}

@media (max-width: 1024px) {

    .floating-card.c1,
    .floating-card.c3 {
        left: 2%;
    }

    .floating-card.c2,
    .floating-card.c4 {
        right: 2%;
    }
}

@media (max-width: 768px) {
    .hero-floating-elements {
        display: none;
        /* Hide for cleaner mobile view */
    }
}

/* ==================== WORK SECTION ==================== */
.work-container {
    padding: 40px 0 100px;
    overflow: hidden;
}

.work {
    max-width: 600px;
    margin: auto;
    padding: 30px;
    border: 1px solid rgb(179, 179, 179);
    border-radius: 28px;
    overflow: hidden;
    transition: background 0.4s ease;
}

body.dark .work {
    background: #1b1b1b;
}

.work-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.work-header h2 {
    font-size: clamp(24px, 5vw, 30px);
    font-weight: 400;
}

.work-header strong {
    font-weight: 600;
    font-size: 14px;
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dots span:nth-child(1) {
    background: #ff5f57;
}

.dots span:nth-child(2) {
    background: #ffbd2e;
}

.dots span:nth-child(3) {
    background: #28c840;
}

.cards-wrapper {
    overflow: hidden;
}

.cards {
    display: flex;
    gap: 20px;
    width: max-content;
}

.card {
    min-width: 280px;
    height: 190px;
    background: var(--pill);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* ==================== PORTFOLIO SECTION ==================== */

.portfolio-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.portfolio-section {
    max-width: 1200px;
    margin: 0px auto;
    padding: 40px 20px 0px 20px;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 60px;
}

.portfolio-header h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 400;
    margin-bottom: 16px;
}

.portfolio-header p {
    color: var(--muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

body.dark .filter-btn {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    background: var(--pill);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
}

.portfolio-item.hidden {
    display: none !important;
}

.portfolio-item.visible {
    display: block !important;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body.dark .portfolio-item:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-item-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}

.portfolio-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-item-img img {
    transform: scale(1.05);
}

.portfolio-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 2;
}

.portfolio-item:hover .portfolio-item-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.portfolio-item-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-right: 5px;
    transition: background 0.3s ease;
}

.portfolio-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    color: white;
}

/* Remove excerpt and stats */
.portfolio-item p,
.portfolio-item-stats {
    display: none;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(95, 118, 90, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

body.dark .portfolio-overlay {
    background: rgba(138, 168, 137, 0.9);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-cta {
    text-align: center;
    margin-top: 60px;
}

.portfolio-cta .btn {
    height: 45px;
}

/* ==================== SERVICES SECTION ==================== */
.services-section {
    max-width: 1200px;
    margin: 0px auto;

    padding: 40px 20px 0px 20px;
}

.section-header {
    text-align: center;
}

.section-header h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 400;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--muted);
    font-size: 16px;
    max-width: 600px;
    margin: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--pill);
    padding: 40px;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 15px;
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    max-width: 1200px;
    margin: 120px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 400;
    margin-bottom: 24px;
}

.about-content p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 50px;
    font-weight: 300;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--muted);
}

.about-image {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--pill);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== PARALLAX IMAGE CLASS ==================== */
.parallax-image {
    cursor: none;
    position: relative;
    overflow: hidden;
}

.parallax-image img {
    will-change: transform;
    transform: scale(1.3);
    transform-origin: center center;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

@media (min-width: 769px) {
    .parallax-image {
        cursor: none !important;
    }
}

/* ==================== TESTIMONIALS SECTION ==================== */
.testimonials-section {
    max-width: 1200px;
    margin: 120px auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.testimonial-card {
    background: var(--pill);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.quote-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
}

.author-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.author-info p {
    font-size: 14px;
    color: var(--muted);
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    max-width: 1200px;
    margin: 120px auto;
    padding: 60px 40px;
    background: var(--accent);
    background-size: cover;
    border-radius: 30px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section img {
    position: absolute;
    top: 0;
    right: 0%;
    width: 400px;
    height: 400px;
    z-index: -1;
}

.cta-section h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 400;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 16px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-section .btn.book {
    background: var(--white);
    color: var(--accent);
    cursor: pointer;
    width: fit-content;
}

.cta-section .btn.book .btn-icon {
    background: var(--accent);
    color: var(--white);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--pill);
    padding: 60px 20px 30px;
    margin-top: 120px;
}

.footer-content {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: background 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: auto;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

body.dark .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1000px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .card {
        min-width: 200px;
        height: 150px;
    }

    .hero {
        padding: 60px 20px 0;
    }

    .nav-wrap {
        margin: 16px;
        padding: 12px 16px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #blog .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }


    .about-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        height: 350px;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .portfolio-controls {
        flex-direction: column-reverse;
        align-items: center;
    }

    .card {
        min-width: 160px;
        height: 120px;
    }

    .mobile-menu {
        width: 100%;
        max-width: 100vw;
    }

    .portfolio-filter {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 100%;
        max-width: 200px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    #blog .portfolio-grid,
    .portfolio-grid {
        grid-template-columns: 1fr !important;
    }

    .cta-section {
        padding: 40px 30px;
        margin: 80px 20px;
    }
}

body.menu-open {
    overflow: hidden;
}

/* ==================== SERVICE DETAIL PAGES ==================== */
.service-detail-hero {
    padding: 140px 20px 80px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
}

body.dark .service-detail-hero {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
}

.service-detail-hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 200;
    margin-bottom: 10px;
    line-height: 1.1;
}

.service-subtitle {
    font-size: 20px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 24px;
    display: block;
}

.service-description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.7;
    color: var(--muted);
}

.section-spacing {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: var(--pill);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 20px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 400;
}

.feature-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Process Section */
.bg-light {
    background: var(--pill);
}

body.dark .bg-light {
    background: #161616;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.step {
    position: relative;
    padding-top: 20px;
}

.step-number {
    font-size: 60px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.05);
    position: absolute;
    top: -20px;
    left: 0;
    line-height: 1;
    z-index: 0;
}

body.dark .step-number {
    color: rgba(255, 255, 255, 0.05);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 24px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.dark .step-icon {
    background: #252525;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.step p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Benefits List */
.benefits-list {
    list-style: none;
    margin: 40px auto 0;
    text-align: left;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark .benefits-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list i {
    color: var(--accent);
}

/* Responsive Service Pages */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .service-detail-hero h1 {
        font-size: 40px;
    }
}


/* ==================== GLOBAL CONTAINER ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}