/* ==========================================================================
   Architecture Studio CSS - Main Stylesheet
   🌙 DARK MODE VERSION
   With animations and harmonious color scheme
   ========================================================================== */

/* ===================== VARIABLES ===================== */
:root {
    /* Main Color Palette - Dark Mode */
    --primary-color: #CCD0CF;
    --secondary-color: #5a7a8a;
    --secondary-color-dark: #445663;

    /* Background Colors */
    --bg-primary: #10202d;
    --bg-secondary: #1a2d3d;
    --bg-tertiary: #243644;
    --bg-elevated: #2a3f50;

    /* Legacy mappings */
    --light-color: #243644;
    --dark-color: #CCD0CF;
    --accent-color: #5a7a8a;
    --accent-glow: rgba(90, 122, 138, 0.3);
    
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;

    /* Text Colors - Dark Mode */
    --text-dark: #CCD0CF;
    --text-light: #10202d;
    --text-muted: #8a9ba8;
    --text-bright: #f0f4f8;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;

    /* Shadows - Enhanced for Dark Mode */
    --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.4);
    --shadow-large: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--accent-glow);

    /* Border Radius */
    --radius-small: 3px;
    --radius-medium: 8px;
    --radius-large: 15px;
    --radius-circle: 50%;

    /* Borders */
    --border-subtle: 1px solid rgba(204, 208, 207, 0.1);
    --border-accent: 1px solid rgba(90, 122, 138, 0.3);
}

/* ===================== GENERAL STYLES ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(90, 122, 138, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(90, 122, 138, 0.05) 0%, transparent 50%);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-bright);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--text-bright);
    text-shadow: 0 0 10px var(--accent-glow);
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    color: var(--text-bright);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    transition: width var(--transition-medium);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.btn {
    border-radius: var(--radius-medium);
    transition: all var(--transition-fast);
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #4a6a7a);
    border: none;
    color: var(--text-bright);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-small);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6a8a9a, var(--accent-color));
    color: var(--text-bright);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-outline-dark {
    color: var(--text-dark);
    border-color: var(--accent-color);
    background: transparent;
}

.btn-outline-dark:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-bright);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* RTL and LTR Support */
html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] .section-title:after {
    right: 0;
    left: auto;
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideInUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@keyframes rotateIn {
    0% {
        transform: rotate(-90deg) scale(0.1);
        opacity: 0;
    }
    100% {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideFromLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideFromRight {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes growWidth {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes subtleGlow {
    0%, 100% { box-shadow: 0 0 5px var(--accent-glow); }
    50% { box-shadow: 0 0 20px var(--accent-glow); }
}

@keyframes accentPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ===================== NAVBAR ===================== */
.navbar {
    padding: 15px 0;
    transition: all var(--transition-medium);
    background-color: rgba(16, 32, 45, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border-bottom: var(--border-subtle);
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(16, 32, 45, 0.98);
    box-shadow: var(--shadow-medium);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--text-bright);
}

.navbar-brand .brand-text {
    transition: all var(--transition-fast);
}

.navbar-brand:hover .brand-text {
    color: var(--accent-color);
}

.navbar-brand img {
    filter: brightness(0) invert(1);
    transition: filter var(--transition-fast);
}

.navbar-brand:hover img {
    filter: brightness(0) invert(0.85);
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 10px;
    padding: 10px 5px;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    transition: width var(--transition-fast);
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

.nav-link:hover {
    color: var(--text-bright) !important;
}

.nav-link.active {
    color: var(--accent-color) !important;
}

.navbar-toggler {
    border-color: var(--accent-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(204, 208, 207, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===================== HERO SECTION ===================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--bg-primary) url("../images/hero.jpg") center/cover no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    color: #fff;
}

.hero video.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom left, rgba(16, 32, 45, 0.7), rgba(16, 32, 45, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 450px;
    text-align: left;
    animation: fadeIn 1s ease-out forwards;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0;
    animation: slideInUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
    color: var(--text-bright);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0;
    animation: slideInUp 0.8s ease-out forwards;
    animation-delay: 0.4s;
    color: var(--text-dark);
}

.hero-content .btn {
    font-size: 0.9rem;
    padding: 8px 20px;
    opacity: 0;
    animation: slideInUp 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

/* ===================== ABOUT SECTION ===================== */
.about-preview {
    background-color: var(--bg-secondary);
}

.about-detail .about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    animation: fadeInRight 1s ease-out forwards;
    box-shadow: var(--shadow-large);
    border: var(--border-subtle);
}

.about-detail .about-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.6s ease;
}

.about-detail .about-image:hover img {
    transform: scale(1.03);
}

.about-detail .stats-overlay {
    position: absolute;
    bottom: 25px;
    left: 25px;
    display: flex;
    gap: 30px;
    background: rgba(16, 32, 45, 0.9);
    padding: 18px 30px;
    border-radius: 18px;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out;
    border: var(--border-accent);
}

.about-detail .stat-item {
    text-align: center;
    min-width: 90px;
    transition: transform 0.3s ease;
}

.about-detail .stat-item:hover {
    transform: scale(1.05);
}

.about-detail .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: -0.5px;
}

.about-detail .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.about-detail .floating-cta {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-tertiary);
    color: var(--text-bright);
    padding: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: var(--shadow-medium);
    border: var(--border-accent);
}

.about-detail .floating-cta:hover {
    background: var(--accent-color);
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .about-detail .about-image {
        margin-top: 40px;
    }

    .about-detail .stats-overlay {
        position: static;
        margin-top: 20px;
        justify-content: center;
    }

    .about-detail .floating-cta {
        display: none;
    }
}

/* ===================== SERVICES SECTION ===================== */
.services {
    background-color: var(--bg-primary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.service-card {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 350px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    animation: fadeInUp 1s ease-out forwards;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    margin-bottom: 30px;
    border: var(--border-subtle);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 32, 45, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--shadow-large), var(--shadow-glow);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 70px;
    height: 70px;
    background: rgba(16, 32, 45, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-bright);
    transition: all 0.3s ease;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: var(--border-accent);
}

.service-card:hover .service-icon {
    transform: rotate(360deg) scale(1.1);
    background: var(--accent-color);
    box-shadow: var(--shadow-glow);
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(16, 32, 45, 0.95), transparent);
    color: var(--text-bright);
    padding: 40px 30px 30px;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.service-card:hover .service-overlay {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(16, 32, 45, 0.98), rgba(16, 32, 45, 0.5));
}

.service-overlay h3 {
    margin: 0 0 15px;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: var(--text-bright);
}

.service-overlay p {
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
    opacity: 0.9;
    color: var(--text-dark);
}

.service-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(16, 32, 45, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-bright);
    font-size: 1.2rem;
    border: var(--border-accent);
}

.bg-architectural,
.bg-interior,
.bg-animation,
.bg-landscape,
.bg-exterior,
.bg-interior2 {
    background-size: cover;
    background-position: center;
}

.bg-architectural { background-image: url("../images/services/architectural.jpg"); }
.bg-interior { background-image: url("../images/services/interior.jpg"); }
.bg-animation { background-image: url("../images/services/animation.jpg"); }
.bg-landscape { background-image: url("../images/services/landscape.jpg"); }
.bg-exterior { background-image: url("../images/services/exterior.jpg"); }
.bg-interior2 { background-image: url("../images/services/interior2.jpg"); }

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(90, 122, 138, 0.2);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ===================== PROJECTS SECTION ===================== */
.projects-filter {
    margin-bottom: 40px;
}

.projects-filter .btn {
    margin: 0 5px;
    padding: 8px 20px;
    border-radius: 30px;
    background: var(--bg-tertiary);
    border: var(--border-accent);
    color: var(--text-dark);
}

.projects-filter .btn:hover,
.projects-filter .btn.active {
    background: var(--accent-color);
    color: var(--text-bright);
    box-shadow: var(--shadow-glow);
}

.project-card {
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-medium);
    height: 100%;
    margin-bottom: 30px;
    border: var(--border-subtle);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large), var(--shadow-glow);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 32, 45, 0.5);
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: 1;
}

.project-card:hover .project-image:before {
    opacity: 1;
}

.project-image img {
    transition: transform var(--transition-medium);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    color: var(--text-bright);
}

.project-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.project-description {
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* ===================== TEAM SECTION ===================== */
.team-card {
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-medium);
    margin-bottom: 30px;
    border: var(--border-subtle);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large), var(--shadow-glow);
}

.team-image {
    position: relative;
    overflow: hidden;
}

.team-image img {
    transition: transform var(--transition-medium);
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-content {
    padding: 20px;
    text-align: center;
}

.team-content h4 {
    color: var(--text-bright);
}

.team-content p {
    color: var(--text-muted);
}

.team-social {
    margin-top: 15px;
}

.team-social a {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background-color: var(--bg-secondary);
    color: var(--text-dark);
    border-radius: var(--radius-circle);
    margin: 0 5px;
    transition: all var(--transition-fast);
    border: var(--border-subtle);
}

.team-social a:hover {
    background-color: var(--accent-color);
    color: var(--text-bright);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* ===================== VALUES SECTION ===================== */
.value-card {
    text-align: center;
    padding: 30px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-medium);
    height: 100%;
    margin-bottom: 30px;
    border: var(--border-subtle);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large), var(--shadow-glow);
}

.value-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    transition: all var(--transition-medium);
}

.value-card:hover .value-icon {
    transform: rotateY(180deg);
    color: var(--text-bright);
    text-shadow: var(--shadow-glow);
}

.value-card h4 {
    color: var(--text-bright);
}

.value-card p {
    color: var(--text-muted);
}

/* ===================== VISION & MISSION ===================== */
.vision-mission .vision-card,
.vision-mission .mission-card {
    background-color: var(--bg-tertiary);
    padding: 30px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
    height: 100%;
    transition: all var(--transition-medium);
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: var(--border-subtle);
}

.vision-mission .vision-card:before,
.vision-mission .mission-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color), transparent);
    transition: width var(--transition-medium);
    z-index: -1;
}

.vision-mission .vision-card:hover:before,
.vision-mission .mission-card:hover:before {
    width: 100%;
    background: var(--accent-color);
}

.vision-mission .vision-card:hover,
.vision-mission .mission-card:hover {
    color: var(--text-bright);
}

.vision-mission .vision-card h3,
.vision-mission .mission-card h3 {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--text-bright);
}

.vision-mission .vision-card i,
.vision-mission .mission-card i {
    font-size: 1.5rem;
    margin-right: 10px;
    color: var(--accent-color);
    transition: all var(--transition-medium);
}

.vision-mission .vision-card:hover i,
.vision-mission .mission-card:hover i {
    color: var(--text-bright);
}

.vision-mission .vision-card p,
.vision-mission .mission-card p {
    color: var(--text-dark);
}

/* ===================== CONTACT SECTION ===================== */
.contact-card.small-card {
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
    text-align: center;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    height: 100%;
    font-size: 0.9rem;
    padding: 20px;
    margin-bottom: 20px;
    border: var(--border-subtle);
}

.contact-card.small-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium), var(--shadow-glow);
}

.contact-card .contact-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 12px;
    transition: transform var(--transition-medium);
}

.contact-card:hover .contact-icon {
    animation: bounce 0.9s;
    color: var(--text-bright);
}

.contact-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-bright);
}

.contact-card p {
    color: var(--text-muted);
}

.contact-card a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: var(--text-bright);
    text-decoration: underline;
}

.contact-form {
    background-color: var(--bg-tertiary);
    padding: 30px;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-medium);
    border: var(--border-subtle);
}

.form-control {
    background-color: var(--bg-secondary);
    border: var(--border-subtle);
    color: var(--text-dark);
    padding: 12px 15px;
    border-radius: var(--radius-medium);
    transition: all var(--transition-fast);
}

.form-control:focus {
    background-color: var(--bg-elevated);
    border-color: var(--accent-color);
    color: var(--text-bright);
    box-shadow: var(--shadow-glow);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-dark);
    font-weight: 500;
}

/* ===================== PAGE HEADER ===================== */
.page-header {
    background: linear-gradient(135deg, rgba(16, 32, 45, 0.9), rgba(26, 45, 61, 0.8));
    color: var(--text-bright);
    padding: 180px 0 100px;
    position: relative;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png');
    background-size: 150px 150px;
    background-repeat: repeat;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
    animation: patternMove 20s linear infinite;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            var(--bg-primary) 0%,
            rgba(16, 32, 45, 0.8) 50%,
            var(--bg-secondary) 100%);
    opacity: 0.85;
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    margin: 0;
    font-size: 3.5rem;
    font-weight: 700;
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    color: var(--text-bright);
}

.subheading {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-top: 15px;
    animation: fadeInUp 1.5s ease-out forwards;
    opacity: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.breadcrumb {
    background: rgba(16, 32, 45, 0.6);
    padding: 10px 20px;
    margin-top: 30px;
    justify-content: center;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: var(--border-accent);
    display: inline-flex;
}

.breadcrumb-item a {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--text-muted);
}

.page-header .decorative-shape {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(90, 122, 138, 0.1);
    z-index: 1;
}

.page-header .decorative-shape:nth-child(1) {
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.page-header .decorative-shape:nth-child(2) {
    bottom: 20%;
    right: 10%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes patternMove {
    0% { background-position: 0 0, 50px 50px, 0 0, 40px 40px; }
    100% { background-position: 100px 100px, 150px 150px, 80px 80px, 120px 120px; }
}

/* Responsive */
@media (max-width: 992px) {
    .page-header {
        padding: 150px 0 80px;
    }
    .page-header h1 {
        font-size: 2.8rem;
    }
    .subheading {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 60px;
        background-attachment: scroll;
    }
    .page-header h1 {
        font-size: 2.2rem;
    }
    .subheading {
        font-size: 1.1rem;
        margin-top: 10px;
    }
    .breadcrumb {
        margin-top: 20px;
        padding: 8px 15px;
    }
    .decorative-shape {
        display: none;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .services {
        padding: 50px 0;
    }
    .service-card {
        height: 300px;
    }
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    .service-overlay h3 {
        font-size: 1.5rem;
    }
}

/* ===================== TIMELINE ===================== */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-color), var(--bg-secondary));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 25px;
    width: 20px;
    height: 20px;
    background-color: var(--bg-tertiary);
    border: 4px solid var(--accent-color);
    border-radius: var(--radius-circle);
    z-index: 1;
    box-shadow: var(--shadow-glow);
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.right::before {
    left: -10px;
}

.timeline-item.left::before {
    right: -10px;
}

.timeline-content {
    background-color: var(--bg-tertiary);
    padding: 20px 25px;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-medium);
    position: relative;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border-left: 4px solid var(--accent-color);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large), var(--shadow-glow);
}

.timeline-content h4 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-bright);
}

.timeline-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline::after {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 25px;
    }
    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        text-align: left;
    }
    .timeline-item::before {
        left: 15px;
        right: auto;
    }
}

/* ===================== CTA SECTION ===================== */
.cta {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    color: var(--text-bright);
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.cta:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png');
    background-size: 200px 200px;
    background-repeat: repeat;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
    filter: blur(0.5px);
}

.cta:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(90, 122, 138, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(90, 122, 138, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(90, 122, 138, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 2;
    background: rgba(16, 32, 45, 0.6);
    padding: 40px 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: var(--border-accent);
}

.cta h2 {
    margin-bottom: 20px;
    animation: fadeIn 1s ease-in-out;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--text-bright);
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
}

.btn-light {
    background: rgba(204, 208, 207, 0.95);
    border: none;
    padding: 15px 35px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-small);
    color: var(--bg-primary);
}

.btn-light:hover {
    background: rgba(204, 208, 207, 1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium), var(--shadow-glow);
    color: var(--bg-primary);
}

@media (max-width: 768px) {
    .cta-content {
        padding: 30px 20px;
    }
    .cta h2 {
        font-size: 2rem;
    }
    .cta p {
        font-size: 1.1rem;
    }
}

/* ===================== FOOTER ===================== */
.footer {
    background-color: var(--bg-secondary) !important;
    color: var(--text-dark);
    border-top: var(--border-subtle);
}

.footer h4 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
    color: var(--text-bright);
}

.footer h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

.footer p {
    color: var(--text-muted);
}

.contact-info li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: var(--text-dark);
}

.contact-info i {
    width: 25px;
    color: var(--accent-color);
    margin-right: 10px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-tertiary);
    color: var(--text-dark);
    border-radius: var(--radius-circle);
    transition: all var(--transition-fast);
    border: var(--border-subtle);
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--text-bright);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.copyright {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

html[dir="rtl"] .footer h4:after {
    right: 0;
    left: auto;
}

html[dir="rtl"] .contact-info i {
    margin-right: 0;
    margin-left: 10px;
}

/* ===================== PAGINATION ===================== */
.pagination .page-link {
    color: var(--text-dark);
    background-color: var(--bg-tertiary);
    border-color: var(--border-subtle);
    transition: all var(--transition-fast);
}

.pagination .page-item.active .page-link {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-bright);
}

.pagination .page-link:hover {
    background-color: var(--bg-elevated);
    color: var(--text-bright);
    border-color: var(--accent-color);
}

/* ===================== MODAL ===================== */
.modal-content {
    border-radius: var(--radius-medium);
    overflow: hidden;
    background-color: var(--bg-tertiary);
    border: var(--border-subtle);
}

.modal-header {
    background-color: var(--bg-secondary);
    color: var(--text-bright);
    border-bottom: var(--border-subtle);
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    background-color: var(--bg-tertiary);
    color: var(--text-dark);
}

.modal-footer {
    border-top: var(--border-subtle);
    background-color: var(--bg-tertiary);
}

/* ===================== ANIMATIONS APPLIED ===================== */
.about-preview,
.featured-projects,
.services,
.team-preview,
.vision-mission,
.values,
.contact-info,
.contact-form,
.projects-section {
    animation: fadeIn 1s ease-out forwards;
}

.section-title {
    animation: slideInUp 0.8s ease-out forwards;
}

.service-card,
.project-card,
.team-card,
.value-card,
.contact-card {
    opacity: 0;
    animation: slideInUp 0.8s ease-out forwards;
}

.service-card:nth-child(1),
.project-card:nth-child(1),
.team-card:nth-child(1),
.value-card:nth-child(1),
.contact-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2),
.project-card:nth-child(2),
.team-card:nth-child(2),
.value-card:nth-child(2),
.contact-card:nth-child(2) {
    animation-delay: 0.3s;
}

.service-card:nth-child(3),
.project-card:nth-child(3),
.team-card:nth-child(3),
.value-card:nth-child(3),
.contact-card:nth-child(3) {
    animation-delay: 0.5s;
}

/* ===================== RESPONSIVE STYLES ===================== */
@media (max-width: 1199.98px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 991.98px) {
    .section-padding {
        padding: 60px 0;
    }
    .hero {
        height: 80vh;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .about-content {
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 50px 0;
    }
    .hero {
        height: 70vh;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .vision-mission .vision-card,
    .vision-mission .mission-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 575.98px) {
    .section-padding {
        padding: 40px 0;
    }
    .hero {
        height: 60vh;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .page-header {
        padding: 120px 0 60px;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .form-container {
        padding: 20px;
    }
}

/* ===================== JS ENHANCED CLASSES ===================== */
.animate__fadeIn {
    animation: fadeIn 1s;
}

.animate__slideInUp {
    animation: slideInUp 1s;
}

.animate__pulse {
    animation: pulse 2s infinite;
}

.animate__bounce {
    animation: bounce 2s;
}

.animate__rotateIn {
    animation: rotateIn 1s;
}

.fixed-contact-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.fixed-contact-buttons a,
.fixed-contact-buttons button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    color: white;
    background-color: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fixed-contact-buttons .reel-btn {
    background-color: var(--bg-tertiary);
    border: var(--border-accent);
}

.fixed-contact-buttons a:hover,
.fixed-contact-buttons button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 100%;
    padding: 15px;
    font-size: 24px;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* ===================== BOOTSTRAP OVERRIDES ===================== */
.bg-light {
    background-color: var(--bg-secondary) !important;
}

.text-dark {
    color: var(--text-dark) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.card {
    background-color: var(--bg-tertiary);
    border: var(--border-subtle);
}

.blog-card {
    background-color: var(--bg-secondary);
    border: var(--border-subtle);
    height: calc(100% - 1.5rem);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card h3 {
    color: var(--text-bright);
}

.blog-card p {
    color: var(--text-muted);
}

.list-group-item {
    background-color: var(--bg-tertiary);
    border-color: rgba(204, 208, 207, 0.1);
    color: var(--text-dark);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

::selection {
    background-color: var(--accent-color);
    color: var(--text-bright);
}

/* ===================== SPECIAL ENHANCEMENTS ===================== */
.section-padding {
    position: relative;
}

.section-padding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 0% 0%, rgba(90, 122, 138, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(90, 122, 138, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.section-padding > * {
    position: relative;
    z-index: 1;
}

.project-card:hover,
.team-card:hover,
.value-card:hover,
.contact-card:hover {
    backdrop-filter: blur(5px);
}

.section-title:after {
    animation: accentPulse 3s ease-in-out infinite;
}
