@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;700;900&family=Rubik:wght@300;400;500;700;900&display=swap');

/* --- CSS Variables & Theme Configuration --- */
:root {
    /* Dark Mode (Default) */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #121212;
    --bg-input: #1a1a1c;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    --primary: #ff751f;
    --primary-hover: #e05f10;
    --primary-glow: rgba(255, 117, 31, 0.4);
    --primary-glow-hover: rgba(255, 117, 31, 0.75);
    
    --border-color: #222222;
    --border-color-hover: #333333;
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    --nav-bg: rgba(0, 0, 0, 0.75);
    --timeline-line: #222222;
    --timeline-bullet-bg: #121212;
    --whatsapp-bg: #25d366;
    
    --transition-speed: 0.4s;
    --font-heading: 'Rubik', sans-serif;
    --font-body: 'Heebo', sans-serif;
}

[data-theme="light"] {
    /* Light Mode Override */
    --bg-primary: #ffffff;
    --bg-secondary: #f4f5f8;
    --bg-card: #ffffff;
    --bg-input: #f0f1f5;
    --text-primary: #111111;
    --text-secondary: #555555;
    --text-muted: #888888;
    
    --primary: #ff751f;
    --primary-hover: #e05f10;
    --primary-glow: rgba(255, 117, 31, 0.2);
    --primary-glow-hover: rgba(255, 117, 31, 0.45);
    
    --border-color: #e2e8f0;
    --border-color-hover: #cbd5e1;
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    --nav-bg: rgba(255, 255, 255, 0.85);
    --timeline-line: #e2e8f0;
    --timeline-bullet-bg: #ffffff;
}

/* --- Base & Reset Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    direction: rtl;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

/* Smooth Transitions for Theme Toggle */
body, header, footer, section, .card, input, textarea, select, .btn, .nav-link, .timeline-item {
    transition: background-color var(--transition-speed) ease, 
                color var(--transition-speed) ease, 
                border-color var(--transition-speed) ease, 
                box-shadow var(--transition-speed) ease;
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- Common Components --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

p {
    color: var(--text-secondary);
}

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

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 15px;
    z-index: 1;
}

.section-header h2 span {
    color: var(--primary);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.loader-logo span {
    color: var(--primary);
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 117, 31, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 6px 20px var(--primary-glow-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* --- Header / Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 20px 0;
}

header.sticky {
    padding: 12px 0;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 4px 20px rgba(255, 117, 31, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--primary);
    box-shadow: 0 0 10px rgba(255, 117, 31, 0.2);
    transition: all 0.3s ease;
}

.logo:hover .logo-img {
    transform: rotate(15deg) scale(1.05);
    box-shadow: 0 0 15px var(--primary-glow-hover);
}

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

.logo-main {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.logo-main span {
    color: var(--primary);
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Hero Section Logo Styling */
.hero-logo {
    margin-bottom: 25px;
    display: inline-block;
}

.hero-logo img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3.5px solid var(--primary);
    box-shadow: 0 0 25px var(--primary-glow);
    animation: breathe-logo 3.5s infinite ease-in-out;
}

.footer-logo-img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px rgba(255, 117, 31, 0.15);
}

@keyframes breathe-logo {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 25px var(--primary-glow);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 0 35px var(--primary-glow-hover);
    }
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
}

/* --- Theme Toggle Switch --- */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(255, 117, 31, 0.05);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.5s ease;
}

.theme-toggle-btn:hover svg {
    transform: rotate(30deg);
}

/* Hide sun in dark theme, hide moon in light theme */
.sun-icon { display: none; }
.moon-icon { display: block; }

[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.05);
    transition: transform 0.1s ease-out; /* Smooth parallax response */
}

[data-theme="light"] .hero-background {
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('../images/hero_bg.png');
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    margin-top: 60px; /* Offset for header */
}

.hero-tagline {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-tagline::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.25;
    margin-bottom: 24px;
    font-weight: 900;
}

.hero h1 span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-subheadline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

/* --- Services Section --- */
.services {
    background-color: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px 30px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background-color: var(--primary);
    transition: height 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(255, 117, 31, 0.08);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(255, 117, 31, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: #ffffff;
    transform: scale(1.05);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Why Choose Us & Stats --- */
.why-us {
    background-color: var(--bg-primary);
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-us-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.why-us-text p {
    margin-bottom: 30px;
}

.why-us-list {
    list-style: none;
    margin-bottom: 40px;
}

.why-us-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 500;
}

.why-us-item svg {
    width: 20px;
    height: 20px;
    fill: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--card-shadow);
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 0;
    width: 1px;
    height: 60%;
    background-color: var(--border-color);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
    font-family: var(--font-heading);
    margin-bottom: 5px;
    text-shadow: 0 4px 10px var(--primary-glow);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.why-us-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 480px;
    box-shadow: var(--card-shadow);
}

.why-us-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-us-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary);
    color: #ffffff;
    padding: 20px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 25px var(--primary-glow-hover);
    z-index: 2;
}

.why-us-badge .badge-years {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.why-us-badge .badge-text {
    font-size: 0.85rem;
    font-weight: 500;
}

/* --- Projects Section --- */
.projects {
    background-color: var(--bg-secondary);
}

.filter-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

/* Custom Image/Video Slider Carousel */
.project-slider {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #000;
}

.slider-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-control:hover {
    background-color: var(--primary);
    color: #ffffff;
}

.slider-control-prev {
    right: 15px; /* RTL navigation: Prev points right */
}

.slider-control-next {
    left: 15px; /* RTL navigation: Next points left */
}

.slider-control svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

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

.slider-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-indicator.active {
    background-color: var(--primary);
    width: 20px;
    border-radius: 4px;
}

.project-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.project-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    flex-grow: 1;
}

.project-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tag {
    font-size: 0.75rem;
    background-color: var(--bg-secondary);
    color: var(--primary);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

/* --- About Us Section --- */
.about {
    background-color: var(--bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: flex-start;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 24px;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Interactive Timeline */
.timeline {
    position: relative;
    padding-right: 30px;
    margin-top: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    right: 8px;
    bottom: 5px;
    width: 2px;
    background-color: var(--timeline-line);
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.timeline-item.active {
    opacity: 1;
}

.timeline-bullet {
    position: absolute;
    right: -29px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--timeline-bullet-bg);
    border: 2px solid var(--border-color);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item.active .timeline-bullet {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    transform: scale(1.2);
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Professional Achievements Cards */
.achievements {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.achievement-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.achievement-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 117, 31, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.achievement-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.achievement-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.achievement-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Consultation Section --- */
.consultation {
    background-color: var(--bg-secondary);
}

.consultation-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.consultation-logo {
    margin-bottom: 20px;
}

.consultation-logo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3.5px solid var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    transition: transform 0.3s ease;
}

.consultation-logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--primary-glow-hover);
}

.consultation-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.consultation-info p {
    margin-bottom: 30px;
}

.contact-card-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 117, 31, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.contact-card-details span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
}

.contact-card-details a,
.contact-card-details p {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    margin: 0;
}

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

/* Glassmorphism Form */
.consultation-form-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    position: relative;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(255, 117, 31, 0.2);
}

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

/* File Upload Styles */
.file-upload-wrapper {
    position: relative;
}

.file-upload-dragarea {
    border: 2px dashed var(--border-color);
    border-radius: 4px;
    padding: 24px;
    text-align: center;
    background-color: var(--bg-input);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-dragarea:hover,
.file-upload-dragarea.dragover {
    border-color: var(--primary);
    background-color: rgba(255, 117, 31, 0.02);
}

.file-upload-dragarea svg {
    width: 36px;
    height: 36px;
    fill: var(--text-secondary);
    margin-bottom: 10px;
}

.file-upload-dragarea p {
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.file-upload-dragarea span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Previews container */
.file-previews-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.preview-chip {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.preview-chip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-chip-remove {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    border: none;
    line-height: 1;
}

.preview-chip-remove:hover {
    background-color: var(--primary);
}

.form-submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
}

.submit-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
    margin-left: 8px;
}

.submit-text {
    display: inline-flex;
    align-items: center;
}

.form-status-msg {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    display: none;
}

.form-status-msg.success {
    display: block;
    background-color: rgba(37, 211, 102, 0.1);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.form-status-msg.error {
    display: block;
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* --- Footer --- */
footer {
    background-color: #000000;
    border-top: 1px solid var(--border-color);
    color: #ffffff;
    padding: 60px 0 20px 0;
}

[data-theme="light"] footer {
    background-color: #0c0c0e;
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info .logo {
    margin-bottom: 20px;
}

.footer-info .logo-main {
    color: #ffffff;
}

.footer-info p {
    color: #a0a0a0;
    font-size: 0.95rem;
    margin-bottom: 20px;
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
    padding-bottom: 8px;
}

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

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

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

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

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

.footer-contact-list {
    list-style: none;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #a0a0a0;
    font-size: 0.95rem;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
}

.footer-contact-item a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #1a1a1a;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #666666;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-size: 0.85rem;
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-bg);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.whatsapp-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--whatsapp-bg);
    opacity: 0.4;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--card-shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* --- Scroll Reveal Animations (JS triggers) --- */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* --- Responsive Layout Rules --- */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    .why-us-content,
    .about-content,
    .consultation-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .why-us-image {
        height: 380px;
        order: -1; /* Place image on top of text on tablets */
    }
    .why-us-badge {
        right: 20px;
        bottom: 20px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    .section-header {
        margin-bottom: 40px;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Sticky nav background for mobile menu */
    header {
        padding: 15px 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Fullscreen/Slideout menu for mobile */
    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--bg-card);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 100px 30px 40px 30px;
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 1000;
        gap: 40px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    }
    
    .nav-menu-wrapper.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-link {
        font-size: 1.1rem;
        display: block;
        padding: 10px 0;
    }
    
    .theme-toggle-btn {
        margin-top: auto;
        align-self: flex-start;
    }
    
    /* Hamburger transforms into X */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero Section Responsive */
    .hero {
        height: auto;
        min-height: auto;
        padding: 140px 0 80px 0;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-subheadline {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }
    .hero-btns .btn {
        width: 100%;
    }
    
    /* Stats grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
    }
    .stat-item:not(:last-child)::after {
        display: none;
    }
    .stat-item {
        padding-bottom: 15px;
    }
    .stat-item:not(:last-child) {
        border-bottom: 1px solid var(--border-color);
    }
    
    /* Projects filter */
    .filter-menu {
        gap: 8px;
    }
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    /* Timeline linear mapping on mobile */
    .timeline {
        padding-right: 20px;
    }
    .timeline::before {
        right: 5px;
    }
    .timeline-bullet {
        right: -24px;
        width: 10px;
        height: 10px;
    }
    .timeline-item.active .timeline-bullet {
        transform: scale(1.1);
    }
    
    /* Consultation form styling */
    .consultation-form-container {
        padding: 24px;
    }
    
    /* Footer elements */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    /* Floating buttons */
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}
