/* =========================
   Global Smooth Transition
========================= */

body,
.section,
.service-card,
.contact-info-container,
header,
footer,
nav a {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* =========================
   General
========================= */

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.3px;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #2c2c2c;
}

/* Headings */

h1 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #ffffff;
    margin: 0;
}

h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 10px 0;
}

/* =========================
   Header / Navbar
========================= */

header {
    background-color: #520404;
    padding: 20px 10%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    color: #ffffff;
    margin-left: 25px;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

/* Underline hover animation */
nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #8b5e3c;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #f39c12;
}

/* Dark mode button */
.dark-btn {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

/* =========================
   Sections
========================= */

.section {
    padding: 100px 10%;
    text-align: center;
}

.light {
    background-color: #ffffff;
}

#home,
#services,
#contact {
    scroll-margin-top: 90px;
}

/* Mission text */

.mission {
    font-style: italic;
    margin-top: 20px;
    font-size: 18px;
    color: #555;
}

/* =========================
   Image
========================= */

@media (min-width: 1024px) {

    .profile-img {
        max-width: 500px;
        margin-bottom: 30px;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .profile-img:hover {
        transform: translateY(-5px);
        box-shadow: 0 35px 80px rgba(0, 0, 0, 0.25);
    }

}

/* =========================
   Services Cards
========================= */

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 16px;
    width: 260px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.service-card p {
    font-size: 14px;
    color: #555;
}

.service-card .icon {
    width: 30px;
    height: 30px;
    color: #7b1e1e;
}

/* =========================
   Contact Cards
========================= */

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.contact-info-container {
    background-color: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
    transition: transform 0.3s ease;
}

.contact-info-container:hover {
    transform: translateY(-5px);
}

.contact-info a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
}

.icon {
    width: 22px;
    height: 22px;
    color: #7b1e1e;
}

.professional-message {
    max-width: 650px;
    margin: 20px auto 40px;
    color: #555;
    line-height: 1.6;
}

/* =========================
   Map
========================= */

.map-container {
    margin-top: 20px;
}

.google-map {
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* =========================
   Footer
========================= */

footer {
    background-color: #520404;
    color: #ffffff;
    text-align: center;
    padding: 25px 20px;
    margin-top: 60px;
}

footer p {
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* =========================
   Scroll Animation
========================= */

.hidden {
    opacity: 0;
    transform: translateY(50px);
}

.show {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

/* =========================
   Dark Mode
========================= */

body.dark {
    background-color: #121212;
    color: #f1f1f1;
}

/* Dark sections */
body.dark .light {
    background-color: #1e1e1e;
}

/* Dark cards */
body.dark .service-card,
body.dark .contact-info-container {
    background-color: #2a2a2a;
}

/* Fix text colors */
body.dark h2,
body.dark h3,
body.dark p {
    color: #f1f1f1;
}

body.dark .service-card p,
body.dark .professional-message {
    color: #cccccc;
}

body.dark .contact-info a {
    color: #ffffff;
}

body.dark .icon {
    color: #ffffff;
}

/* Dark header & footer */
body.dark header,
body.dark footer {
    background-color: #000000;
}

/* Dark Mode Map */
body.dark .google-map {
    filter: invert(90%) hue-rotate(180deg);
}

/* =========================
   Mobile
========================= */

@media (max-width: 1024px) {

    nav {
        flex-direction: column;
    }

    nav a {
        margin: 10px 0;
    }

    header h1 {
        font-size: 20px;
    }

    .section {
        padding: 80px 20px;
    }

   #home,
    #services,
    #contact {
        scroll-margin-top: 270px;
    }

    .profile-img {
        width: 100%;
        max-width: 300px;
        height: auto;
        border-radius: 12px;
        margin-bottom: 20px;
    }
}

/* ========================= */
/* Snow Effect (Dark Mode)   */
/* ========================= */

.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 9999;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    font-size: 10px;
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

/* ========================= */
/* Historical Section Style  */
/* ========================= */

.history-section {
    position: relative;
    overflow: hidden;
}

.history-section::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 150, 255, 0.25) 10%, transparent 60%);
    animation: ripple 18s linear infinite;
    top: -50%;
    left: -50%;
    pointer-events: none;
}

@keyframes ripple {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.history-header {
    text-align: center;
    margin-bottom: 20px;
}

.history-header h2 {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: 2px;
}

.history-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 20px;
    background: #7b1e1e;
    color: #ffffff;
    letter-spacing: 1px;
}

.timeline-wrapper {
    position: relative;
    margin-top: 40px;
    display: flex;
}

.timeline-line {
    width: 3px;
    background: #7b1e1e;
    margin-right: 30px;
}

.timeline-content {
    max-width: 750px;
}

body.dark .timeline-line {
    background: #ffffff;
}

.stats-container {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat {
    flex: 1;
    min-width: 150px;
}

.stat h3 {
    font-size: 32px;
    font-weight: 600;
    color: #7b1e1e;
}

body.dark .stat h3 {
    color: #ffffff;
}


/* Dark Mode Adjustments */

body.dark .history-section {
    background: #1e1e1e;
}

body.dark .history-section::before {
    color: rgba(255, 255, 255, 0.05);
}

/* Dark mode badge */
body.dark .history-badge {
    background: #ffffff;
    color: #000000;

}




