/* ================= RESET ================= */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* prevents horizontal scroll if anything overflows */
    overflow-y: auto; /* prevents horizontal scroll if anything overflows */

}
.container, .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}


/* ================= ROOT VARIABLES ================= */
:root {
    --bg-color: linear-gradient(135deg, #0f0f1a, #1a1a2e);
    --text-color: #e0e0e0;
    --navbar-bg: linear-gradient(90deg, #0f0f1a, #1a1a2e);
    --navbar-link: #e0e0e0;
    --card-bg: #1f1f3a;
    --footer-bg: linear-gradient(135deg, #111126, #1f1f3a, #0f0f1a);
    --footer-text: #ccc;
    --accent-color: #00ffc6;
}

/* ================= BODY ================= */
body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', sans-serif;
    scroll-behavior: smooth;
    padding-top: 0; /* no gap */
}

/* ================= ABOUT ================= */
#about h2 { font-weight: 700; }
#about p { font-size: 1.05rem; line-height: 1.7; }
#about img { max-width: 90%; }

.about-img {
    max-width: 100%;
    transform: scale(1.05);
    border-radius: 14px;
    padding: 6px;
    background: linear-gradient(120deg, var(--accent-color), transparent, var(--accent-color));
    background-size: 300% 300%;
    animation: borderMove 6s linear infinite;
    transition: transform 0.4s ease;
}

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

@keyframes borderMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ================= NAVBAR ================= */
.navbar {
    background: var(--navbar-bg) !important;
    background-size: 400% 400%;
    animation: headerFlow 12s ease infinite;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    position: relative;
}

@keyframes headerFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header glow */
.navbar::before {
    content: "";
    position: absolute;
    inset: -60% -20%;
    background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 65%);
    animation: glowMove 18s linear infinite;
    z-index: -1;
}

@keyframes glowMove {
    0% { transform: translateX(-10%); }
    50% { transform: translateX(10%); }
    100% { transform: translateX(-10%); }
}

/* Navbar links */
.navbar-nav .nav-link {
    color: var(--navbar-link) !important;
    position: relative;
    transition: color 0.25s ease;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

/* DEFAULT hover (dark theme) */
.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Logo hover */
.navbar-brand img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

body.dark-theme .navbar-brand:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 18px rgba(0,255,198,0.6);
}

body.light-theme .navbar-brand:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

/* ================= CARDS ================= */
.service-card,
.product-card {
    background: var(--card-bg);
    border-radius: 14px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover,
.product-card:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 18px 35px rgba(0,255,198,0.45);
}

/* ================= FOOTER ================= */
footer {
    background: var(--footer-bg);
    background-size: 400% 400%;
    animation: footerWave 20s ease infinite;
    color: var(--footer-text);
    position: relative;
    overflow: hidden;
}

@keyframes footerWave {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Footer animated line */
footer::before {
    content: "";
    position: absolute;
    top: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #22c55e, #3b82f6, #ec4899, #f59e0b);
    background-size: 300% 100%;
    animation: glowLine 8s linear infinite;
}

@keyframes glowLine {
    0% { background-position: 0% 0; }
    100% { background-position: 300% 0; }
}

/* Footer soft shape */
footer::after {
    content: "";
    position: absolute;
    top: -70px;
    left: -10%;
    width: 120%;
    height: 140px;
    background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 70%);
    filter: blur(30px);
}

footer a {
    color: var(--footer-text) !important;
    transition: color 0.3s ease, transform 0.3s ease;
}

footer a:hover {
    color: var(--accent-color) !important;
    transform: translateX(6px);
}
a{
    text-decoration: none;
}

/* ================= SCROLL ANIMATIONS ================= */
.fade-section,
.fade-left,
.fade-right {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.fade-left { transform: translateX(-30px); }
.fade-right { transform: translateX(30px); }

.visible {
    opacity: 1;
    transform: translate(0);
}

/* ================= LIGHT THEME ================= */
body.light-theme {
    --bg-color: linear-gradient(135deg, #e3f2fd, #e8f8f5, #f1f3f6);
    --text-color: #1c2b36;
    --card-bg: rgba(255,255,255,0.75);

    --accent-color: #14b8a6;
    --accent-warm: #f59e0b;

    --navbar-bg: linear-gradient(90deg, #6384cb, #14b8a6, #22c55e);
    --navbar-link: #ecfeff;

    --footer-bg: linear-gradient(135deg, #020617, #0f766e, #2563eb);
    --footer-text: #e0f2fe;
}

/* 🔥 LIGHT THEME NAV LINK HOVER = BLACK */
body.light-theme .navbar-nav .nav-link:hover {
    color: #000000 !important;
    text-shadow: none;
}

body.light-theme .navbar-nav .nav-link::after {
    background-color: #000000;
}

/* Floating luxury motion */
body.light-theme .fade-section.visible {
    animation: softFloat 6s ease-in-out infinite;
}

@keyframes softFloat {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ================= DARK THEME ================= */
body.dark-theme {
    --bg-color: linear-gradient(135deg, #0f0f1a, #1a1a2e);
    --text-color: #e0e0e0;
    --navbar-bg: linear-gradient(90deg, #0f0f1a, #1a1a2e);
    --navbar-link: #e0e0e0;
    --card-bg: #1f1f3a;
    --footer-bg: linear-gradient(135deg, #111126, #1f1f3a, #0f0f1a);
    --footer-text: #ccc;
    --accent-color: #00ffc6;
}
