/* -----------------------------------------------------------------------------
   INFIVITY - High Energy Tech Brand Styles
   Theme: Cyber-creative, Neon, Glassmorphism
   Colors: Deep Purple (#4e2780), Neon Yellow (#ffde59), Black (#000000), White (#fff)
----------------------------------------------------------------------------- */

/* --- Variables --- */
:root {
    --color-bg: #4e2780;
    --color-bg-dark: #2a1548;
    --color-black: #000000;
    --color-accent: #ffde59;
    --color-white: #ffffff;
    --color-glass: rgba(255, 255, 255, 0.05);
    --color-glass-border: rgba(255, 255, 255, 0.1);
    --color-glass-hover: rgba(255, 255, 255, 0.1);

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Poppins', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --border-radius: 12px;
}

/* --- Global Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
}

h2 {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
}

p {
    margin-bottom: var(--spacing-sm);
    font-weight: 300;
}

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* --- Animations --- */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px var(--color-accent);
    }

    50% {
        box-shadow: 0 0 20px var(--color-accent), 0 0 10px var(--color-accent);
    }

    100% {
        box-shadow: 0 0 5px var(--color-accent);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-btn {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 222, 89, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(255, 222, 89, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 222, 89, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show-fade {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem var(--spacing-md);
    background: rgba(78, 39, 128, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid var(--color-glass-border);
}

.logo a {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--color-white);
    letter-spacing: 3px;
    text-shadow: 0 0 10px var(--color-accent);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-item {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s;
}

.nav-item:hover {
    color: var(--color-accent);
}

.nav-item:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    /* Above toggle menu */
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--color-white);
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 6px);
    background-color: var(--color-black);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -6px);
    background-color: var(--color-black);
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-accent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 1000;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav-item {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-black);
    font-weight: 900;
    text-transform: uppercase;
}

.mobile-nav-item:hover {
    color: var(--color-bg);
    letter-spacing: 4px;
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #5e3096 0%, #4e2780 100%);
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 6s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #ffde59;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #a966ff;
    bottom: 10%;
    right: -50px;
    animation-delay: 2s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: #00ffff;
    top: 40%;
    left: 60%;
    animation-delay: 4s;
    opacity: 0.4;
}

.hero-content {
    z-index: 10;
    max-width: 800px;
    padding: 0 1rem;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 222, 89, 0.5);
}

.hero-tagline {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--color-accent);
    color: var(--color-black);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    font-size: 1.1rem;
    animation: pulse-btn 2s infinite;
}

.cta-button:hover {
    background-color: var(--color-white);
    color: var(--color-bg);
    animation: none;
    box-shadow: 0 0 30px var(--color-accent);
}

/* --- Courses Section --- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 222, 89, 0.2);
}

.card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(78, 39, 128, 0.8) 100%);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.card-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* --- Services Section --- */
.services-bg {
    background-color: #3b1d63;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.service-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-glass-border);
    padding: 2rem;
    border-radius: var(--border-radius);
    width: calc(33.333% - 1.5rem);
    min-width: 250px;
    text-align: center;
    transition: 0.3s;
}

.service-item:hover {
    background: var(--color-glass-hover);
    border-color: var(--color-accent);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-item h3 {
    font-size: 1.2rem;
    font-family: var(--font-body);
    /* More readability for list */
    font-weight: 600;
}

/* --- About Section --- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: var(--color-glass);
    padding: 3rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--color-accent);
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* --- Footer --- */
footer {
    background-color: var(--color-black);
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    border: 2px solid var(--color-glass-border);
    border-radius: 50%;
    transition: 0.4s;
    background: rgba(255, 255, 255, 0.05);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.social-icon:hover {
    background-color: var(--color-accent);
    color: var(--color-black);
    border-color: var(--color-accent);
    transform: rotate(360deg);
}

.copyright {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .service-item {
        width: 100%;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }
}