/* ============================================
   CROWN STONE COMPANY - STYLE SHEET
   Version: 2.0 - Fixed & Improved
   Author: Crown Stone Team
   ============================================ */

/* ========== CSS RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: Tahoma, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* RTL/LTR Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.ltr {
    direction: ltr;
    text-align: left;
}

/* Day/Night Mode */
body.day-mode {
    background-color: #ffffff;
    color: #333333;
}

body.night-mode {
    background-color: #1a1a2e;
    color: #e6e6e6;
}

.night-mode .container,
.night-mode header,
.night-mode footer,
.night-mode .section {
    background-color: #16213e;
    color: #e6e6e6;
}

/* ========== LAYOUT & CONTAINERS ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #0a2a5a;
    position: relative;
    padding-bottom: 15px;
}

.night-mode .section-title {
    color: #4cc9f0;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #ff6b00;
}

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

.night-mode .section-subtitle {
    color: #b8b8b8;
}

/* ========== HEADER STYLES ========== */
#main-header {
    background-color: #0a2a5a;
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.night-mode #main-header {
    background-color: #0f3460;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

#main-header .container {
    position: relative;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 1 auto;
    min-width: 200px;
}

.logo-img {
    flex-shrink: 0;
}

.logo-img img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

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

.site-title {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.site-slogan {
    font-size: 0.8rem;
    color: #cccccc;
    font-style: italic;
    margin-top: 3px;
    line-height: 1.3;
}

/* Header Controls */
.header-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.right-controls {
    justify-content: flex-end;
}

.left-controls {
    justify-content: flex-start;
}

/* Header Buttons */
.header-btn {
    background: linear-gradient(135deg, #ff6b00, #ff8533);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    max-width: 130px;
    min-width: 40px;
    flex-shrink: 1;
}

.header-btn:hover {
    background: linear-gradient(135deg, #ff8533, #ff6b00);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.4);
}

.header-btn:active {
    transform: translateY(0);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.music-status {
    margin-left: 3px;
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* Hide text on very small screens */
@media (max-width: 480px) {
    .header-btn .btn-text {
        display: none;
    }
    
    .header-btn {
        padding: 8px;
        min-width: 40px;
        justify-content: center;
    }
    
    .header-btn .btn-icon img {
        width: 18px;
        height: 18px;
    }
    
    .logo-text {
        display: none;
    }
    
    .logo-img img {
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .header-btn .btn-text {
        font-size: 0.7rem;
    }
    
    .header-btn {
        padding: 8px 10px;
    }
    
    .site-title {
        font-size: 1.2rem;
    }
    
    .site-slogan {
        font-size: 0.7rem;
    }
}

@media (min-width: 769px) {
    .header-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .btn-icon img {
        width: 18px;
        height: 18px;
    }
    
    .site-title {
        font-size: 1.8rem;
    }
    
    .site-slogan {
        font-size: 0.9rem;
    }
}

/* Share Panel */
.share-panel {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 15px;
    display: none;
    z-index: 1001;
    min-width: 180px;
    animation: slideDown 0.3s ease;
}

.night-mode .share-panel {
    background-color: #1a1a2e;
    border: 1px solid #2d4059;
}

.share-panel.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-option {
    background-color: #f5f5f5;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
    width: 100%;
}

.night-mode .share-option {
    background-color: #2d4059;
    color: #e6e6e6;
}

.share-option:hover {
    background-color: #e0e0e0;
}

.night-mode .share-option:hover {
    background-color: #3a506b;
}

.share-option img {
    width: 16px;
    height: 16px;
}

/* Settings Panel */
.settings-panel {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    display: none;
    z-index: 1001;
    min-width: 220px;
    animation: slideDown 0.3s ease;
}

.night-mode .settings-panel {
    background-color: #1a1a2e;
    border: 1px solid #2d4059;
}

.settings-panel.show {
    display: block;
}

.settings-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.setting-item label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.night-mode .setting-item label {
    color: #e6e6e6;
}

.setting-item select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: white;
    font-size: 0.9rem;
    cursor: pointer;
}

.night-mode .setting-item select {
    background-color: #2d4059;
    border-color: #3a506b;
    color: #e6e6e6;
}

/* ========== NAVIGATION BAR ========== */
/* راه حل جایگزین: از position: fixed استفاده کنید */
#main-nav {
    background-color: #0a2a5a;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    position: fixed;  /* تغییر از sticky به fixed */
    top: 120px;  /* ارتفاع هدر */
    left: 0;
    right: 0;
    z-index: 990;
    width: 100%;
    display: block !important;
    
}

/* فضای خالی برای جلوگیری از پوشانده شدن محتوا */
body {
    padding-top: 100px;  /* ارتفاع هدر + ارتفاع navbar */
}

/* تنظیم برای موبایل */
@media (max-width: 768px) {
    /* ارتفاع هدر در موبایل بیشتر است */
    #main-header {
        height: 140px; /* این خط را اضافه کنید */
        min-height: 140px; /* این خط را اضافه کنید */
    }
    
    #main-nav {
        top: 140px; /* از 140px به 140px (همان بماند) */
    }
    
    /* مطمئن شوید محتوا زیر navbar نرود */
    .hero-section {
        padding-top: 200px; /* از 120px به 200px افزایش دهید */
    }
}
    
    body {
        padding-top: 180px;
    }
}

.night-mode #main-nav {
    background-color: #16213e;
    border-color: #2d4059;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 12px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.night-mode .nav-link {
    color: #e6e6e6;
}

.nav-link:hover {
    color: #ff6b00;
    transform: translateY(-2px);
}

.nav-icon {
    margin-bottom: 5px;
}

.nav-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-link:hover .nav-icon img {
    transform: scale(1.1);
}

.nav-text {
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 10px;
    }
    
    .nav-icon img {
        width: 20px;
        height: 20px;
    }
    
    .nav-text {
        font-size: 0.75rem;
    }
}

/* ========== HERO SLIDER ========== */
.hero-section {
    padding-top: 100px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.night-mode .hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    height: 500px;
}

.slide {
    min-width: 100%;
    position: relative;
    height: 100%;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px;
    padding-top: 60px;
}

.slide-caption h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-caption p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 107, 0, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background-color: rgba(255, 107, 0, 1);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #ff6b00;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 90px;
    }
    
    .slider-wrapper {
        height: 350px;
    }
    
    .slide-caption {
        padding: 20px;
        padding-top: 40px;
    }
    
    .slide-caption h2 {
        font-size: 1.5rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* ========== MAIN GALLERY (Before/After Comparison) ========== */
.gallery-section {
    background-color: #f8f9fa;
}

.night-mode .gallery-section {
    background-color: #1a1a2e;
}

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

.comparison-box {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.comparison-item {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.image-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.before-after-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.after-image {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.comparison-slider {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    cursor: col-resize;
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background-color: #ff6b00;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: #ff6b00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.5);
    cursor: grab;
}

.slider-handle:active {
    cursor: grabbing;
}

.slider-handle img {
    width: 20px;
    height: 20px;
}

.image-label {
    text-align: center;
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0a2a5a;
}

.night-mode .image-label {
    color: #4cc9f0;
}

.gallery-instructions {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    color: #666;
}

.night-mode .gallery-instructions {
    color: #b8b8b8;
}

/* ========== SECONDARY GALLERY ========== */
.secondary-gallery {
    background-color: #ffffff;
}

.night-mode .secondary-gallery {
    background-color: #16213e;
}

.gallery-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.gallery-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-slide {
    flex: 0 0 auto;
    width: 300px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 250px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

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

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(10, 42, 90, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.night-mode .gallery-btn {
    background-color: rgba(76, 201, 240, 0.8);
}

.gallery-btn:hover {
    background-color: #0a2a5a;
    transform: translateY(-50%) scale(1.1);
}

.night-mode .gallery-btn:hover {
    background-color: #4cc9f0;
}

.gallery-prev {
    left: 0;
}

.gallery-next {
    right: 0;
}

.gallery-counter {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

.night-mode .gallery-counter {
    color: #b8b8b8;
}

/* ========== STATISTICS SECTION ========== */
.stats-section {
    background-color: #f8f9fa;
}

.night-mode .stats-section {
    background-color: #1a1a2e;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stat-box {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.night-mode .stat-box {
    background-color: #0f3460;
    border-color: #2d4059;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.night-mode .stat-box:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    margin-bottom: 20px;
}

.stat-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #ff6b00;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-title {
    font-size: 1.2rem;
    color: #0a2a5a;
    margin-bottom: 15px;
    font-weight: 600;
}

.night-mode .stat-title {
    color: #4cc9f0;
}

.stat-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.night-mode .stat-desc {
    color: #b8b8b8;
}

/* ========== SERVICES SECTION ========== */
.services-section {
    background-color: #ffffff;
}

.night-mode .services-section {
    background-color: #16213e;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-box {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.night-mode .service-box {
    background-color: #0f3460;
    border-color: #2d4059;
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #ff6b00;
}

.night-mode .service-box:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: #4cc9f0;
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.service-box h3 {
    font-size: 1.3rem;
    color: #0a2a5a;
    margin-bottom: 15px;
    font-weight: 600;
}

.night-mode .service-box h3 {
    color: #4cc9f0;
}

.service-box p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.night-mode .service-box p {
    color: #b8b8b8;
}

/* ========== ABOUT SECTION ========== */
.about-section {
    background-color: #f8f9fa;
}

.night-mode .about-section {
    background-color: #1a1a2e;
}

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

.about-box {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.night-mode .about-box {
    background-color: #0f3460;
    border-color: #2d4059;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.about-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.night-mode .about-box:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.about-image {
    height: 200px;
    overflow: hidden;
}

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

.about-box:hover .about-image img {
    transform: scale(1.05);
}

.about-box h3 {
    font-size: 1.3rem;
    color: #0a2a5a;
    margin: 20px 20px 10px;
    font-weight: 600;
}

.night-mode .about-box h3 {
    color: #4cc9f0;
}

.about-box p {
    color: #666;
    margin: 0 20px 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.night-mode .about-box p {
    color: #b8b8b8;
}

/* ========== CONTACT SECTION ========== */
.contact-section {
    background-color: #ffffff;
}

.night-mode .contact-section {
    background-color: #16213e;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

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

.info-box {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-icon {
    flex-shrink: 0;
}

.info-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.info-content h3 {
    font-size: 1.2rem;
    color: #0a2a5a;
    margin-bottom: 5px;
    font-weight: 600;
}

.night-mode .info-content h3 {
    color: #4cc9f0;
}

.info-content p {
    color: #666;
    line-height: 1.6;
}

.night-mode .info-content p {
    color: #b8b8b8;
}

.social-links h4 {
    font-size: 1.2rem;
    color: #0a2a5a;
    margin-bottom: 15px;
    font-weight: 600;
}

.night-mode .social-links h4 {
    color: #4cc9f0;
}

.social-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.night-mode .social-link {
    background-color: #2d4059;
    color: #e6e6e6;
}

.social-link:hover {
    background-color: #0a2a5a;
    color: white;
    transform: translateY(-2px);
}

.night-mode .social-link:hover {
    background-color: #4cc9f0;
    color: #1a1a2e;
}

.social-link img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* Contact Form */
.contact-form {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.night-mode .contact-form {
    background-color: #0f3460;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.night-mode .form-group label {
    color: #e6e6e6;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.night-mode .form-group input,
.night-mode .form-group textarea,
.night-mode .form-group select {
    background-color: #2d4059;
    border-color: #3a506b;
    color: #e6e6e6;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.night-mode .form-group input:focus,
.night-mode .form-group textarea:focus,
.night-mode .form-group select:focus {
    border-color: #4cc9f0;
    box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.2);
}

/* Send Options - Changed from radio to checkbox style */
.send-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 15px;
    background-color: #f0f0f0;
    border-radius: 5px;
    transition: all 0.3s ease;
    user-select: none;
}

.night-mode .option-label {
    background-color: #2d4059;
}

.option-label:hover {
    background-color: #e0e0e0;
}

.night-mode .option-label:hover {
    background-color: #3a506b;
}

.option-label input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.option-label input[type="checkbox"]:checked {
    accent-color: #ff6b00;
}

.night-mode .option-label input[type="checkbox"]:checked {
    accent-color: #4cc9f0;
}

.option-label.checked {
    background-color: #ffe6cc;
    border-color: #ff6b00;
}

.night-mode .option-label.checked {
    background-color: #2d4059;
    border: 1px solid #4cc9f0;
}

.submit-btn {
    background: linear-gradient(135deg, #ff6b00, #ff8533);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #ff8533, #ff6b00);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.4);
}

/* Map Container */
.map-container {
    margin-top: 50px;
}

.map-container h3 {
    text-align: center;
    font-size: 1.5rem;
    color: #0a2a5a;
    margin-bottom: 20px;
    font-weight: 600;
}

.night-mode .map-container h3 {
    color: #4cc9f0;
}

#map {
    height: 400px;
    background-color: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.night-mode #map {
    background-color: #2d4059;
    color: #b8b8b8;
}

.map-placeholder {
    text-align: center;
    padding: 20px;
}

.map-placeholder p {
    margin-bottom: 10px;
}

/* ========== FOOTER ========== */
#main-footer {
    background-color: #0a2a5a;
    color: white;
    padding: 60px 0 20px;
}

.night-mode #main-footer {
    background-color: #0f3460;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.footer-logo p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links h4,
.footer-newsletter h4,
.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: #ff6b00;
}

.footer-newsletter p {
    opacity: 0.8;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

#newsletterForm {
    display: flex;
    gap: 10px;
}

#newsletterForm input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
}

#newsletterForm button {
    background-color: #ff6b00;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

#newsletterForm button:hover {
    background-color: #ff8533;
}

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

.footer-social .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social .social-icons a:hover {
    background-color: #ff6b00;
    transform: translateY(-3px);
}

.footer-social .social-icons img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* ========== DETAIL OVERLAY ========== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.overlay-content {
    background-color: white;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

.night-mode .overlay-content {
    background-color: #1a1a2e;
}

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

.close-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.night-mode .close-overlay {
    color: #e6e6e6;
}

.close-overlay:hover {
    background-color: #f0f0f0;
    color: #ff6b00;
}

.night-mode .close-overlay:hover {
    background-color: #2d4059;
}

.overlay-body {
    padding: 40px;
}

/* ========== BUTTONS ========== */
.details-btn {
    display: inline-block;
    background-color: transparent;
    color: #ff6b00;
    border: 2px solid #ff6b00;
    padding: 10px 25px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: auto;
}

.details-btn:hover {
    background-color: #ff6b00;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

/* ========== LOADING SCREEN ========== */
#loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0a2a5a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#loadingScreen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ff6b00;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

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

#loadingScreen p {
    color: white;
    font-size: 1.1rem;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .stats-grid,
    .services-grid,
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .slider-wrapper {
        height: 400px;
    }
    
    .slide-caption h2 {
        font-size: 1.8rem;
    }
    
    .slide-caption p {
        font-size: 1rem;
    }
    
    .contact-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .gallery-slider {
        padding: 0 40px;
    }
    
    .header-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo-section {
        order: 1;
    }
    
    .left-controls {
        order: 2;
        justify-content: center;
    }
    
    .right-controls {
        order: 3;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    #main-nav {
        top: 140px;
    }
    
    .nav-menu {
        gap: 15px;
        padding: 10px 0;
    }
    
    .nav-text {
        font-size: 0.8rem;
    }
    
    .slider-wrapper {
        height: 300px;
    }
    
    .slide-caption {
        padding: 20px;
        padding-top: 40px;
    }
    
    .slide-caption h2 {
        font-size: 1.5rem;
    }
    
    .stats-grid,
    .services-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .comparison-box {
        flex-direction: column;
        align-items: center;
    }
    
    .comparison-item {
        max-width: 100%;
    }
    
    .gallery-slide {
        width: 250px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .overlay-content {
        width: 95%;
        padding: 15px;
    }
    
    .overlay-body {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.7rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .slider-wrapper {
        height: 250px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .gallery-slider {
        padding: 0 30px;
    }
    
    .gallery-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .send-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .option-label {
        width: 100%;
    }
}

/* ========== UTILITY CLASSES ========== */
.text-center {
    text-align: center;
}

.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-50 { margin-top: 50px; }

.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }

.hidden {
    display: none !important;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-up {
    animation: slideUp 0.5s ease;
}

/* ========== BROWSER SPECIFIC FIXES ========== */
/* IE 10-11 fixes */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .stats-grid,
    .services-grid,
    .about-grid {
        display: flex;
        flex-wrap: wrap;
    }
    
    .stat-box,
    .service-box,
    .about-box {
        width: calc(33.333% - 20px);
        margin: 10px;
    }
    
    @media (max-width: 768px) {
        .stat-box,
        .service-box,
        .about-box {
            width: calc(50% - 20px);
        }
    }
    
    @media (max-width: 576px) {
        .stat-box,
        .service-box,
        .about-box {
            width: 100%;
        }
    }
}

/* Safari specific fixes */
@media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) {
        .header-btn {
            -webkit-appearance: none;
        }
    }
}

/* Firefox scrollbar styling */
@-moz-document url-prefix() {
    .gallery-track {
        scrollbar-width: thin;
        scrollbar-color: #ff6b00 transparent;
    }
}

/* Print styles */
@media print {
    #main-header,
    #main-nav,
    .share-panel,
    .settings-panel,
    .slider-btn,
    .gallery-btn,
    .details-btn,
    .submit-btn,
    #newsletterForm,
    #main-footer {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: 100%;
    }
    
    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
}
.nav-link{
  color:#fff;
  
}