/* CSS Variables for better browser compatibility */
:root {
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Universal fallback styles for all browsers without backdrop-filter support */

/* Debug: Force visible styles for Firefox */
body {
    /* This will help us see if CSS is loading at all */
    --firefox-test: 1;
}

/* Force more visible styles for key elements */
.hero-badge,
.casp-info,
.cta-button {
    /* Ensure these are always visible */
    background: rgba(255, 255, 255, 0.25) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Feature detection for backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .hero-badge {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.2)) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
        border: 2px solid rgba(255, 255, 255, 0.6) !important;
    }
    
    .casp-info {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15)) !important;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2) !important;
        border: 2px solid rgba(255, 255, 255, 0.5) !important;
    }
    
    .cta-button {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.25)) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
        border: 2px solid rgba(255, 255, 255, 0.7) !important;
    }
    
    .timeline {
        background: rgba(255, 255, 255, 0.1);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 2rem;
    }
    
    .timeline::before {
        background: linear-gradient(to right, #4CAF50 33%, #FFC107 33% 66%, #9E9E9E 66%) !important;
        height: 4px !important;
        border-radius: 2px;
    }
    
    .timeline-dot {
        border: 4px solid #fff !important;
        width: 30px !important;
        height: 30px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }
    
    .timeline-text {
        background: rgba(255, 255, 255, 0.2);
        padding: 4px 8px;
        border-radius: 8px;
        font-weight: 600 !important;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
}

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #3498db;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #3498db;
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* Universal background that works in all browsers */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.15));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.badge-icon {
    font-size: 1.1rem;
}

.badge-text {
    color: rgba(255, 255, 255, 0.95);
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* CASP Info Section */
.casp-info {
    margin: 2rem 0;
    /* Universal background that works in all browsers */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    text-align: left;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.casp-status {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.status-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.status-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 600;
}

.status-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Timeline */
.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    height: 3px;
    background: linear-gradient(to right, #4CAF50 0%, #4CAF50 33%, #FFC107 33%, #FFC107 66%, #9E9E9E 66%, #9E9E9E 100%);
    border-radius: 2px;
    z-index: 1;
    /* Fallback for browsers that don't support gradients well */
    background-color: #FFC107;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    z-index: 2;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 3;
}

.timeline-item.completed .timeline-dot {
    background: #4CAF50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.2);
}

.timeline-item.pending .timeline-dot {
    background: #FFC107;
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.2);
    animation: blink 1.5s infinite;
}

.timeline-item.future .timeline-dot {
    background: #9E9E9E;
    box-shadow: 0 0 0 4px rgba(158, 158, 158, 0.2);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.timeline-text {
    font-size: 0.85rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    max-width: 80px;
    line-height: 1.3;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    /* Universal background that works in all browsers */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
}

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

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.company-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.company-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.company-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
}

.legal-info {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.legal-info h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.legal-info p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
}

.company-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #3498db;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.project-card p {
    color: #666;
    line-height: 1.6;
}

/* Contacts Section */
.contact-info {
    display: flex;
    justify-content: center;
}

.contact-card {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.contact-card h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.contact-details p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #555;
}

.contact-details strong {
    color: #2c3e50;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Mobile CASP styles */
    .casp-info {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .casp-status {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .status-icon {
        font-size: 2rem;
    }
    
    .status-content h3 {
        font-size: 1.3rem;
    }
    
    .status-content p {
        font-size: 0.9rem;
    }
    
    .timeline {
        flex-direction: column;
        gap: 1rem;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-item {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        gap: 1rem;
    }
    
    .timeline-text {
        max-width: none;
        font-size: 0.9rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .company-info {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 12px 25px;
    }
}
