/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&family=Orbitron:wght@400;700&display=swap");

/* --------------- Design System & Variables --------------- */
:root {
    /* Colors - Deep Ocean Theme (default dark) */
    --bg-dark: #050a14;
    --bg-card: rgba(16, 25, 45, 0.7);
    --bg-card-hover: rgba(25, 40, 70, 0.8);
    --primary: #00d2ff;
    --primary-gradient: linear-gradient(135deg, #00d2ff, #0082ff);
    --secondary: #0082ff;
    --accent: #64ffda;
    --text-main: #e6f1ff;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-glow: rgba(0, 210, 255, 0.2);
    --header-bg: rgba(5, 10, 20, 0.85);
    --footer-bg: rgba(5, 10, 20, 0.95);
    --input-bg: rgba(255, 255, 255, 0.05);
    --card-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);

    /* Effects */
    --blur: blur(12px);
    --shadow-main: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    --shadow-glow: 0 0 20px rgba(0, 210, 255, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing */
    --container-max: 1200px;
}

/* --------------- Light Theme Overrides --------------- */
[data-theme="light"] {
    --bg-dark: #f0f4f8;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(230, 240, 255, 0.95);
    --text-main: #0f172a;
    --text-muted: #475569;
    --glass-border: rgba(0, 130, 200, 0.18);
    --glass-glow: rgba(0, 210, 255, 0.15);
    --header-bg: rgba(240, 247, 255, 0.92);
    --footer-bg: rgba(220, 232, 248, 0.97);
    --input-bg: rgba(0, 0, 0, 0.04);
    --card-shadow: 0 4px 20px rgba(0, 130, 200, 0.12);
    --shadow-main: 0 4px 24px rgba(0, 100, 180, 0.1);
}

[data-theme="light"] html,
[data-theme="light"] body {
    background: #f0f4f8;
    color: #0f172a;
}

[data-theme="light"] header {
    background: var(--header-bg) !important;
    border-bottom-color: rgba(0, 130, 200, 0.15) !important;
}

[data-theme="light"] header h1 {
    color: var(--primary) !important;
}

[data-theme="light"] footer {
    background: var(--footer-bg) !important;
    border-top: 1px solid rgba(0, 130, 200, 0.12);
}

[data-theme="light"] .glass {
    background: var(--bg-card) !important;
    border-color: var(--glass-border) !important;
    box-shadow: var(--card-shadow) !important;
}

[data-theme="light"] .glass:hover {
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-glow) !important;
}

[data-theme="light"] nav ul li a {
    color: #475569 !important;
}

[data-theme="light"] nav ul li a:hover,
[data-theme="light"] nav ul li a.active {
    color: var(--primary) !important;
}

[data-theme="light"] .section-title {
    color: #0f172a;
}

[data-theme="light"] .section-subtitle {
    color: #475569;
}

[data-theme="light"] .input-wrapper input,
[data-theme="light"] .input-wrapper textarea {
    background: var(--input-bg) !important;
    border-color: rgba(0, 130, 200, 0.2) !important;
    color: #0f172a !important;
}

[data-theme="light"] .input-wrapper input::placeholder,
[data-theme="light"] .input-wrapper textarea::placeholder {
    color: #94a3b8 !important;
}

[data-theme="light"] .input-wrapper input:focus,
[data-theme="light"] .input-wrapper textarea:focus {
    border-color: var(--primary) !important;
    background: rgba(0, 210, 255, 0.05) !important;
}

[data-theme="light"] .contact-form-side {
    background: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="light"] .contact-card-v2 {
    background: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="light"] .contact-text {
    color: #0f172a !important;
}

[data-theme="light"] .footer-links .copyright,
[data-theme="light"] .footer-links .links a {
    color: #475569 !important;
}

[data-theme="light"] .email-input {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #0f172a !important;
    border-color: rgba(0, 130, 200, 0.2) !important;
}

[data-theme="light"] .social-link {
    color: #475569 !important;
}

[data-theme="light"] .team-name {
    color: #0f172a !important;
}

[data-theme="light"] .stack-visualization {
    background: rgba(255, 255, 255, 0.85) !important;
}

[data-theme="light"] .stack-title {
    color: #0f172a !important;
}

[data-theme="light"] .number {
    color: var(--primary) !important;
}

/* ---- Theme Toggle Button ---- */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    color: var(--primary);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    flex-shrink: 0;
    outline: none;
}

.theme-toggle-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: scale(1.1) rotate(15deg);
}

/* ---- Navbar Logo ---- */
.nav-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.nav-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 6px rgba(0, 210, 255, 0.4));
}

.nav-logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.7));
}

/* ---- Header Inner Flex Layout ---- */
.header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1.5rem !important;
}

.header-inner h1 {
    flex: 1;
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.6rem) !important;
}

.header-inner nav {
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .header-inner h1 {
        display: none;
    }
}

@media (max-width: 600px) {
    .nav-logo {
        height: 28px;
    }

    .theme-toggle-btn {
        width: 2rem;
        height: 2rem;
        font-size: 0.85rem;
    }

    .header-inner {
        gap: 0.75rem !important;
    }
}

/* --------------- Global Reset & Styles --------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg-dark);
}

body {
    font-family: "Inter", "Poppins", sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism Utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: var(--shadow-main);
    transition: var(--transition);
}

.glass:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

/* Glow Text */
.glow-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

/* --------------- Container --------------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --------------- Header --------------- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 10, 20, 0.8);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: var(--transition);
}

header h1 {
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700;
    text-align: left;
    margin: 0;
    color: var(--primary);
    letter-spacing: 2px;
}

/* --------------- Navigation --------------- */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav ul li a {
    position: relative;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary);
}

/* Hover Underline Animation */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary);
}

nav ul li a.active::after {
    width: 100%;
}

@media (max-width: 768px) {
    nav ul {
        flex-wrap: nowrap;
    }

    nav ul li {
        margin: 0 5px;
    }
}

/* --------------- Hero Section --------------- */
.hero {
    position: relative;
    background: url("image/bg.gif") no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    /* Changed from 85vh to 100vh for full-screen impact */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 10, 20, 0.6);
    /* User requested overlay */
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 3;
    /* Above ::before and ::after */
    animation: heroEntrance 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes heroEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.hero h2 {
    font-family: "Orbitron", sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.3));
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --------------- About Section --------------- */
.about {
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about h2 {
    font-family: "Orbitron", sans-serif;
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about p {
    text-align: center;
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 48rem;
    margin: 0 auto 2.5rem;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 98%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0.75rem;
}

.about-text {
    flex: 1;
}

.about-text .card {
    margin-left: auto;
    margin-right: auto;
    width: 98%;
    padding: 1.4rem;
    border-radius: 0.75rem;
    border: 1px solid #dbeafe;
}

.about-text .card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.about-text .card p {
    color: #ffc800;
    margin-bottom: 1rem;
}

.about-text .card ul {
    list-style: none;
    padding: 0;
}

.about-text .card ul li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.about-text .card ul li i {
    color: #10b981;
    margin-right: 0.5rem;
}

.about-text .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.4rem;
    width: 98%;
    margin-left: auto;
    margin-right: auto;
}

.about-text .stat {
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #dbeafe;
    text-align: center;
    transition: box-shadow 0.3s;
}

.about-text .stat .number {
    font-size: 2rem;
    font-weight: bold;
}

.about-text .stat div {
    font-size: 0.875rem;
    color: #4b5563;
}

@media (max-width: 768px) {
    .about h2 {
        font-size: 3rem;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image,
    .about-text {
        width: 100%;
    }

    .about-text .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --------------- Button Styles --------------- */
.btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    color: #fff;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.2);
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.4);
    border-color: var(--accent);
}

/* --------------- Features Section --------------- */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 8rem 2rem;
    background: var(--bg-dark);
}

@media (max-width: 768px) {
    .features {
        flex-direction: column;
        align-items: center;
    }
}

.feature {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    margin-left: auto;
    margin-right: auto;
    flex: 1 1 300px;
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-main);
    transition: var(--transition);
    text-align: center;
    width: clamp(350px, 30%, 400px);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}

.feature h3 {
    font-family: "Orbitron", sans-serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--primary);
}

.feature p {
    font-size: 1rem;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* --------------- Technology Section --------------- */
.technology-section {
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.text-center {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: "Orbitron", sans-serif;
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 32rem;
    margin: 0 auto;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tech-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-main);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}

.card-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.custom-blue {
    background-color: #0969e5;
}

.custom-green {
    background-color: #0be54c;
}

.custom-purple {
    background-color: #7908eb;
}

.custom-pink {
    background-color: #ed0886;
}

.tech-card:hover .card-icon {
    transform: rotate(12deg);
}

.card-icon i {
    font-size: 1.875rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.card-description {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 1rem;
}

.card-features {
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
    color: #6b7280;
}

.tech-card:hover .card-features {
    opacity: 1;
}

.card-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.card-features i {
    color: #22c55e;
    margin-right: 0.5rem;
}

.card-border {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0.25rem;
    background: linear-gradient(to right, #3b82f6, #22c55e);
    opacity: 0;
    transition: opacity 0.3s;
}

.tech-card:hover .card-border {
    opacity: 1;
}

.stack-visualization {
    margin-top: 4rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 3rem 0;
    overflow: hidden;
    /* Hide the scrolling overflow */
    position: relative;
}

/* Add a fade effect on the edges */
.stack-visualization::before,
.stack-visualization::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15rem;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.stack-visualization::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.stack-visualization::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

.stack-title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.tech-logos {
    display: flex;
    gap: 5rem;
    width: max-content;
    padding: 0 2rem;
    animation: scroll-rtl 40s linear infinite;
    /* Right to Left */
}

.tech-logos:hover {
    animation-play-state: paused;
}

@keyframes scroll-rtl {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.tech-logo {
    position: relative;
}

.tech-logo img {
    height: 4rem;
    width: auto;
    opacity: 0.9;
    filter: none;
    /* Keep original colors */
    transition: var(--transition);
}

.tech-logo:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.tech-logo:hover img {
    opacity: 1;
}

.tech-logo:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* --------------- Team Section --------------- */
#meet-team {
    padding: 8rem 0;
    background: var(--bg-dark);
}

#meet-team h2 {
    font-family: "Orbitron", sans-serif;
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 4rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Carousel container */
.team-carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
}

/* Wrapper for slides */
.team-carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

/* Individual slide */
.team-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Team member image container */
.team-member {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    background: var(--bg-card);
    padding: 8px;
    box-shadow: var(--shadow-main);
    transition: var(--transition);
    cursor: pointer;
}

.team-member:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.team-member img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: var(--transition);
}

.team-member:hover img {
    transform: scale(1.1);
}

/* Hover overlay effect */
.team-hover-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
    border: 2px solid #e0e0e0;
}

.team-member:hover .team-hover-overlay {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Team member name */
.team-name {
    margin-top: 24px;
    font-size: 1.5rem;
    font-weight: 500;
    color: #e0e0e0;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .team-member {
        width: 192px;
        height: 192px;
    }

    .team-name {
        font-size: 1.75rem;
    }
}

/* Footer Section */
footer {
    background: rgba(5, 10, 20, 0.95);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    margin-top: 8rem;
    color: var(--text-muted);
}

/* Footer Content */
.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        align-items: center;
    }
}

/* Social Media Icons */
.footer-social {
    display: flex;
    gap: 1.25rem;
}

.social-link {
    color: #d1d5db;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

.social-link:hover {
    color: #ffffff;
}

/* Footer Links */
.footer-links {
    text-align: center;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .footer-links {
        margin-top: 0;
    }
}

.copyright {
    font-size: 0.875rem;
    color: #d1d5db;
}

.links {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.link-item {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.link-item:hover {
    color: #f97316;
}

.link-item i {
    margin-right: 0.25rem;
}

.link-item+.link-item::before {
    content: "|";
    margin: 0 0.5rem;
    color: #6b7280;
}

/* Email Subscription */
.footer-subscribe {
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .footer-subscribe {
        margin-top: 0;
    }
}

.subscribe-form {
    display: flex;
    width: 100%;
    max-width: 15rem;
}

.email-input {
    padding: 0.35rem 0.5rem;
    border: none;
    border-radius: 0.375rem 0 0 0.375rem;
    outline: none;
    color: #000000;
    width: 100%;
    font-size: 0.875rem;
}

.subscribe-button {
    background: #f97316;
    color: #ffffff;
    padding: 0.35rem 1rem;
    border: none;
    border-radius: 0 0.375rem 0.375rem 0;
    cursor: pointer;
    transition: background 0.3s;
}

.subscribe-button:hover {
    background: #ea580c;
}

/* --------------- Map, History & Detector Sections --------------- */
.map-section,
.history-section {
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
}

.map-section h2,
.history-section h2 {
    font-family: "Orbitron", sans-serif;
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.map-section p,
.history-section p {
    text-align: center;
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 48rem;
    margin: 0 auto 2.5rem;
}

/* --------------- MAP PAGE --------------- */

/* --------------- Map section --------------- */
#map {
    height: 550px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
    margin-left: auto;
    margin-right: auto;
}

/* Tooltip Styling */
#map .leaflet-tooltip {
    background: rgba(0, 0, 0, 0.8);
    color: cyan;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
    padding: 6px 10px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

/* --------------- Marine Traffic --------------- */
.img-container {
    height: 80vmin;
    max-width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1vmin;
    margin: 20px auto 30px;
}

.img-map {
    display: block;
    margin: 30px auto 20px;
    max-width: 90%;
    border-radius: 10px;
}

.img-h2 {
    font-family: "Orbitron", sans-serif;
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #2563eb, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.img-m {
    transition: flex 0.5s, filter 0.5s;
    height: 100%;
    filter: grayscale(1) brightness(0.75);
    -o-object-fit: cover;
    object-fit: cover;
    overflow: hidden;
    flex: 1;
    border-radius: 5px;
}

.img-m:hover {
    filter: grayscale(0) brightness(1.15);
    flex: 6;
}

/* --------------- History Page --------------- */

/* --------------- Graph Section --------------- */

.chart-container {
    position: relative;
    margin: auto;
    height: 400px;
    width: 90%;
}

/* --------------- Education Section --------------- */
.edu-sec {
    position: relative;
    margin: auto;
    width: 90%;
}

.edu-sec h2 {
    font-family: "Orbitron", sans-serif;
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #2563eb, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Video Grid */
.video-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Video Card */
.video-card {
    background: linear-gradient(145deg, #2d3748, #1a202c);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.video-card:hover::before {
    opacity: 1;
}

.iframe-container {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    transition: filter 0.3s ease;
}

.video-card:hover .video-iframe {
    filter: brightness(1.1);
}

.video-content {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.video-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, #d1d5db);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.video-description {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.video-stats {
    display: flex;
    justify-content: space-between;
    color: #9ca3af;
    font-size: 0.75rem;
    margin-bottom: 16px;
}

.stat-item {
    transition: transform 0.2s ease;
}

.video-card:hover .stat-item {
    transform: scale(1.05);
}

.stat-icon {
    margin-right: 4px;
}

.stat-item:nth-child(1) .stat-icon {
    color: #818cf8;
}

.stat-item:nth-child(2) .stat-icon {
    color: #c084fc;
}

.stat-item:nth-child(3) .stat-icon {
    color: #60a5fa;
}

.level-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.level-badge[data-level="beginner"] {
    background-color: #4f46e5;
}

.level-badge[data-level="intermediate"] {
    background-color: #7c3aed;
}

.level-badge[data-level="advanced"] {
    background-color: #2563eb;
}

.video-card:hover .level-badge {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --------------- Table Section --------------- */
.table-container {
    width: 90%;
    margin: 40px auto;
    color: #e0e0e0;
    font-family: "Roboto", sans-serif;
    overflow-x: auto;
}

.table-container h2 {
    font-family: "Orbitron", sans-serif;
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.table-container img {
    display: block;
    margin: 0 auto 20px;
    max-width: 100%;
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 600px) {

    th,
    td {
        padding: 8px;
        font-size: 0.9rem;
    }
}

th {
    background: #003366;
    color: #fff;
}

tr {
    cursor: pointer;
    transition: background 0.3s ease;
}

tr:hover {
    background: rgba(0, 255, 255, 0.1);
}

/* Modal styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #121212;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.7);
    position: relative;
    color: #e0e0e0;
    font-family: "Roboto", sans-serif;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
    color: cyan;
}

/* --------------- History Page --------------- */
.detect-text h2 {
    font-family: "Orbitron", sans-serif;
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #2563eb, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.detect-text p {
    text-align: center;
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 48rem;
    margin: 0 auto 2.5rem;
}

.detector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 1rem 2rem;
    position: relative;
}

.detect {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: var(--shadow-main);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.detect:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}

.detect h3 {
    font-family: "Orbitron", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.detect p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* Animated Button */
.detect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    width: 100%;
    z-index: 2;
}

.detect-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: 0.6s;
}

.detect-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.detect-btn:hover::before {
    left: 100%;
}

/* Floating Animation */
@keyframes float {

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

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

.detect {
    animation: float 6s ease-in-out infinite;
}

.detect:nth-child(2) {
    animation-delay: 0.2s;
}

.detect:nth-child(3) {
    animation-delay: 0.4s;
}

/* Hover 3D Effect */
.detect:hover .detect-inner {
    transform: rotateY(10deg) rotateX(5deg) translateZ(20px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .detector {
        padding: 4rem 1rem;
        grid-template-columns: 1fr;
    }

    .detect {
        padding: 2rem;
        animation: none;
    }

    .detect-btn {
        padding: 0.875rem 1.5rem;
    }
}

/* Particle Background Effect */
.detect-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    animation: particle 4s infinite;
}

@keyframes particle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }

    /* --------------- How It Works Section --------------- */
    .how-it-works {
        padding: 8rem 0;
        background: var(--bg-dark);
        position: relative;
        overflow: hidden;
    }

    .stepper-wrapper {
        display: flex;
        justify-content: space-between;
        position: relative;
        margin-top: 5rem;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    .stepper-wrapper::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 10%;
        right: 10%;
        height: 2px;
        background: linear-gradient(to right, var(--primary), var(--accent), var(--secondary));
        z-index: 1;
        opacity: 0.15;
    }

    .step {
        flex: 1;
        text-align: center;
        padding: 3rem 2rem;
        margin: 0 1.5rem;
        position: relative;
        z-index: 2;
        background: var(--bg-card);
        backdrop-filter: var(--blur);
        -webkit-backdrop-filter: var(--blur);
        border: 1px solid var(--glass-border);
        border-radius: 2rem;
        transition: var(--transition);
    }

    .step:hover {
        transform: translateY(-10px);
        border-color: var(--primary);
        box-shadow: var(--shadow-glow);
    }

    .step-icon {
        width: 80px;
        height: 80px;
        background: rgba(0, 210, 255, 0.1);
        border: 2px solid var(--primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 2rem;
        font-size: 2rem;
        color: var(--primary);
        box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
        transition: var(--transition);
    }

    .step:hover .step-icon {
        background: var(--primary);
        color: #fff;
        transform: scale(1.1);
    }

    .step h4 {
        font-family: "Orbitron", sans-serif;
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: #fff;
    }

    .step p {
        font-size: 1rem;
        color: var(--text-muted);
        line-height: 1.6;
    }

    @media (max-width: 992px) {
        .stepper-wrapper {
            flex-direction: column;
            gap: 3rem;
            padding: 0 2rem;
        }

        .stepper-wrapper::before {
            display: none;
        }

        .step {
            margin: 0;
        }
    }

    /* --------------- Contact Section (Upgraded) --------------- */
    .contact-section {
        padding: 10rem 0;
        background: var(--bg-dark);
        position: relative;
        overflow: hidden;
    }

    .contact-header {
        text-align: center;
        max-width: 800px;
        margin: 0 auto 5rem;
    }

    .contact-grid {
        display: grid !important;
        grid-template-columns: 1fr 1.5fr !important;
        gap: 4rem !important;
        align-items: start !important;
    }

    /* Contact Info Side */
    .contact-info-side {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .contact-card-v2 {
        display: flex !important;
        align-items: center !important;
        padding: 1.5rem 2rem !important;
        border-radius: 1.5rem !important;
        border: 1px solid var(--glass-border) !important;
        background: var(--bg-card) !important;
        backdrop-filter: var(--blur) !important;
        -webkit-backdrop-filter: var(--blur) !important;
        transition: var(--transition) !important;
        text-decoration: none !important;
    }

    .contact-card-v2:hover {
        transform: translateX(10px) !important;
        border-color: var(--primary) !important;
        box-shadow: var(--shadow-glow) !important;
    }

    .contact-icon {
        width: 3.5rem !important;
        height: 3.5rem !important;
        background: rgba(0, 210, 255, 0.1) !important;
        border-radius: 1rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.5rem !important;
        color: var(--primary) !important;
        margin-right: 1.5rem !important;
        transition: var(--transition) !important;
    }

    .contact-card-v2:hover .contact-icon {
        background: var(--primary) !important;
        color: #fff !important;
        transform: rotate(-10deg) !important;
    }

    .contact-detail h4 {
        font-family: "Orbitron", sans-serif !important;
        font-size: 0.8rem !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        margin-bottom: 0.25rem !important;
        color: var(--primary) !important;
    }

    .contact-detail a {
        color: #fff !important;
        text-decoration: none !important;
        font-size: 1.1rem !important;
        font-weight: 500 !important;
    }

    /* Contact Form Side */
    .contact-form-side {
        padding: 3rem !important;
        border-radius: 2rem !important;
        border: 1px solid var(--glass-border) !important;
        background: var(--bg-card) !important;
        backdrop-filter: var(--blur) !important;
        -webkit-backdrop-filter: var(--blur) !important;
        animation: slideInRight 0.8s ease-out !important;
    }

    .contact-form {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }

    .form-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .form-group label {
        font-family: "Poppins", sans-serif !important;
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        color: var(--text-muted) !important;
    }

    .input-wrapper {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
    }

    .input-wrapper i {
        position: absolute !important;
        left: 1.25rem !important;
        color: var(--primary) !important;
        font-size: 1.1rem !important;
        opacity: 0.7 !important;
        z-index: 2 !important;
    }

    .input-wrapper input,
    .input-wrapper textarea {
        width: 100% !important;
        padding: 1rem 1rem 1rem 3.5rem !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid var(--glass-border) !important;
        border-radius: 1rem !important;
        color: #fff !important;
        font-family: "Inter", sans-serif !important;
        font-size: 1rem !important;
        transition: var(--transition) !important;
        outline: none !important;
    }

    .input-wrapper input:focus,
    .input-wrapper textarea:focus {
        border-color: var(--primary) !important;
        background: rgba(255, 255, 255, 0.07) !important;
        box-shadow: 0 0 15px rgba(0, 210, 255, 0.1) !important;
    }

    .submit-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1rem !important;
        padding: 1.25rem !important;
        background: var(--primary-gradient) !important;
        border: none !important;
        border-radius: 1rem !important;
        color: #fff !important;
        font-family: "Orbitron", sans-serif !important;
        font-weight: 700 !important;
        font-size: 1rem !important;
        cursor: pointer !important;
        transition: var(--transition) !important;
        margin-top: 1rem !important;
    }

    .submit-btn:hover {
        transform: translateY(-5px) !important;
        box-shadow: var(--shadow-glow) !important;
        filter: brightness(1.1) !important;
    }

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

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

    /* Responsive Styles */
    @media (max-width: 992px) {
        .contact-grid {
            grid-template-columns: 1fr;
            gap: 3rem;
        }

        .contact-form-side {
            padding: 2rem;
        }
    }