/* Fonts */
@font-face {
    font-family: 'Rudaw';
    src: url('../rudawregular2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
}

.loading-logo {
    width: 70px;
    height: 70px;
    margin-bottom: 2rem;
    margin-top: 16px; /* nudge down a bit */
    animation: pulse 2s infinite;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.loading-logo img {

    height: auto;
    object-fit: contain;
    display: block;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Base Styles */
:root {
    --primary-color: #0066cc;       /* Vibrant blue for primary actions */
    --secondary-color: #003366;     /* Dark blue for headers */
    --accent-color: #00ccff;        /* Bright blue for highlights */
    --tech-glow: 0 0 15px rgba(0, 204, 255, 0.7);
    --text-color: #333;
    --light-text: #ffffff;
    --dark-bg: #0a0f1a;            /* Dark background */
    --card-bg: rgba(255, 255, 255, 0.95);
    --light-gray: #f0f4f8;
    --dark-gray: #555;
    --success-green: #00cc66;
    --transition: all 0.3s ease;
}

/* Custom Scrollbar */
/* Width */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

/* Track */
::-webkit-scrollbar-track {
    background: var(--dark-bg);
    border-radius: 6px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 6px;
    border: 2px solid var(--dark-bg);
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    border: 2px solid var(--primary-color);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--dark-bg);
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    overflow-x: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

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

.btn, .btn-outline {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1; /* create stacking context for pseudo elements */
}

.btn:before {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-120%) skewX(-15deg);
    background: linear-gradient(90deg,
        rgba(0, 204, 255, 0) 0%,
        rgba(0, 204, 255, 0.25) 35%,
        rgba(0, 102, 204, 0.35) 65%,
        rgba(0, 102, 204, 0) 100%
    );
    transition: transform 0.5s ease;
    z-index: 0; /* below text, above base background */
}

/* soft outer glow */
.btn:after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background: radial-gradient(60% 60% at 50% 50%, rgba(0, 204, 255, 0.25), rgba(0, 102, 204, 0) 70%);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    z-index: 0;
}

.btn:hover:before {
    transform: translateX(0) skewX(-15deg);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 102, 204, 0.35);
}

.btn:hover:after {
    opacity: 1;
    transform: scale(1);
}

/* pressed state */
.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Navigation */
/* Base navbar styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dark navbar for secondary pages (Contact) */
.secondary-page .navbar {
    background-color: var(--dark-bg);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
}

.secondary-page .navbar .nav-links a {
    color: white;
}

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

.navbar.scrolled {
    background-color: transparent;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    padding: 15px 0;
}

.navbar.scrolled .nav-links a {
    color: var(--light-text);
}

.navbar.scrolled .language-selector .current-language {
    color: var(--light-text);
    text-shadow: none;
}

.navbar.scrolled .logo {
    color: var(--light-text);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.navbar.scrolled .logo::before {
background-color: var(--primary-color);
}

.navbar .container {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
height: 100%;
padding: 0 2rem;
}

.logo {
display: flex;
align-items: center;
height: 100%;
font-family: 'Playfair Display', serif;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
font-size: 1.5rem;
font-weight: 400;
letter-spacing: 2px;
text-transform: uppercase;
position: relative;
color: #D2AC47; /* Fallback color */
    height: 100%;
    font-family: 'Playfair Display', serif;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    color: #D2AC47; /* Fallback color */
}

.logo span {
    margin-left: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: all 0.5s ease;
    background: linear-gradient(90deg, #AE8625, #F7EF8A, #D2AC47, #EDC967);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient 6s ease infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-block; /* Required for gradient text */
}

/* Kurdish version of the logo text */
.logo-kurdish {
    margin-left: 15px;
    font-family: 'Rudaw', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: all 0.5s ease;
    background: linear-gradient(90deg, #AE8625, #F7EF8A, #D2AC47, #EDC967);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient 6s ease infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-block;
    line-height: 1.2; /* Better line height for Kurdish text */
}

/* Arabic version of the logo text */
.logo-arabic {
    margin-left: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: all 0.5s ease;
    background: linear-gradient(90deg, #AE8625, #F7EF8A, #D2AC47, #EDC967);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient 6s ease infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.logo-img {
    height: 90px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: all 0.5s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.navbar.scrolled .logo-img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.vertical-line {
    display: inline-block;
    width: 2px;
    height: 40px; /* Reduced height for better proportions */
    background-color: var(--primary-color);
    margin: 0 15px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    padding-right: 20px;
}

.nav-links a {
    font-weight: 400;
    color: var(--light-text);
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
    background-color: var(--primary-color);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    text-shadow: none;
}

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

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

/* Image-based Navbar Trigger */
.nav-image-wrapper {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: 50%;
    /* use CSS var to allow smooth hide/show without recomputing translateX */
    --nav-y: 0px;
    transform: translate3d(-50%, var(--nav-y), 0);
    z-index: 1100; /* above hero */
    transition: transform 220ms ease, opacity 180ms ease;
    opacity: 1;
    will-change: transform, opacity;
}

.nav-image-button {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    cursor: pointer;
    border-radius: 14px;
    background: transparent; /* remove white background */
    backdrop-filter: none;
    padding: 0; /* show raw image without white padding */
    box-shadow: none;
    transition: box-shadow 0.25s ease, filter 0.25s ease;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.nav-image-button:hover {
    /* avoid moving on hover to prevent jitter during scroll */
    box-shadow: none;
    filter: brightness(1.05);
}

/* When hidden on scroll down */
.nav-image-wrapper.hidden {
    --nav-y: -140%;
    opacity: 0;
    pointer-events: none;
}

/* When reappearing on scroll up, show white circular background around the image */
.nav-image-wrapper.scrolling-up .nav-image-button {
    background: #ffffff;
    border-radius: 50%;
    padding: 8px; /* circle padding */
    box-shadow: 0 10px 24px rgba(10,37,64,0.18), 0 4px 10px rgba(10,37,64,0.12);
    filter: none; /* reset brightness */
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translate3d(-50%, 10px, 0);
    min-width: 320px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border-radius: 14px;
    border: 1px solid transparent; /* allow gradient frame via pseudo */
    box-shadow: 0 24px 48px rgba(10, 37, 64, 0.18), 0 8px 16px rgba(10, 37, 64, 0.10);
    padding: 12px 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* subtle sheen overlay */
.nav-dropdown::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(120% 80% at 50% -10%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 50%);
}

/* gradient frame (modern stylish border) */
.nav-dropdown::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px; /* frame thickness */
    background: linear-gradient(135deg, rgba(0,81,255,0.6), rgba(0,204,255,0.6));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.nav-image-wrapper.open .nav-dropdown,
.nav-image-wrapper:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate3d(-50%, 0, 0);
}

.nav-item {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    color: #0a2540;
    text-decoration: none;
    border-radius: 999px; /* pill */
    border: 1px solid transparent;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.nav-item:hover {
    background: rgba(0, 81, 255, 0.08);
    color: #0051ff;
    border-color: rgba(0, 81, 255, 0.18);
    box-shadow: 0 6px 14px rgba(0, 81, 255, 0.15), inset 0 0 0 1px rgba(255,255,255,0.6);
    transform: translateY(-1px);
}

.nav-item:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 81, 255, 0.18) inset;
}

.nav-separator { display: none; }

@media (max-width: 576px) {
    .nav-image-button {
        width: 52px;
        height: 52px;
        padding: 6px;
    }

    .nav-dropdown {
        left: 50%;
        transform: translate(-50%, 10px);
        min-width: unset;
        max-width: calc(100vw - 24px);
        padding: 10px 12px;
        gap: 8px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    background: #ebf5ff;
    color: #333333;
}

.video-background {
    display: none; /* Hide the video background */
}

.video-overlay {
    display: none; /* Hide the video overlay */
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Technology Features */
.tech-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;

}

.tech-feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tech-feature h3 {
    color: var(--accent-color);
    margin: 1rem 0 0.5rem;
    font-size: 1.4rem;
}

.tech-feature p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
}

/* Glow Effect */
@keyframes glow {
    0% { box-shadow: 0 0 5px var(--accent-color); }
    50% { box-shadow: 0 0 20px var(--accent-color); }
    100% { box-shadow: 0 0 5px var(--accent-color); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tech-features {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Solutions Section */
.collections {
    padding: 6rem 0;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.collections::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.section-subtitle {
    text-align: center;
    color: var(--dark-gray);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.collection-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Gallery Header */
.gallery-header {
    margin-bottom: 1.5rem;
}

/* Gallery Actions */
.gallery-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.back-home-container {
    flex: 1;
}

.random-button-container {
    margin: 0 0.5rem;
}

/* Sort Container */
.sort-container {
    position: relative;
    z-index: 10;
}

/* Live site preview container */
.live-site {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 62.5%; /* 16:10 aspect ratio, adjust as needed */
    background: #f4f7fb;
    border-radius: 12px;
    overflow: hidden;
}

.live-site iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    transform: scale(1);
    transform-origin: 0 0;
    background: #fff;
    pointer-events: none; /* make the live frame untouchable */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
}


/* Sort Container - Moved to gallery header section */

/* Random Button */
.random-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.random-button:hover {
    background-color: #f8fafc;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.random-button i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.random-button:hover i {
    transform: rotate(180deg);
}

.random-button:active {
    transform: translateY(0);
}

/* Sort Button */
.sort-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sort-button:hover {
    border-color: #cbd5e0;
    background-color: #f8fafc;
}

.sort-button i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.sort-button.active i {
    transform: rotate(180deg);
}

/* Sort Dropdown */
.sort-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 160px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 20;
}

.sort-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-option {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #4a5568;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sort-option:hover {
    background-color: #f8fafc;
}

.sort-option:first-child {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.sort-option:last-child {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.sort-option.active {
    color: #2b6cb0;
    background-color: #ebf8ff;
    font-weight: 500;
}

/* RTL Support */
[dir="rtl"] .sort-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .sort-button {
    padding: 0.6rem 1rem 0.6rem 1.2rem;
}

[dir="rtl"] .sort-option {
    text-align: right;
}

[dir="rtl"] .collection-item .collection-overlay {
    text-align: right;
    padding: 20px;
}

/* RTL section titles */
[dir="rtl"] .section-title,
[dir="rtl"] .section-subtitle {
    text-align: center !important;
    width: 100%;
    display: block;
    direction: rtl;
    unicode-bidi: plaintext;
}

/* Ensure proper centering for RTL titles */
[dir="rtl"] .section-title {
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

/* Fix for the underline in RTL */
[dir="rtl"] .section-title::after {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
}

/* Kurdish specific adjustments */
html[lang="ku"] .section-title,
html[lang="ku"] .section-subtitle {
    text-align: center !important;
    width: 100%;
    display: block;
}

.live-site:hover .collection-overlay {
    transform: translateY(0);
}

/* Gallery layout: 4 columns on desktop, portrait items, narrow sides */
#gallery .collection-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

#gallery .live-site {
    padding-top: 150%; /* much longer height (approx 3x) */
    width: 96%; /* slightly narrow sides while bigger width */
    margin: 0 auto; /* center each frame */
}

/* Make each gallery item span 2 columns (approx 2x wider) */
#gallery .collection-item { 
    grid-column: span 2; 
}

/* Static thumbnail container (replaces live iframes) */
.live-thumb {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 150%; /* match current tall portrait ratio */
    background: #eef2f7;
    border-radius: 12px;
    overflow: hidden;
}

.live-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    pointer-events: none; /* thumbnail itself not interactive */
}

/* Responsive columns */
@media (max-width: 1200px) {
  #gallery .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  #gallery .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  #gallery .collection-grid { grid-template-columns: 1fr; }
  #gallery .live-site { padding-top: 150%; width: 96%; }
}

.collection-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.15);
    border-color: var(--primary-color);
}

.collection-img {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.collection-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 30, 60, 0.95) 0%, rgba(0, 51, 102, 0.9) 100%);
    color: white;
    text-align: center;
    transform: translateY(0);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
    opacity: 1;
}

.collection-item:hover .collection-overlay {
    opacity: 0.98;
    backdrop-filter: blur(1px);
}

.collection-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Newsletter */
.newsletter {
    padding: 5rem 0;
    background-color: var(--dark-bg);
    color: var(--light-text);
    text-align: center;
}

.newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
}

.newsletter-form .btn {
    border: 2px solid var(--light-text);
    background-color: var(--light-text);
    color: var(--primary-color);
    padding: 0 30px;
}

.newsletter-form .btn:hover {
    background-color: transparent;
    color: var(--light-text);
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 5rem 0 2rem;
}

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

.footer-section h3, 
.footer-section h4 {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

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

.footer-section a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333; /* Default icon color */
    opacity: 0.6; /* Start with icons slightly transparent */
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    opacity: 1; /* Make fully visible on hover */
    color: white; /* Change color on hover */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Add shadow for depth */
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Collection Grid Styles */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.collection-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collection-img {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.collection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 51, 102, 0.85);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    opacity: 1;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.collection-overlay h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.collection-overlay p {
    margin-bottom: 1.5rem;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease 0.1s;
}

.collection-overlay .btn {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease 0.2s;
}

/* Remove hover effect since we want it always on */
.collection-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Contact Page */
.contact-hero {
    height: 60vh;
    min-height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('../wmremove-transformed.jpeg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--light-text);
    margin-top: 80px;
}

.contact-hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 1px;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.contact-hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

.contact-section {
    padding: 6rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--secondary-color);
}

.contact-text p, 
.contact-text a {
    color: #666;
    transition: var(--transition);
}

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

.contact-form {
    background-color: var(--light-bg);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white-quartz);
    border-color: rgba(5, 18, 45, 0.2);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
    background-color: var(--white);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

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

/* Navigation Language Selector */
.nav-language-selector {
    position: relative;
    cursor: pointer;
    margin-left: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.nav-language-selector .nav-current-language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-language-selector .nav-current-language:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-language-selector .nav-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 160px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    margin-top: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-language-selector:hover .nav-language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-language-dropdown li {
    list-style: none;
}

.nav-language-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.nav-language-dropdown a:hover {
    background-color: rgba(212, 175, 55, 0.08);
    color: var(--primary-color);
}

.nav-language-dropdown .nav-flag {
    width: 18px;
    height: 14px;
}

/* RTL Support */
[dir="rtl"] .nav-language-selector {
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir="rtl"] .nav-language-dropdown {
    right: auto;
    left: 0;
}

/* Secondary page styles */
.secondary-page .nav-language-selector .nav-current-language {
    color: var(--white);
}

/* Scrolled navbar styles */
.navbar.scrolled .nav-language-selector .nav-current-language {
    color: var(--white);
    text-shadow: none;
}

/* Mobile styles */
@media (max-width: 768px) {
    .nav-language-selector {
        margin: 0.5rem 0;
        padding: 0.5rem 0;
    }
    
    .nav-language-dropdown {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0 0 0 1.5rem;
        display: none;
    }
    
    .nav-language-selector:hover .nav-language-dropdown {
        display: block;
    }
    
    .nav-language-dropdown a {
        color: var(--white);
        padding: 0.5rem 0;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 3rem 0;
        transition: var(--transition);
        z-index: 999;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        backdrop-filter: blur(15px);
        left: 0;
        background-color: var(--dark-navy);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
        border-radius: 15px; 
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

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

}

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

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

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form .btn {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }
}

/* Big Action/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    color: #003366;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.back-button i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.back-button:hover {
    background-color: #f0f4f8;
    transform: translateX(-5px);
    color: #001a33;
}

.back-button:hover i {
    transform: translateX(-3px);
}

/* RTL support for back button */
[dir="rtl"] .back-button i {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .back-button:hover {
    transform: translateX(5px);
}

[dir="rtl"] .back-button:hover i {
    transform: translateX(3px);
}

/* Big Action Button */
.big-action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
    color: #007AFF; /* brand color for any text inside */
    width: 80vmin;
    height: 80vmin;
    max-width: 600px;
    max-height: 600px;
    border-radius: 70px;
    font-size: 2.5rem;
    font-weight: 700;
    text-decoration: none;
    /* floating effect + subtle inner glow (NFC waves) */
    box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.12),
                inset 0px 0px 8px rgba(0, 122, 255, 0.2);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.3;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;

}

.big-action-button:hover {
    transform: translateY(-2px) scale(1.01);

    /* stronger shadow on hover */
    box-shadow: 0px 10px 24px rgba(0, 0, 0, 0.16),
                inset 0px 0px 8px rgba(0, 122, 255, 0.2);
}

.big-action-button:active {
    transform: translateY(1px);
    box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.14),
                inset 0px 0px 10px rgba(0, 122, 255, 0.22);
    transform: translateY(2px);
}

.button-logo {
    width: 60%;
    height: 60%;
    object-fit: contain;
    transition: transform 0.3s ease;
    margin: auto;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none; /* allow the anchor to receive clicks */
}

.big-action-button:hover .button-logo {
    transform: scale(1.05);
}

.big-action-button:active .button-logo {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .big-action-button {
        width: 55vmin;
        height: 55vmin;
        font-size: 1rem;
    }
    
    .button-text {
        font-size: 3rem;
    }

    .btn, .btn-outline {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

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