/* Root Variables for Colors */
:root {
    --primary-color: #00ffe7;
    --secondary-color: #ffffff;
    --background-color: #0a0a0a;
    --text-color: #e0e0e0;
    --accent-color: rgba(255, 255, 255, 0.1);
    --neon-color: #00ffe7;
}

/* Global Styling */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, p {
    margin: 0;
    padding: 0;
}

a {
    color: var(--neon-color);
    text-decoration: none;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Styling */
header {
    background-color: rgba(0, 0, 0, 0.85);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    font-size: 1.8rem;
    margin: 0;
}

header h1 a {
    color: var(--secondary-color);
    text-decoration: none;
}

.menu-icon {
    display: none;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
}

#menu-toggle {
    display: none;
}

nav {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin-left: 2rem;
}

.nav-list li a {
    color: var(--primary-color);
    font-weight: bold;
    position: relative;
    transition: color 0.3s;
}

.nav-list li a::after {
    content: '';
    width: 0%;
    height: 2px;
    background: var(--neon-color);
    position: absolute;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

.nav-list li a:hover::after {
    width: 100%;
}

.nav-list li a:hover {
    color: var(--secondary-color);
}

.nav-list li a.active {
    color: var(--secondary-color);
}

.nav-list li a.active::after {
    width: 100%;
}

/* NEW: Business card icon link styles */
.nav-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.35rem;
}

.nav-card-icon {
    width: 22px;
    height: 22px;
    display: block;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: url('../img/spacebg.png') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    background: rgba(0, 0, 0, 0.6);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 5px solid var(--neon-color);
    margin: 1rem;
    box-shadow: 0 0 20px var(--neon-color);
    animation: neon-glow 1.5s infinite alternate;
}

@keyframes neon-glow {
    from {
        box-shadow: 0 0 10px var(--neon-color), 0 0 20px var(--neon-color), 0 0 30px var(--neon-color);
    }
    to {
        box-shadow: 0 0 20px var(--neon-color), 0 0 30px var(--neon-color), 0 0 40px var(--neon-color);
    }
}

.hero-text {
    max-width: 600px;
    text-align: center;
    margin: 1rem;
}

.hero-text h2 {
    font-size: 3rem;
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--neon-color);
    animation: text-flicker 3s infinite;
}

@keyframes text-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
    }
    20%, 24%, 55% {
        opacity: 0;
    }
}

.hero-text p {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 1rem;
}

.hero-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    border: 2px solid var(--neon-color);
    color: var(--secondary-color);
    font-size: 1.2rem;
    border-radius: 50px;
    transition: background 0.3s, transform 0.3s;
}

.hero-button:hover {
    background: var(--neon-color);
    color: var(--background-color);
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--neon-color);
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--neon-color);
    text-shadow: 0 0 10px var(--neon-color);
    text-align: center;
}

.section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    color: var(--text-color);
    text-align: center;
}

.section a {
    color: var(--primary-color);
    font-weight: bold;
    border-bottom: 1px solid var(--primary-color);
    transition: color 0.3s, border-color 0.3s;
}

.section a:hover {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Quotes Carousel */
.quotes-carousel {
    padding: 5rem 0;
    background: url('../img/spacebg.png') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.quotes-carousel::before {
    content: '';
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.quotes-carousel .container {
    position: relative;
    z-index: 1;
}

.quotes-carousel .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--neon-color);
    text-shadow: 0 0 10px var(--neon-color);
    text-align: center;
}

.quotes-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    min-height: 150px;
}

.quote {
    opacity: 0;
    position: absolute;
    left: 0;
    right: 0;
    transition: opacity 1s ease-in-out;
    color: var(--secondary-color);
    text-align: center;
}

.quote.active {
    opacity: 1;
}

.quote p {
    font-size: 1.5rem;
    text-shadow: 0 0 5px var(--neon-color);
}

.quote .author {
    margin-top: 1rem;
    font-size: 1rem;
    font-style: italic;
    color: var(--primary-color);
}

/* Footer */
footer {
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.85);
    color: var(--text-color);
    text-align: center;
}

footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
    }

    .menu-icon {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
    }

    #menu-toggle:checked + .menu-icon + nav {
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .nav-list li {
        margin: 1rem 0;
    }

    .hero-text h2 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }
}

/* ✅ Added: Mobile optimization (strictly additive; no other changes) */
@media (max-width: 600px) {
    .container {
        width: 92%;
    }

    header h1 {
        font-size: 1.35rem;
    }

    .nav-list li {
        margin-left: 0;
    }

    .hero {
        background-attachment: scroll;
        height: auto;
        min-height: 100vh;
        padding: 6rem 0 3rem;
    }

    .hero-content {
        flex-direction: column;
    }

    .hero-image {
        width: 180px;
        height: 180px;
        margin: 0.75rem;
    }

    .hero-text {
        max-width: 100%;
        margin: 0.75rem 0.5rem;
    }

    .hero-text h2 {
        font-size: 2.0rem;
        line-height: 1.15;
    }

    .hero-text p {
        font-size: 1.05rem;
        margin-top: 0.75rem;
    }

    .hero-button {
        padding: 0.9rem 1.4rem;
        font-size: 1.05rem;
        margin-top: 1.4rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section h2 {
        font-size: 2rem;
        margin-bottom: 1.4rem;
    }

    .section p {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }

    .quotes-carousel {
        background-attachment: scroll;
        padding: 3.5rem 0;
    }

    .quotes-container {
        min-height: 190px;
    }

    .quote p {
        font-size: 1.2rem;
    }
}

/* Fix: Center the "Get in Touch" button in the Contact section */
.section.glass:last-of-type .container {
    text-align: center;
}

/* ✅ FIX: Stop navbar links from disappearing on mobile/tablet (collapse earlier) */
@media (max-width: 1100px) {
    header .container {
        flex-wrap: wrap;
    }

    .menu-icon {
        display: block;
    }

    /* Override desktop nav layout */
    nav {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);

        /* Fully hidden by default */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;

        /* Override the old transform-hide method */
        transform: none;
        transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    }

    /* Show menu when toggled */
    #menu-toggle:checked + .menu-icon + nav {
        max-height: 80vh;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        padding: 0.75rem 0;
    }

    .nav-list li {
        margin: 1rem 0;
    }
}
