/* ===== SECTION STYLES ===== */

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    background-color: #f8f9fa;
    text-align: center;
    overflow: hidden;
    padding: 100px 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    animation: fadeInUp 1s ease 0.8s both;
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: var(--secondary-white);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.director-commitment {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-red);
    margin-top: 2rem;
}

.director-commitment p {
    margin-bottom: 0;
    font-style: italic;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.stat:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-light);
}

.stat i {
    font-size: 1.5rem;
    color: var(--primary-red);
    min-width: 24px;
}

.stat span {
    font-weight: 600;
    color: var(--text-dark);
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: var(--bg-light);
}

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

/* ===== WHY CHOOSE US SECTION ===== */
.why-choose-us {
    background-color: var(--bg-light);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.why-choose-column {
    background-color: var(--secondary-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
}

.why-choose-column:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.why-choose-column h3 {
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    text-align: center;
}

.why-choose-column ul {
    list-style: none;
    padding: 0;
}

.why-choose-column li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bg-light);
}

.why-choose-column li:last-child {
    border-bottom: none;
}

.why-choose-column li i {
    color: var(--primary-red);
    font-size: 1.2rem;
    min-width: 20px;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background-color: var(--secondary-white);
}

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

/* ===== PROCESS SECTION ===== */
.process {
    background-color: var(--bg-light);
}

/* ===== CERTIFICATIONS SECTION ===== */
.certifications {
    background-color: var(--secondary-white);
}

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

/* ===== CALL TO ACTION SECTION ===== */
.cta {
    background-color: var(--primary-red);
    color: var(--secondary-white);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    color: var(--secondary-white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.contact-form {
    background-color: var(--secondary-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    margin-bottom: 2rem;
}

.contact-form .form-group input,
.contact-form .form-group textarea,
.contact-form .form-group select {
    background-color: var(--secondary-white);
    border-color: var(--border-light);
    color: var(--text-dark);
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
    color: var(--text-light);
}

/* Hide honeypot field */
.contact-form .hidden {
    position: absolute;
    left: -5000px;
}

/* Form success/error messages */
.form-success {
    color: #28a745;
    margin-top: 1rem;
    display: none;
}

.form-error {
    color: #dc3545;
    margin-top: 1rem;
    display: none;
}

.alternative-contact {
    margin-top: 2rem;
}

.alternative-contact a {
    color: var(--secondary-white);
    font-weight: 600;
    text-decoration: underline;
}

.alternative-contact a:hover {
    opacity: 0.8;
}

/* ===== SERVICE AREAS SECTION ===== */
.service-areas {
    background-color: var(--bg-light);
    text-align: center;
    padding: 4rem 0;
}

.service-areas-text {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-dark);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--text-dark);
    color: var(--secondary-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer-certifications {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.footer-column h4 {
    color: var(--secondary-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--secondary-white);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.6;
}

.contact-info li i {
    color: var(--primary-red);
    min-width: 16px;
    margin-top: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.creator-link {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.creator-link:hover {
    color: var(--secondary-white);
    text-decoration: underline;
}

/* ===== SCROLL ANIMATIONS ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

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

/* Staggered animations for grid items */
.services-grid .service-card,
.projects-grid .project-card,
.certifications-grid .certification-badge {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.services-grid .service-card.revealed,
.projects-grid .project-card.revealed,
.certifications-grid .certification-badge.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Delay for staggered effect */
.services-grid .service-card:nth-child(1) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.3s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.4s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.5s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.6s; }
.services-grid .service-card:nth-child(7) { transition-delay: 0.7s; }
.services-grid .service-card:nth-child(8) { transition-delay: 0.8s; }

.projects-grid .project-card:nth-child(1) { transition-delay: 0.1s; }
.projects-grid .project-card:nth-child(2) { transition-delay: 0.2s; }
.projects-grid .project-card:nth-child(3) { transition-delay: 0.3s; }
.projects-grid .project-card:nth-child(4) { transition-delay: 0.4s; }
.projects-grid .project-card:nth-child(5) { transition-delay: 0.5s; }
.projects-grid .project-card:nth-child(6) { transition-delay: 0.6s; }

/* ===== SPECIAL EFFECTS ===== */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(214, 48, 49, 0.1) 50%, transparent 70%);
    z-index: 1;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
}

/* Parallax effect for hero background */
@media (min-width: 768px) {
    .hero-background {
        background-attachment: fixed;
    }
}

/* Section dividers */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    margin: 2rem 0;
}

/* Floating elements */
.floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Pulse effect for important elements */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(214, 48, 49, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(214, 48, 49, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(214, 48, 49, 0);
    }
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(45deg, var(--primary-red), var(--primary-red-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover glow effect */
.glow-on-hover {
    transition: var(--transition-fast);
}

.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(214, 48, 49, 0.3);
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--secondary-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: all 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-light);
    border-top: 4px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-red);
    color: var(--secondary-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-medium);
    transform: translateY(100px);
    transition: var(--transition-fast);
    z-index: 1000;
}

.back-to-top.visible {
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-red-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}
