/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0066ff;
    --secondary-color: #00d4ff;
    --accent-color: #28a745;
    --dark-color: #1a1a2e;
    --light-bg: #f5f7fa;
    --text-color: #4a4e69;
    --heading-color: #1a1a2e;
    --card-bg: #ffffff;
    --border-color: #e0e6ed;
    --transition-speed: 0.4s;
    --dynamic-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

    --phone-icon-color: #007bff;
    --email-icon-color: #e83e8c;
    --office-icon-color: #28a745;

    --social-facebook: #3b5998;
    --social-twitter: #00acee;
    --social-instagram: #bc2a8d;
    --social-linkedin: #0e76a8;
}

/* --- ANIMATION KEYFRAMES (New) --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatText {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.75;
    background-color: var(--light-bg);
    overflow-x: hidden;
    /* Apply fade in to the whole body wrapper effectively */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

/* --- TEXT STYLING (ATTRACTIVE HEADINGS) --- */
h1, h2, h3, h4 {
    font-weight: 800;
    transition: letter-spacing 0.3s ease, color 0.3s ease;
}

/* Gradient Text Effect for Main Headings */
h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(to right, var(--heading-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block; /* Required for gradient text */
}

/* Subtle Spacing on Hover for Headings */
h2:hover {
    letter-spacing: 1px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}

.subtitle {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 4rem;
    font-size: 1.15rem;
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: 0.1s; /* Slight delay */
    opacity: 0; /* Start hidden */
}

section {
    padding: 80px 5%;
}

/* --- Header & Navigation --- */
.main-header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: fadeInUp 0.6s ease-out forwards;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}
.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color); 
    display: flex;
    align-items: center;
}

.logo-icon {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-right: 5px;
    transition: transform var(--transition-speed);
}
.main-header:hover .logo-icon {
    transform: rotate(-10deg) scale(1.1);
}

.logo-tech {
    font-weight: 500;
    color: var(--text-color);
    font-size: 1rem;
}

.main-nav a {
    margin-left: 30px;
    color: var(--dark-color);
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease-out;
    position: relative;
}

/* Nav Link Hover Animation */
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -3px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}
.main-nav a:hover::after {
    width: 100%;
}
.main-nav a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* --- Introductory Banner --- */
.intro-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, var(--dark-color) 40%, var(--primary-color) 100%);
    color: white;
    padding: 100px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Animation for the banner bg itself */
    animation: fadeInUp 0.8s ease-out forwards;
}

.intro-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.intro-content p {
    font-size: 1.6rem;
    max-width: 850px;
    margin: 0 auto;
    font-weight: 300;
    position: relative;
    z-index: 1;
    /* Text Animation */
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

/* --- Contact Cards Section (Filling Effect) --- */
.contact-cards-section {
    padding-top: 0; 
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.contact-cards-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.contact-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--dynamic-shadow);
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative; 
    overflow: hidden; 
    z-index: 1; 
    transition: transform var(--transition-speed) cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s;
    
    /* Entrance Animation */
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Stagger the card animations */
.contact-card:nth-child(1) { animation-delay: 0.4s; }
.contact-card:nth-child(2) { animation-delay: 0.6s; }
.contact-card:nth-child(3) { animation-delay: 0.8s; }

.contact-card * {
    position: relative;
    z-index: 2;
}

/* The Filling Layer */
.contact-card::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    z-index: 0;
    transition: height 0.5s ease-out;
}

.contact-card:hover::before { height: 100%; }
.contact-card:hover { transform: translateY(-10px) scale(1.02); }

/* Card Colors */
.contact-card:nth-child(1)::before { background-color: #eef7ff; }
.contact-card:nth-child(1):hover { border-color: var(--phone-icon-color); box-shadow: 0 20px 50px rgba(0, 123, 255, 0.2); }

.contact-card:nth-child(2)::before { background-color: #fff0f5; }
.contact-card:nth-child(2):hover { border-color: var(--email-icon-color); box-shadow: 0 20px 50px rgba(232, 62, 140, 0.2); }

.contact-card:nth-child(3)::before { background-color: #f0fff4; }
.contact-card:nth-child(3):hover { border-color: var(--office-icon-color); box-shadow: 0 20px 50px rgba(40, 167, 69, 0.2); }

.card-icon {
    font-size: 2.2rem;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-speed);
}
.contact-card:hover .card-icon {
    transform: rotate(5deg) scale(1.05);
}

.phone-icon { background-color: var(--phone-icon-color); }
.email-icon { background-color: var(--email-icon-color); }
.office-icon { background-color: var(--office-icon-color); }

.contact-card h3 {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 15px;
    transition: color 0.3s;
}

.contact-card:hover h3 {
    color: var(--primary-color); /* Text turns blue on hover inside card */
}

.contact-card p { margin-bottom: 5px; }
.contact-card .schedule { font-size: 0.9rem; color: #6c757d; }

/* --- Contact Form & Map Section --- */
.form-map-section {
    background-color: var(--light-bg);
    padding-top: 60px;
}

.form-map-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    
    /* Animation */
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.8s;
}

.contact-form-wrapper {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.5s;
}
.contact-form-wrapper:hover {
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.15);
    transform: translateY(-5px); /* Gentle float on hover */
}

.contact-form-wrapper h2 {
    text-align: left;
    margin-bottom: 25px;
    font-size: 2rem;
}

.form-row {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.half-width { flex: 1; }

.form-group label {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--heading-color);
    font-size: 0.95rem;
    transition: color 0.3s;
}
/* Label lights up when hovering input */
.form-group:hover label {
    color: var(--primary-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
    outline: none;
    background-color: var(--card-bg);
    transform: scale(1.01); /* Subtle grow on focus */
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-send-message {
    width: 100%;
    padding: 18px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 700;
    font-size: 1.15rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-send-message:hover {
    box-shadow: 0 15px 35px rgba(0, 102, 255, 0.6);
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    letter-spacing: 1px; /* Text expands on hover */
}

.map-info-wrapper { padding-top: 15px; }
.map-info-wrapper h2 { text-align: right; margin-bottom: 40px; }

/* Social Media Block */
.social-media-block { margin-bottom: 40px; }
.social-media-block h4 {
    font-size: 1.35rem;
    color: var(--heading-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.social-icons a {
    font-size: 1.6rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: white;
    margin-right: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.social-icons a:hover {
    transform: translateY(-5px) rotate(360deg); /* Full spin on hover! */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.social-icon.facebook { background-color: var(--social-facebook); }
.social-icon.twitter { background-color: var(--social-twitter); }
.social-icon.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #405de6 90%); }
.social-icon.linkedin { background-color: var(--social-linkedin); }

/* Office Hours Block */
.office-hours-block {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s;
}
.office-hours-block:hover { transform: scale(1.02); }

.office-hours-block h4 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 10px;
    font-weight: 700;
}

.office-hours-block ul { list-style: none; }
.office-hours-block li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 1.05rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    transition: padding-left 0.3s; /* Slide list items */
}
.office-hours-block li:hover {
    padding-left: 10px; /* Slight movement on hover */
    background-color: rgba(255,255,255,0.1);
}
.office-hours-block li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.office-hours-block .closed { color: #070707; font-weight: 700; }

/* Map Placeholder */
.map-placeholder {
    height: 300px;
    background-color: #e9ecef;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #6c757d;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}
.map-placeholder:hover { transform: scale(1.01); }
.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    animation: floatText 3s ease-in-out infinite; /* Icon floats up and down */
}

.map-text { font-weight: 700; margin-bottom: 5px; color: var(--heading-color); }
.map-address { font-size: 1rem; }

/* --- FAQ Section --- */
.faq-section {
    background-color: var(--card-bg);
    text-align: center;
    /* Entrance Animation */
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 1s;
}

.faq-section h2 { text-align: center; }

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
    padding-top: 20px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}
.faq-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transform: translateX(5px); /* Slide right slightly on hover */
}

.faq-toggle { display: none; }

.faq-question {
    display: block;
    padding: 18px 25px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--dark-color);
    cursor: pointer;
    position: relative;
    transition: color 0.3s, background-color 0.3s;
    background-color: var(--light-bg);
}

.faq-question:hover {
    color: var(--primary-color);
    background-color: #eaf1f8;
}

.faq-question::after {
    content: '+';
    font-size: 1.8rem;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-toggle:checked + .faq-question {
    background-color: var(--primary-color);
    color: var(--card-bg);
}
.faq-toggle:checked + .faq-question::after {
    content: '−';
    color: var(--card-bg);
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: var(--card-bg);
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
}

.faq-toggle:checked ~ .faq-answer {
    max-height: 400px;
    padding: 15px 25px 25px 25px;
}
.faq-answer p { line-height: 1.8; }

/* --- Media Queries --- */
@media (max-width: 1200px) {
    .form-map-container { grid-template-columns: 1.5fr 1fr; gap: 40px; }
}
@media (max-width: 992px) {
    .main-nav a { margin-left: 20px; }
    .form-map-container { grid-template-columns: 1fr; flex-direction: column; }
    .contact-form-wrapper { padding: 30px; }
    .map-info-wrapper { padding-top: 0; }
    .map-info-wrapper h2 { text-align: left; margin-top: 30px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}
@media (max-width: 768px) {
    section { padding: 50px 5%; }
    .header-content { flex-direction: column; text-align: center; }
    .main-nav { margin-top: 15px; }
    .main-nav a { display: block; margin: 5px 0; border-bottom: none; padding-bottom: 0; }
    .form-row { flex-direction: column; gap: 0; margin-bottom: 10px; }
    .form-group.half-width { width: 100%; }
    .contact-cards-container { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
/* --- Scroll Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    visibility: hidden;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

