/* --- Global Reset & Variables --- */
:root {
    --primary-color: #0C233C; /* Dark Navy from Logo */
    --primary-light: #183759;
    --primary-dark: #071526;
    
    /* Premium Metallic Gold Gradient */
    --accent-gold-gradient: linear-gradient(135deg, #c5a35d 0%, #e8d098 50%, #c5a35d 100%);
    --accent-color: #C5A35D; 
    --accent-light: #d6b878;
    --accent-dark: #aa863e;
    
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --bg-dark: #071526;
    
    --text-main: #2D3748;
    --text-muted: #718096;
    --text-white: #FFFFFF;
    
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-medium: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.05), 0 6px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(12, 35, 60, 0.1), 0 10px 10px -5px rgba(12, 35, 60, 0.04);
    
    --border-radius: 8px;
    --border-radius-lg: 16px;
    
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 7rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2.2rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent-gold-gradient);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(197, 163, 93, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(197, 163, 93, 0.5);
    filter: brightness(1.05);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--bg-white);
    color: var(--bg-white);
}

.btn-secondary:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

/* --- Section Header --- */
.section-header {
    margin-bottom: 4rem;
}

.section-header .subtitle {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 0.5rem;
    border: 1px solid var(--accent-color);
    padding: 0.2rem 1rem;
    border-radius: 50px;
    background-color: rgba(197, 163, 93, 0.05);
}

.section-header .title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.section-header .underline {
    width: 60px;
    height: 4px;
    background: var(--accent-gold-gradient);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* --- Navigation Bar --- */
.navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(12, 35, 60, 0.93);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    height: 55px;
    width: auto;
    border-radius: 5px;
}

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

.logo-title {
    color: var(--bg-white);
    font-weight: 800;
    font-size: 1.3rem;
    line-height: 1.2;
}

.logo-subtitle {
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2.5px;
    background: var(--accent-gold-gradient);
    transition: var(--transition-fast);
}

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

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

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--bg-white);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('assets/hero-bg.webp');
    background-size: cover;
    background-position: center;
    color: var(--text-white);
    overflow: hidden;
    padding-top: 85px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(7, 21, 38, 0.95) 0%, rgba(12, 35, 60, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-tagline {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    margin-bottom: 1rem;
    border-right: 3px solid var(--accent-color);
    padding-right: 0.75rem;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 650px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    justify-content: center;
}

.mouse-icon {
    width: 28px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 2px;
    animation: scrollMouse 1.5s infinite;
}

@keyframes scrollMouse {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.5; }
    100% { transform: translateY(0); opacity: 1; }
}

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

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.company-name-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.underline-rtl {
    width: 80px;
    height: 4px;
    background: var(--accent-gold-gradient);
    margin-bottom: 2rem;
    border-radius: 2px;
}

.about-desc {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: justify;
}

.about-img-area {
    display: flex;
    justify-content: center;
}

.logo-card-frame {
    padding: 2rem;
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-logo-img {
    border-radius: var(--border-radius);
    max-width: 320px;
    height: auto;
    object-fit: cover;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
}

/* Glassmorphism panel for contact details */
.contact-info-panel {
    background: linear-gradient(135deg, rgba(12, 35, 60, 0.98) 0%, rgba(7, 21, 38, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.contact-info-panel::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: var(--accent-color);
    opacity: 0.05;
    border-radius: 50%;
    bottom: -80px;
    left: -80px;
}

.contact-info-panel h3, .contact-form-panel h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.contact-form-panel h3 {
    color: var(--primary-color);
}

.panel-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
}

.contact-form-panel .panel-subtitle {
    color: var(--text-muted);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.info-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

.info-item:hover .info-icon {
    background: var(--accent-gold-gradient);
    color: var(--primary-dark);
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 5px 15px rgba(197, 163, 93, 0.3);
}

.info-text span {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.info-text a, .info-text p {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-white);
}

.info-text a:hover {
    color: var(--accent-light);
}

/* --- Form --- */
.contact-form-panel {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(12, 35, 60, 0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
}

.form-group label .required {
    color: #E53E3E;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    right: 1.25rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.input-wrapper input, .input-wrapper textarea {
    width: 100%;
    padding: 0.9rem 1.25rem;
    padding-right: 3rem; /* padding for the icon */
    border: 1.5px solid #E2E8F0;
    border-radius: var(--border-radius);
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition-fast);
    background-color: var(--bg-light);
}

.input-wrapper textarea {
    padding-right: 1.25rem; /* textarea doesn't have icon */
}

/* Form input active glow UX */
.input-wrapper input:focus, .input-wrapper textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(197, 163, 93, 0.15);
}

.input-wrapper input:focus + .input-icon {
    color: var(--accent-color);
    transform: scale(1.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.btn-submit {
    background: var(--primary-color);
    color: var(--bg-white);
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    border: none;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(12, 35, 60, 0.2);
    transition: var(--transition-fast);
}

.btn-submit:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(12, 35, 60, 0.3);
}

.spinner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hidden {
    display: none !important;
}

/* --- Premium Modal (Success/Failure status) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(7, 21, 38, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1060;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.premium-modal {
    background-color: var(--bg-white);
    width: 90%;
    max-width: 480px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    transform: scale(1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.hidden .premium-modal {
    transform: scale(0.8);
}

.modal-header-accent {
    height: 6px;
    background: var(--accent-gold-gradient);
}

.close-modal-btn {
    position: absolute;
    top: 1rem;
    left: 1.25rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.close-modal-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 3rem 2rem;
}

.modal-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(56, 161, 105, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.modal-icon {
    font-size: 3.5rem;
    color: #38A169;
}

.modal-body h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.modal-body p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-modal-action {
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    width: 100%;
    padding: 0.9rem;
    font-size: 1.05rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(12, 35, 60, 0.2);
}

.btn-modal-action:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(12, 35, 60, 0.3);
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 2rem;
    left: 2rem; 
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: whatsappPulse 2s infinite;
    transition: var(--transition-fast);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
    box-shadow: 0 6px 15px rgba(32, 186, 90, 0.4);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --- Footer --- */
.main-footer {
    background-color: var(--primary-dark);
    color: var(--text-white);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
}

.footer-bottom strong {
    color: var(--accent-color);
}

/* --- Scroll Animation Reveals --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Fade In and Delays --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .section-padding {
        padding: 5rem 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-img-area {
        order: -1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .section-padding {
        padding: 4.5rem 0;
    }
    
    .navbar {
        height: 75px;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 75px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition-medium);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.15rem;
    }
    
    /* Responsive Hero adjustments */
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding-top: 120px;
        padding-bottom: 60px;
        display: flex;
        align-items: center;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 0.5rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
        border-right: none;
        border-bottom: 2px solid var(--accent-color);
        padding-right: 0;
        padding-bottom: 0.5rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-title {
        font-size: 2.1rem;
        line-height: 1.4;
        margin-bottom: 1.25rem;
    }
    
    .hero-desc {
        font-size: 0.95rem;
        line-height: 1.6;
        margin: 0 auto 2rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .hero-btns .btn {
        width: 100%;
        padding: 0.9rem;
    }
    
    /* Responsive About Section adjustments */
    .about-grid {
        gap: 2rem;
    }
    
    .company-name-title {
        font-size: 1.8rem;
        text-align: center;
        line-height: 1.4;
    }
    
    .underline-rtl {
        margin: 0 auto 1.5rem;
    }
    
    .about-desc {
        font-size: 0.95rem;
        text-align: center;
        line-height: 1.65;
        margin-bottom: 1.25rem;
    }
    
    .about-logo-img {
        max-width: 250px;
    }
    
    .logo-card-frame {
        padding: 1.25rem;
        border-radius: var(--border-radius);
    }
    
    /* Responsive Contact Section adjustments */
    .contact-grid {
        gap: 2.5rem;
    }
    
    .contact-info-panel, .contact-form-panel {
        padding: 2.25rem 1.25rem;
        border-radius: var(--border-radius);
    }
    
    .contact-info-panel h3, .contact-form-panel h3 {
        font-size: 1.4rem;
        text-align: center;
    }
    
    .panel-subtitle {
        text-align: center;
        margin-bottom: 1.75rem;
    }
    
    .info-list {
        gap: 1.5rem;
    }
    
    .info-item {
        gap: 1rem;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .info-text a, .info-text p {
        font-size: 0.95rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .input-wrapper input, .input-wrapper textarea {
        padding: 0.8rem 1.1rem;
        padding-right: 2.8rem;
        font-size: 0.9rem;
    }
    
    .input-wrapper textarea {
        padding-right: 1.1rem;
    }
    
    .input-icon {
        right: 1rem;
        font-size: 1rem;
    }
    
    /* Modal responsive */
    .premium-modal {
        width: 92%;
        max-width: 420px;
    }
    
    .modal-body {
        padding: 2.5rem 1.5rem;
    }

    /* WhatsApp floating button on mobile */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 1.5rem;
        left: 1.5rem;
        font-size: 26px;
    }
}
