:root {
    --bg-color: #050505;
    --surface-color: #121212;
    --surface-hover: #1E1E1E;
    --primary-color: #00DB7D;
    /* Vibrant Green */
    --primary-hover: #00B366;
    --text-primary: #FFFFFF;
    --text-secondary: #A3A3A3;
    --border-color: #262626;
    --border-focus: #404040;

    --font-main: 'Outfit', sans-serif;

    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(to right, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 219, 125, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 219, 125, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-sm:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* navbar height */
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 219, 125, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.badgxe {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 219, 125, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 219, 125, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features / Mechanism */
.mechanism {
    background-color: #080808;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    background: var(--surface-hover);
    border-color: var(--border-focus);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    font-weight: 700;
    color: var(--surface-hover);
    /* Subtle background number */
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.5;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
}

/* About Section */
.about-section {
    background-color: var(--surface-color);
    position: relative;
    overflow: hidden;
}

.about-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.about-image-wrapper {
    flex: 1;
    position: relative;
    border-radius: var(--radius-lg);
}

.about-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.about-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 219, 125, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.highlight {
    color: var(--primary-color);
}

.about-stats {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.about-stats li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: border-color 0.3s;
}

.about-stats li:hover {
    border-color: var(--border-focus);
}

.about-stats .icon {
    font-size: 1.5rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info strong {
    font-size: 1rem;
    color: var(--text-primary);
}

.stat-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.05rem;
}

.about-text p strong {
    color: var(--text-primary);
}

/* Results Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 300px;
    gap: var(--spacing-sm);
    grid-auto-flow: dense;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Default mobile: Stack all */
.gallery-item {
    grid-column: span 12;
    grid-row: span 1;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-auto-rows: 300px;
    }

    /* Item 1: Wide Dashboard */
    .gallery-item:nth-child(1) {
        grid-column: span 8;
        grid-row: span 1;
    }

    /* Item 2: Tall Phone (Hand) */
    .gallery-item:nth-child(2) {
        grid-column: span 4;
        grid-row: span 2;
    }

    /* Item 3: Notifications List 1 */
    .gallery-item:nth-child(3) {
        grid-column: span 4;
        grid-row: span 1;
    }

    /* Item 4: Notifications List 2 */
    .gallery-item:nth-child(4) {
        grid-column: span 4;
        grid-row: span 1;
    }

    /* Adjust object position for phones */
    .gallery-item:nth-child(2) img,
    .gallery-item:nth-child(3) img,
    .gallery-item:nth-child(4) img {
        object-position: center;
    }
}

/* CTA Section */
.cta-section {
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    padding: var(--spacing-xl) var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .about-content {
        flex-direction: column;
    }

    .about-image-wrapper {
        width: 100%;
        margin-bottom: var(--spacing-md);
    }

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

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3) {
        grid-column: span 1;
        grid-row: auto;
    }
}

/* Students Section */
.students-section {
    background-color: var(--bg-color);
}

.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.student-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.student-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.student-card img {
    width: 100%;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
    max-height: 500px;
    object-fit: contain;
    background: #000;
}

.student-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-xs);
}

.student-info strong {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.student-info span {
    color: #FFD700;
    /* Gold for stars */
    letter-spacing: 2px;
}
/* Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-viewport {
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-track .gallery-item {
    flex: 0 0 100%; /* Each slide takes 100% of container */
    margin: 0;
    border: none;
    border-radius: 0;
    height: 500px; /* Fixed height for carousel */
    background: #000;
}

.carousel-track .gallery-item img {
    object-fit: contain; /* Ensure images fit nicely */
}

/* Specific styling for carousel navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 219, 125, 0.2);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: #000;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

@media (max-width: 768px) {
    .carousel-track .gallery-item {
        height: 400px;
    }
}
