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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #ffd700;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    overflow-x: hidden;
}

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

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out;
}

.animate-fade-up.delay-1 {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.animate-fade-up.delay-2 {
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* CRYSTA Alert Banner */
.crysta-alert-banner {
    margin-top: 30px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
    animation: alertPulse 2s infinite;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes alertPulse {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    }
    50% { 
        box-shadow: 0 4px 25px rgba(231, 76, 60, 0.6);
    }
}

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

.alert-icon {
    color: white;
    font-size: 1.5rem;
    animation: bounce 1s infinite;
}

.alert-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.alert-title {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.alert-message {
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

.alert-btn {
    background: white;
    color: #e74c3c;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.alert-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.alert-btn i {
    font-size: 1.1rem;
}

/* Header */
.header {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
}

.company-logo {
    height: 70px; /* Even bigger default height for the logo */
    width: auto;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #ffd700, #f1c40f);
    color: #2c3e50;
    font-weight: 700;
    text-shadow: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #f1c40f, #e67e22);
    color: #2c3e50;
    font-weight: 700;
    text-shadow: none;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #ffd700;
}

.btn-phone {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: #ffd700;
}

.btn-download {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #ffd700;
}

.btn-outline {
    background: transparent;
    color: #ffd700;
    border: 2px solid #ffd700;
    font-weight: 600;
}

.btn-outline:hover {
    background: #ffd700;
    color: #2c3e50;
    font-weight: 700;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.6), rgba(52, 73, 94, 0.6)), 
                url('../../images/banner.jpg') center/cover;
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: #ffd700;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-title .highlight {
    color: #ffd700;
    display: block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.section-divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-top: 4px solid #ffd700;
    border-bottom: 4px solid #ffd700;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text h3 {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 30px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #ffd700;
}

.cta-buttons {
    margin-top: 40px;
}

/* Projects Gallery */
.projects-gallery {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.3);
    border: 2px solid #ffd700;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8), rgba(52, 73, 94, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffd700;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.gallery-overlay i {
    font-size: 2rem;
    margin-top: 20px;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    border-top: 3px solid #ffd700;
}

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

.project-card {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: 2px solid #ffd700;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.4);
    border-color: #f1c40f;
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: #ffd700;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 15px;
}

.project-location {
    color: #f1c40f;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-details {
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

.detail-item .label {
    color: #f1c40f;
    font-size: 14px;
}

.detail-item .value {
    color: #ffd700;
    font-weight: 600;
}

.project-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Brochure Section */
.brochure-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
}

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

.brochure-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.brochure-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    color: #ffd700;
}

.brochure-features {
    list-style: none;
}

.brochure-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #ffd700;
}

.brochure-features i {
    color: #27ae60;
    font-size: 1.2rem;
}

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

.brochure-note {
    margin-top: 15px;
    opacity: 0.8;
    font-size: 14px;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

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

.contact-info h3 {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1.1rem;
    color: #f1c40f;
    margin-bottom: 30px;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature i {
    color: #ffd700;
    font-size: 1.5rem;
    width: 30px;
}

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

.contact-actions .btn {
    justify-content: flex-start;
    padding: 20px 30px;
}

.contact-actions .btn span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-actions .btn strong {
    font-size: 16px;
}

.contact-actions .btn small {
    font-size: 12px;
    opacity: 0.8;
}

/* Floating Contacts */
.floating-contacts {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.whatsapp-float,
.phone-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-float {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.phone-float {
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

.whatsapp-float:hover,
.phone-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #ffd700;
    padding: 60px 0 30px;
}

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

.footer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #ffd700;
}

.footer-info p {
    opacity: 0.9;
    line-height: 1.8;
    color: #ffd700;
}

.footer-contact h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #ffd700;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffd700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #ffd700;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 30px;
    text-align: center;
}

.disclaimer {
    background: #e74c3c;
    color: #ffd700;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80%;
    object-fit: contain;
    animation: zoom 0.3s;
}

.modal-content-box {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    text-align: center;
}

@keyframes zoom {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover {
    color: #bbb;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.loading-spinner {
    padding: 20px;
}

.loading-spinner i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 20px;
}

.error-message {
    padding: 20px;
}

.error-message i {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 20px;
}

.error-message p {
    margin-bottom: 20px;
    color: #ffd700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .crysta-alert-banner {
        margin-top: 20px;
        padding: 12px 15px;
        max-width: 100%;
    }
    
    .alert-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .alert-text {
        order: 1;
    }
    
    .alert-icon {
        order: 2;
    }
    
    .alert-cta {
        order: 3;
    }
    
    .alert-title {
        font-size: 1rem;
    }
    
    .alert-message {
        font-size: 0.9rem;
    }
    
    .alert-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .company-logo {
        height: 50px; /* Even bigger logo for mobile */
    }
    
    .hero {
        background-attachment: scroll;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .brochure-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .floating-contacts {
        right: 15px;
    }
    
    .whatsapp-float,
    .phone-float {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .project-cta {
        justify-content: center;
    }
    
    .contact-actions .btn {
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .company-logo {
        height: 45px; /* Even bigger logo for very small screens */
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        margin: 0 10px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .modal-content-box {
        width: 95%;
        margin: 20% auto;
    }
}