/* General Styles */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400&family=Sora:wght@500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Noto Sans TC', sans-serif;
    color: #E0D6DE;
    /* Nebulae Body Color */
    background-color: #07070C;
    /* Updated Nebulae Dark Background */
}

h1,
h2,
h3 {
    font-family: 'Sora', sans-serif;
    font-weight: 500;
    /* Medium weight */
    /* Nebulae Heading Gradient Text */
    background: linear-gradient(to right, #B380FF 10%, #7AF0FF 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #B380FF;
    /* Fallback color */
}

p {
    line-height: 1.6;
    color: #E0D6DE;
    /* Nebulae Body Color */
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation Menu */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(7, 7, 12, 0.8);
    /* Updated Semi-transparent dark background */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(122, 248, 255, 0.2);
    /* Subtle accent border */
    display: flex;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
}

/* Logo */
#navbar .logo img {
    width: 70px;
    height: auto;
    margin-right: 20px;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    margin-left: auto;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    font-weight: 600;
    color: #E0D6DE;
    padding: 8px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #7AF8FF;
    /* Nebulae Secondary Accent */
}

/* Hero Section */
#hero {
    position: relative;
    overflow: hidden;
    height: 100vh;
    width: 100%;
    padding: 0;
    max-width: none;
    margin: 0;
    color: #fff;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    /* Darken images slightly for text visibility */
}

.fade {
    animation-name: fade;
    animation-duration: 1s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

.hero-text {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    text-align: center;
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 10px;

    /* The gradient fill remains the same */
    background: linear-gradient(to right, #B380FF 10%, #7AF0FF 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #B380FF;

    /* REMOVED: -webkit-text-stroke */

    /* NEW: A stronger, softer drop-shadow for a premium, legible look */
    filter: drop-shadow(0px 3px 5px rgba(0, 0, 0, 0.6));
}

.hero-text p {
    font-size: 24px;
    margin-bottom: 20px;
    color: #E0D6DE;

    /* A clean, soft shadow that matches the heading's new style */
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.7);
}

.prev,
.next {
    /* Kept original styling, color updated to fit theme */
    color: #E0D6DE;
}

.prev:hover,
.next:hover {
    background-color: rgba(18, 3, 54, 0.5);
}

#hero .button {
    background: linear-gradient(90deg, #8388FF 10%, #7AF8FF 90%);
    /* Nebulae Primary Accent */
    color: #120336;
    /* Dark text for contrast */
    padding: 15px 30px;
    border-radius: 50px;
    /* Rounded button */
    font-size: 18px;
    font-weight: bold;
    border: none;
    transition: transform 0.3s ease;
}

#hero .button:hover {
    transform: scale(1.05);
}

/* Sections */
section {
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
}

/* Services Section */
.services-intro {
    font-size: 16px;
    line-height: 1.5;
    color: #E0D6DE;
    max-width: 1000px;
    margin: 0 auto 20px auto;
}

.services-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control {
    background-color: transparent;
    border: none;
    font-size: 40px;
    color: #E0D6DE;
    cursor: pointer;
    padding: 0 15px;
    user-select: none;
    transition: color 0.3s;
}

.carousel-control:hover {
    color: #7AF8FF;
}

.carousel-track-container {
    overflow: hidden;
    width: 80%;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* Card Styling for Carousel */
.carousel-slide {
    min-width: calc(100% / 3);
    box-sizing: border-box;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Nebulae Card Style */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(122, 248, 255, 0.2);
    border-radius: 1rem;
    /* "Roundness: 1" */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    /* "Card Shadow: 1" */
}

.service-image {
    width: 100%;
    max-width: 200px;
    margin-bottom: 15px;
    max-height: 135px;
}

.service-image img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.carousel-slide h3 {
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
}

.carousel-slide p {
    font-size: 16px;
    text-align: center;
}

.carousel-slide .read-more {
    font-size: 16px;
    color: #7AF8FF;
    /* Nebulae Secondary Accent */
    text-decoration: none;
    font-weight: bold;
    margin-top: auto;
    /* Pushes read more to bottom of card */
}

.carousel-slide .read-more:hover {
    text-decoration: underline;
}

/* About Section */
#about {
    background-color: #07070C;
    /* Updated background */
    padding: 0;
    max-width: none;
    margin: 0;
}


.about-container {
    display: flex;
    flex-direction: row-reverse;
    height: 333px;
    width: 100%;
}

.text-content {
    flex: 0 0 45%;
    padding: 20px;
    color: #E0D6DE;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-style: italic;
}

.image-content {
    flex: 0 0 55%;
    background-image: url('images/profile-with-BG.png');
    background-size: cover;
    background-position: right;
}

#about h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

#about p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}


/* Articles Section */
#articles {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.articles-intro {
    font-size: 17px;
    line-height: 1.5;
    color: #E0D6DE;
    max-width: 100%;
    margin: 0 auto 20px;
}

.articles-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
}

.articles-carousel-control {
    background-color: transparent;
    border: none;
    font-size: 40px;
    cursor: pointer;
    padding: 0 15px;
    user-select: none;
    color: #E0D6DE;
    transition: color 0.3s;
}

.articles-carousel-control:hover {
    color: #7AF8FF;
}

.articles-carousel-track-container {
    overflow: hidden;
    width: 80%;
    margin: 0 auto;
}

.articles-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.articles-carousel-slide {
    min-width: calc(100% / 2);
    box-sizing: border-box;
    padding: 10px;
}

.article-card {
    /* Nebulae Card Style */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(122, 248, 255, 0.2);
    border-radius: 1rem;
    /* "Roundness: 1" */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    /* "Card Shadow: 1" */
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    padding: 15px;
    text-align: left;
    color: #E0D6DE;
}

.article-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.article-content p {
    font-size: 16px;
    margin-bottom: 15px;
}

.article-content .read-more {
    font-size: 16px;
    color: #7AF8FF;
    text-decoration: none;
    font-weight: bold;
}

.article-content .read-more:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #07070C;
    /* Updated background */
    padding: 40px 20px;
    text-align: center;
}


footer .social-media {
    margin-bottom: 20px;
}

footer .social-media p {
    font-size: 18px;
    margin-bottom: 10px;
}

footer .social-media a {
    margin: 0 10px;
}


/* styles.css changes */

/* --- REMOVE OLD FOOTER ICON STYLES and ADD THIS BLOCK --- */


/* Use this CSS ONLY if you replace the image files with white ones */

footer .social-media img {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

footer .social-media a:hover img {
    opacity: 1;
    transform: scale(1.1);
}

footer p {
    font-size: 14px;
    color: #E0D6DE;
}

footer .credentials {
    font-size: 14px;
    color: #7AF8FF;
    /* Nebulae Accent Color */
    margin: 15px 0;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Design (Unchanged Layout, Only Color/Font Updates) */
@media (max-width: 768px) {
    #navbar ul {
        display: none;
    }

    #navbar {
        position: relative;
    }

    #navbar .hamburger-menu {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
        cursor: pointer;
        font-size: 24px;
        color: #E0D6DE;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #07070C;
        /* Updated Nebulae Dark Background */
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        margin-left: 0;
        padding: 10px 0;
    }


    .hero-text h1 {
        font-size: 48px;
        margin-bottom: 10px;

        /* NEW: A multi-layered text-shadow to create a crisp "stroke" effect */
        text-shadow:
            -1px -1px 0 #000,
            1px -1px 0 #000,
            -1px 1px 0 #000,
            1px 1px 0 #000,
            0px 0px 15px rgba(0, 0, 0, 0.5);
        /* This last one adds a soft glow */
    }

    .hero-text p {
        font-size: 24px;
        margin-bottom: 20px;
        color: #E0D6DE;

        /* A simpler, but still effective, shadow for the smaller paragraph text */
        text-shadow:
            -1px -1px 0 #000,
            1px -1px 0 #000,
            -1px 1px 0 #000,
            1px 1px 0 #000;
    }

    section h2 {
        font-size: 28px;
    }

    @media (max-width: 800px) {
        .carousel-slide {
            min-width: calc(100% / 2);
            /* Show 2 slides */
        }
    }

    @media (max-width: 500px) {
        .carousel-slide {
            min-width: 100%;
            /* Show 1 slide */
        }
    }

    @media screen and (max-width: 768px) {
        .hero-text h1 {
            font-size: 36px;
        }

        .hero-text p {
            font-size: 18px;
        }
    }

    .about-container {
        flex-direction: column;
        height: auto;
    }

    .text-content,
    .image-content {
        flex: 0 0 100%;
    }

    .image-content {
        height: 300px;
        background-position: center;
    }

    .text-content {
        padding: 15px;
        text-align: center;
    }

    #about h2 {
        font-size: 25px;
    }

    #about p {
        font-size: 17px;
    }

    .articles-carousel-slide {
        min-width: 100%;
        /* Show 1 slide at a time */
    }
}