/* Base & Reset */
:root {
    --primary: #1e3a8a;
    /* Deep Royal Blue */
    --primary-light: #3b82f6;
    --secondary: #eab308;
    /* Golden Yellow for 'Winner' accent */
    --dark: #0f172a;
    --light: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
    --white: #ffffff;
    --gradient-brand: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-brand);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.text-light {
    color: rgba(255, 255, 255, 0.8);
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-brand);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* Floating Navigation */
.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.floating-nav.scrolled {
    padding: 10px 20px;
    width: 100%;
    max-width: 100%;
    top: 0;
    border-radius: 0;
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 30px;
}

.nav-cta:hover {
    background: var(--primary-light);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Section 1: Hero */
.hero-section {
    min-height: 100vh;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: var(--light);
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-weight: 900;
    color: rgba(30, 58, 138, 0.03);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    transition: transform 0.5s ease-out;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero-left {
    flex: 1;
    position: relative;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero-right {
    flex: 1;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hero-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.medal-badge {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.main-title {
    font-size: 4.5rem;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-right .sub-title {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Section 2: About */
.about-section {
    padding: 6rem 0;
}

.flex-row {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.highlight-box {
    background: rgba(59, 130, 246, 0.05);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
}

.highlight-box i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.highlight-box p {
    font-weight: 600;
    color: var(--primary);
    margin: 0;
    font-size: 1.2rem;
}

.about-gallery-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 上面2張：每張佔3欄 (總共6欄) */
.gallery-item:nth-child(1),
.gallery-item:nth-child(2) {
    grid-column: span 3;
    aspect-ratio: 4 / 3;
}

/* 下面3張：每張佔2欄 (總共6欄) */
.gallery-item:nth-child(n+3) {
    grid-column: span 2;
    aspect-ratio: 4 / 3;
}

@media (max-width: 992px) {
    .about-gallery-grid {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .about-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item:nth-child(n) {
        grid-column: span 1;
        aspect-ratio: 4 / 3;
    }
    
    /* 讓最後一張填滿避免留白 */
    .gallery-item:nth-last-child(1):nth-child(odd) {
        grid-column: span 2;
        aspect-ratio: 16 / 9;
    }
}

.cis-gallery {
    margin-top: 5rem;
}

.gallery-wrapper {
    position: relative;
    padding: 0 60px;
}

.scroll-btn {
    position: absolute;
    top: calc(50% - 14px); /* Adjust for horizontal scrollbar size */
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    border: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background: var(--gradient-brand);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.scroll-btn.left-btn {
    left: 0;
}

.scroll-btn.right-btn {
    right: 0;
}

.horizontal-scroll-container {
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--light);
}

.horizontal-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 4px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.scroll-track {
    display: flex;
    gap: 2rem;
    width: max-content;
}

.cis-card {
    width: 350px;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.cis-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.cis-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* Section 3: Features */
.features-section {
    padding: 6rem 0;
}

.dark-bg {
    background-color: var(--dark);
    position: relative;
}

.dark-bg .section-title::after {
    background: var(--primary-light);
}

.honeycomb-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hex-item {
    width: 250px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.hex-item:hover {
    transform: translateY(-10px);
    background: var(--gradient-brand);
    border-color: transparent;
}

.hex-item i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.hex-item h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.hex-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.hex-item:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* Section 4: AI Tech */
.tech-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
    overflow: hidden;
}

.tech-showcase {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tablet-container {
    position: relative;
    width: 60%;
    margin-bottom: 3rem;
}

.tablet-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 2;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
    z-index: 1;
    filter: blur(40px);
}

.tech-tag {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s;
}

/* Features Grid Wrapper */
.features-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    width: 100%;
}

.tag-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.2);
    border: 2px solid var(--primary-light);
    transition: all 0.3s;
}

.tag-text {
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--white);
    padding: 6px 14px;
    border-radius: 12px;
    margin-top: 5px;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.tag-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--dark);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    width: 200px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.tag-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent var(--dark) transparent;
}

.tech-tag:hover {
    z-index: 10;
}

.tech-tag:hover .tag-icon {
    transform: scale(1.1);
    background: var(--primary);
    color: var(--white);
}

.tech-tag:hover .tag-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

/* Removed tag positions */

/* Section 5: Pathways */
.pathways-section {
    padding: 6rem 0;
}

.gray-bg {
    background-color: var(--light);
}

.system-intro {
    background: var(--white);
    padding: 3rem 4rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 4rem;
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.system-title-ribbon {
    background: linear-gradient(90deg, #4f46e5 0%, #0ea5e9 100%);
    color: white;
    display: inline-block;
    padding: 0.75rem 3rem 0.75rem 2.5rem;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 0 100%);
    margin-bottom: 2rem;
    margin-left: -4rem;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.system-title-ribbon h3 {
    margin: 0;
    color: white;
    font-size: 1.6rem;
    letter-spacing: 2px;
}

.system-subtitle {
    color: #0ea5e9;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.system-features {
    margin-left: 0.5rem;
    margin-bottom: 0;
}

.system-features li {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-main);
    line-height: 1.6;
}

.system-features li:last-child {
    margin-bottom: 0;
}

.diamond-bullet {
    width: 14px;
    height: 14px;
    background-color: #38bdf8;
    transform: rotate(45deg);
    flex-shrink: 0;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .system-intro {
        padding: 2rem;
        margin-bottom: 3rem;
    }

    .system-title-ribbon {
        margin-left: -2rem;
        padding: 0.5rem 2.5rem 0.5rem 1.5rem;
    }

    .system-title-ribbon h3 {
        font-size: 1.3rem;
    }

    .system-subtitle {
        font-size: 1.15rem;
    }
}

.timeline-container {
    max-width: 800px;
    margin: 3rem auto 0;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-brand);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 43px;
    top: 20px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--secondary);
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.3);
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
    border-left: 5px solid var(--primary);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stage-badge {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.target-audience {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.outcome {
    color: var(--text-main);
}

/* Section 6: Franchise */
.franchise-section {
    padding: 6rem 0;
}

.support-content {
    flex: 1;
}

.support-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.support-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 12px;
    transition: transform 0.3s;
}

.support-item:hover {
    transform: translateX(10px);
    background: white;
    box-shadow: var(--shadow-sm);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.map-content {
    flex: 1;
}

.map-card {
    padding: 2rem;
}

.taiwan-map-placeholder {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.map-img {
    width: 100%;
    opacity: 0.8;
}

.map-point {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

.pulse {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary);
    animation: pulsate 2s infinite ease-out;
}

@keyframes pulsate {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.point-info {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    background: var(--white);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    min-width: 100px;
    font-size: 0.85rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    margin-left: 10px;
    pointer-events: none;
    z-index: 10;
}

.map-point:hover .point-info {
    opacity: 1;
    visibility: visible;
}

/* Rough positioning based on Taiwan map */
.point-taoyuan {
    top: 15%;
    left: 70%;
}

.point-newtaipei {
    top: 10%;
    left: 80%;
}

.point-taichung {
    top: 35%;
    left: 45%;
}

.point-kaohsiung {
    bottom: 25%;
    left: 35%;
}

/* Section 7: Contact */
.contact-section {
    padding: 6rem 0;
}

.contact-wrapper {
    display: flex;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info, .contact-form-container {
    flex: 1;
    padding: 2.5rem;
    border-radius: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-list i {
    font-size: 1.5rem;
    color: var(--primary-light);
    background: rgba(59, 130, 246, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-list strong {
    display: block;
    color: var(--dark);
    margin-bottom: 0.2rem;
}

.line-contact {
    margin-top: auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.line-contact h4 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.line-qr {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: block;
}

.line-btn {
    width: 100%;
    background: #06C755; 
    color: white !important;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
    border: none;
}

.line-btn:hover {
    background: #05ab49;
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.4);
    transform: translateY(-2px);
    color: white !important;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    text-align: left;
}

.contact-form .required {
    color: #ef4444; 
}

.contact-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.8);
    box-sizing: border-box;
}

.contact-form input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.1rem;
    padding: 1rem;
    border: none;
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: var(--light);
    padding: 2rem 0 0;
}

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

.footer-info p {
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-cta h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Animations */
.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        gap: 1rem;
    }

    .flex-row,
    .hero-container,
    .contact-wrapper {
        flex-direction: column;
    }

    .main-title {
        font-size: 3.5rem;
    }

    .tech-tag {
        margin-bottom: 0;
    }

    .tech-tag:hover {
        transform: scale(1.1);
        z-index: 10;
    }

    .tablet-container {
        width: 100%;
        margin: 0 auto;
        display: block;
        padding-bottom: 0;
        margin-bottom: 2rem;
    }

    .features-grid-wrapper {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .tech-tag .tag-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .tech-tag .tag-text {
        font-size: 1rem;
        padding: 6px 12px;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .features-grid-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    .gallery-wrapper {
        padding: 0;
    }
    
    .scroll-btn {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .hero-img {
        height: auto;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-dot {
        left: 13px;
    }
}

/* Custom Modal */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.custom-modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.custom-modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--primary);
}

.cis-card {
    cursor: pointer;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }

    .hero-actions {
        gap: 0.5rem;
    }

    .hero-actions .btn {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        white-space: nowrap;
    }
}

/* Only apply absolute positioning on desktop */
@media (min-width: 993px) {
    .mobile-circle-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }

    .mobile-circle-wrapper>* {
        pointer-events: auto;
    }
}

/* Toast Notification UI */
.toast-notification {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 9999;
    transform: translateY(120px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 6px solid #06C755;
    max-width: 400px;
}

.toast-notification.error {
    border-left-color: #ef4444;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-content h4 {
    margin: 0 0 6px 0;
    color: var(--dark);
    font-size: 1.1rem;
}

.toast-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .toast-notification {
        bottom: 20px;
        left: 20px;
        right: 20px;
        width: auto;
        max-width: none;
    }
}

/* Form Inline Success message UI */
.form-success-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    animation: fadeIn 0.5s ease-out forwards;
}

.form-success-state h3 {
    margin: 10px 0;
    color: var(--primary);
    font-size: 1.5rem;
}

.form-success-state p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.success-animation {
    font-size: 5rem;
    color: #06C755;
    margin-bottom: 1rem;
    transform: scale(0);
    animation: scaleInBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards 0.2s;
}

@keyframes scaleInBounce {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}