/* ===================================================
   ===== Global Styles =====
=================================================== */
:root {
    --color-bg: #cfcfcf;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-accent: #38bdf8;
    --color-primary: #ff9800;

    --font-primary: 'Inter', sans-serif;
    --nav-bg: #c3c7ca;
}

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

/* BASE */
html {
    scroll-behavior: smooth;
}

/* BASE */
body {
    font-family: var(--font-primary);
    background: var(--color-bg);
    color: var(--color-text);
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -1px;
    font-optical-sizing: auto;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

h3 {
    font-size: 1.3rem;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    margin-bottom: 1.5rem;
}

/* TYPOGRAPHY */
p {
    font-size: 1.1rem;
    color: var(--color-muted);
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

/* ===================================================
   ===== Navbar =====
=================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    background-color: var(--nav-bg);
    padding: 0.2rem 0.8rem;
    position: fixed;
    top: 10px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    border-radius: 12px;
    align-items: center;
}

/* Brand container (logo + name) */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-style: italic;
}

/* Logo image */
.logo {
    height: 50px;
    width: 50px;
    object-fit: contain;
    border-radius: 6px;
    /* optional for a softer look */
}

.brand-name {
    font-size: 2.4rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    gap: 5px;
}

.brand-name-vimal {
    color: #000000;
    font-weight: 700;
}

.brand-name-tech {
    color: #a6e22e;
    /* neon green */
}

.brand-gradient-text {
    background: linear-gradient(90deg,
            #000000,
            #dcffa5,
            #34ff7e,
            #01628b);
    background-size: 900% auto;

    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    animation: gradientMove 4s linear infinite;
    filter: drop-shadow(0 0 6px rgba(163, 230, 53, 0.4));
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    font-size: 22px;
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.nav-links li a {
    text-decoration: none;
    transition: color 0.3s;
    color: #333;
}

.nav-links li a.active,
.nav-links li a.active:hover {
    color: #003cff;
    font-weight: 300;
}

.nav-links li a:hover {
    color: #ff6347;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    z-index: 1000;
}

.nav-links .dropdown li a {
    color: #a6e22e;
    /* neon green */
}

/* Hamburger menu */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s ease;
}

.hamburger.active {
    transform: rotate(180deg);
}

/* Media Queries */
@media (max-width: 768px) {
    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        left: 10px;
        right: 10px;
    }

    .brand {
        display: flex;
        align-items: center;
    }

    .brand-name {
        font-size: 1.6rem;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        font-display: block;
        position: absolute;
        /* Takes the text out of the normal flow */
        left: 50%;
        /* Pushes the left edge to the exact middle */
        transform: translateX(-50%);
        /* Pulls it back by half its own width for true centering */

        /* Ensure the text is laid out nicely */
        display: flex;
        gap: 6px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: var(--nav-bg);
        flex-direction: column;
        width: 300px;
        padding: 10px;
        border-radius: 5px;
    }

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

    .hamburger {
        display: block;
    }

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

/* =========================================
   HERO (GLOBAL)
========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    /* change from 60vh */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    /* slightly stronger */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 1s ease forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HERO FIX (IMPORTANT) ===== */
.hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

/* Hero text */
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.3;
    color: #e5ff7a;
    /* your strong green */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    animation: fadeUp 0.8s ease forwards;
}

.highlight-text {
    color: #a3e635;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    gap: 30px;
}

.hero-subtext {
    font-size: 1.1rem;
    color: #e5e7eb;
    line-height: 1.6;
    margin-top: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

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

.gradient-text {
    background: linear-gradient(90deg,
            #38bdf8,
            #22c55e,
            #a3e635,
            #38bdf8);
    background-size: 200% auto;

    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    animation: gradientMove 4s linear infinite;
    filter: drop-shadow(0 0 6px rgba(163, 230, 53, 0.4));
}

@keyframes gradientMove {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: linear-gradient(90deg, #38bdf8, #22c55e, #a3e635, #38bdf8);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: var(--color-text);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    animation: gradientMove 4s linear infinite;
    filter: drop-shadow(0 0 6px rgba(163, 230, 53, 0.4));
}

body.dark .section-title {
    --color-text: #e0e0e0;
}

/* ===== BUTTON FIX (IMPORTANT) ===== */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    background: var(--color-primary);
    color: #fff;
    transition: all 0.3s ease;
}

.btn:hover {
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.6);
    transform: scale(1.05);
}

.btn:hover::after {
    transform: scale(1.1);
}

.btn.primary {
    background: #ff9800;
    color: #fff;
}

.btn.secondary {
    border: 1px solid #fff;
    color: #fff;
}

/* ===== FADE-IN FIX (SINGLE SYSTEM ONLY) ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================================
================ NavBar Dark mode ====================
====================================================== */
body.dark {
    background: #181818;
    color: #e0e0e0;
}

body.dark .navbar .brand-name-vimal {
    color: #fff;
}

body.dark .navbar .brand-name-tech {
    color: #000000;
}

body.dark .navbar {
    background: #4b76ad;
}

/* body.dark nav ul li a {
    color: rgb(201, 238, 99);
    color: #e0e0e0;
} */

body.dark .nav-links a.active {
    color: rgb(255, 255, 255);
}

body.dark nav ul li a:hover {
    color: #ff9800;
}

body.dark .hamburger {
    color: #000;
}

body.dark p {
    color: #ccc;
}

body.dark .site-footer {
    background: #0f172a;
}

/* ===================================================
   ===== Containers & Animations =====
=================================================== */
.container {
    width: 85%;
    margin: auto;
    padding: 1rem 0;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================================
   ===== Footer =====
=================================================== */

.site-footer {
    background: linear-gradient(180deg, #112c6d, #020617);
    color: #e5ff7a;
    padding: 60px 20px;
    font-size: 18px;
}

/* top divider */
.footer-divider {
    height: 1px;
    background: rgb(208, 255, 0);
    margin-bottom: 35px;
}

/* container */
.footer-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

/* 3-Column Layout */
.footer-left,
.footer-center,
.footer-links {
    flex: 1;
    /* max-width: 320px; */
}

.footer-center {
    border-left: 1px solid rgb(208, 255, 0);
    border-right: 1px solid rgb(208, 255, 0);
    padding: 0 0 70px 10px;
}

.footer-links {
    text-align: right;
}

/* typography */

.site-footer h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.site-footer p {
    margin: 6px 0;
    line-height: 1.5;
    color: #fff;
}

.tagline {
    font-weight: 500;
}

.studio-line {
    opacity: 0.8;
}

/* brand divider */

.brand-divider-left,
.brand-divider-center,
.brand-divider-right {
    width: 110px;
    height: 2px;
    background: #60a5fa;
    margin: 14px 0 18px 0;
}

/* MSME text */

.msme,
.udyam {
    font-size: 16px;
    opacity: 0.85;
}

/* links */

.site-footer a {
    color: #60a5fa;
    text-decoration: none;
}

.site-footer a:hover {
    color: #93c5fd;
}

/* social icons */

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.footer-social a {
    margin: 0;
}

.footer-social i {
    font-size: 26px;
}

/* bottom bar */

.footer-bottom {
    border-top: 1px solid rgb(208, 255, 0);
    margin-top: 30px;
    padding-top: 10px;
    text-align: center;
    opacity: 0.8;
}

.footer-left p,
.footer-right p {
    margin: 8px 0;
    line-height: 1.6;
}

/* ===== Mobile ===== */

@media (max-width:768px) {

    .footer-container {
        flex-direction: column;
        text-align: left;
        gap: 30px;
    }

    .footer-social {
        display: flex;
        gap: 16px;
        margin-top: 10px;
    }

    .footer-social a {
        margin: 0;
    }

    .footer-social i {
        font-size: 30px;
    }

    .brand-divider-left,
    .brand-divider-center,
    .brand-divider-right {
        width: 50px;
        height: 2px;
        background: #60a5fa;
        margin: 14px 0;
    }

    .footer-center {
        border: none;
        padding: 0;
    }

    .footer-links {
        text-align: left;
    }
}

/* ==========================
====== Quick Links =======
========================== */

.footer-links {
    text-align: left;
}

.footer-links a {
    text-decoration: none;
    color: #60a5fa;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* =========================================
======= Verify MSME Registration ========
=========================================  */

.udyam-verify a {
    font-size: 13px;
    color: #60a5fa;
    text-decoration: none;
}

.udyam-verify a:hover {
    text-decoration: underline;
}

/* ===================================================
   ===== Floating Dark Mode Toggle =====
=================================================== */
#darkModeToggle {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    background: #000000;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background 0.3s, transform 0.3s;
    z-index: 1000;
}

/* Hover effect */
#darkModeToggle:hover {
    transform: rotate(20deg) scale(1.1);
}

/* ===== Scroll to Top Button ===== */
#scrollTopBtn {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 2000;
    width: 50px;
    height: 50px;
    border: none;
    outline: none;
    background-color: #ff9800;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.5);
    transition: opacity 0.4s, transform 0.3s, background 0.3s, box-shadow 0.3s;
    opacity: 0;
    pointer-events: none;
    animation: pulse 2s infinite ease-in-out;
}

/* Show when scrolling (with pulse glow) */
#scrollTopBtn.show {
    opacity: 1;
    pointer-events: auto;
    animation: pulse 2s infinite ease-in-out;
}

/* Stop pulse on hover and add stronger glow */
#scrollTopBtn:hover {
    background-color: #e68900;
    transform: scale(1.1);
    animation: none;
    /* stop pulsing */
    box-shadow: 0 0 18px rgba(255, 152, 0, 0.8);
}

/* Pulse animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(255, 152, 0, 0.4);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 16px rgba(255, 152, 0, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(255, 152, 0, 0.4);
    }
}

/* ===================================================
   ===== Dark Mode =====
=================================================== */
/* ===== Dark Mode Override ===== */
body.dark #scrollTopBtn {
    background-color: #ff9800;
    color: #fff;
}

body.dark #scrollTopBtn:hover {
    background-color: #e68900;
}

/* Dark mode appearance */
body.dark #darkModeToggle {
    background: #00bcd4;
    /* Cyan glow in dark mode */
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.4);
}

body.dark #darkModeToggle:hover {
    background: #3ce8ff;
}