/* CSS Custom Properties - Premium Rainbow Palette */
:root {
    /* Base Neutral Colors */
    --bg-dark: #0f111a;
    --bg-darker: #090a0f;
    --text-main: #f0f3f8;
    --text-muted: #a0a8b9;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Rainbow Palette (Harmony and Vibrant, not harsh) */
    --c-red: #ff4b4b;
    --c-orange: #ff8c42;
    --c-yellow: #f9c22e;
    --c-green: #37cc8e;
    --c-blue: #23a0ff;
    --c-purple: #9d4edd;
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
}

/* Reset & Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography styles */
h1, h2, h3 { line-height: 1.2; font-weight: 800; }
a { text-decoration: none; color: inherit; }

/* Utilities */
.highlight {
    color: var(--c-blue);
}

/* Rainbow Text Gradient */
.rainbow-text {
    background: linear-gradient(90deg, var(--c-red), var(--c-orange), var(--c-yellow), var(--c-green), var(--c-blue), var(--c-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
    background-size: 200% auto;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

/* Buttons */
.btn-primary {
    background: var(--text-main);
    color: var(--bg-dark);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    border: 1px calc(var(--glass-border)) solid;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--text-main);
    color: var(--bg-dark);
}

.btn-outline-small {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    margin-top: 1rem;
}

.btn-outline-small:hover {
    background: var(--text-main);
    color: var(--bg-dark);
}

.btn-rainbow {
    background: linear-gradient(90deg, var(--c-red), var(--c-orange), var(--c-purple));
    background-size: 200% auto;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.5s;
}

.btn-rainbow:hover {
    background-position: right center;
    transform: scale(1.02);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}

.navbar.scrolled {
    background: rgba(15, 17, 26, 0.9);
    backdrop-filter: blur(16px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-img {
    height: 70px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s;
}

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

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a:not(.btn-primary) {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    color: var(--text-muted);
    transition: color 0.3s;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--text-main);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section (Video Background) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to right, rgba(9, 10, 15, 0.9) 0%, rgba(9, 10, 15, 0.6) 100%);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

.badge-pnab {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--c-yellow);
    box-shadow: 0 0 20px rgba(249, 194, 46, 0.1);
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    flex: 1;
}

.stat-card i {
    font-size: 3rem;
    color: var(--c-orange);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Impact Section */
.impact {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.impact-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.impact-header h2 { font-size: 3rem; margin-bottom: 1rem; }
.impact-header p { color: var(--text-muted); font-size: 1.15rem; }

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.impact-box {
    background: var(--glass-bg);
    border-left: 4px solid var(--c-blue);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s;
}

.impact-box:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.05);
}

.impact-box i {
    font-size: 2.5rem;
    color: var(--c-blue);
    margin-bottom: 1rem;
}

.impact-box h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.impact-box p {
    color: var(--text-muted);
}

/* Projects Section (Flip Cards) */
.projects {
    padding: 8rem 0;
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
}

.projects-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.projects-header h2 { font-size: 3rem; margin-bottom: 1rem; }
.projects-header p { color: var(--text-muted); font-size: 1.15rem; }

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

.flip-card {
    background-color: transparent;
    height: 250px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
}

.flip-card-front::before, .flip-card-back::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.flip-card-front.c-red::before, .flip-card-back.c-red::before { background: var(--c-red); }
.flip-card-front.c-orange::before, .flip-card-back.c-orange::before { background: var(--c-orange); }
.flip-card-front.c-yellow::before, .flip-card-back.c-yellow::before { background: var(--c-yellow); }
.flip-card-front.c-green::before, .flip-card-back.c-green::before { background: var(--c-green); }
.flip-card-front.c-blue::before, .flip-card-back.c-blue::before { background: var(--c-blue); }
.flip-card-front.c-purple::before, .flip-card-back.c-purple::before { background: var(--c-purple); }

.flip-card-front .card-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.flip-card-front.c-red .card-icon { color: var(--c-red); }
.flip-card-front.c-orange .card-icon { color: var(--c-orange); }
.flip-card-front.c-yellow .card-icon { color: var(--c-yellow); }
.flip-card-front.c-green .card-icon { color: var(--c-green); }
.flip-card-front.c-blue .card-icon { color: var(--c-blue); }
.flip-card-front.c-purple .card-icon { color: var(--c-purple); }

.flip-card-front h3 { font-size: 1.5rem; }

.flip-card-back {
    transform: rotateY(180deg);
    background: rgba(255, 255, 255, 0.05);
}

.flip-card-back p {
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Gallery Section */
.gallery {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.gallery-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.gallery-header h2 { font-size: 3rem; margin-bottom: 1rem; }
.gallery-header p { color: var(--text-muted); font-size: 1.15rem; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    height: 350px;
    border: 1px solid var(--glass-border);
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0, 0.2);
}

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

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

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
}

.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials-header h2 { font-size: 3rem; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    position: relative;
}

.testimonial-card i {
    font-size: 2rem;
    color: var(--c-purple);
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.testimonial-card h4 {
    color: var(--c-yellow);
    margin-bottom: 0.2rem;
}

.testimonial-card span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Help Section */
.help {
    padding: 6rem 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--glass-border);
}

.container-help {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.help-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.help-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.help-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.help-box {
    background: var(--bg-darker);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.help-box i {
    font-size: 2rem;
    color: var(--c-green);
    margin-bottom: 0.5rem;
}

.help-box h3 { font-size: 1.2rem; }
.help-box p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
}

.contact-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.contact-header h2 { font-size: 3rem; margin-bottom: 1rem; }
.contact-header p { color: var(--text-muted); font-size: 1.15rem; }

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.8rem;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s;
    font-family: var(--font-main);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select option {
    background-color: var(--bg-darker);
    color: var(--text-main);
    padding: 10px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--c-blue);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(35, 160, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background: #000;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    margin-bottom: 1rem;
    color: var(--text-main);
}

.footer-info p {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-partner {
    color: var(--text-muted);
}

.partner-logos {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.partner-logos span {
    background: var(--bg-dark);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--glass-border);
    font-weight: 600;
    font-size: 0.85rem;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}


/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media(max-width: 900px){
    .about-grid, .container-help {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 3rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-darker);
        flex-direction: column;
        justify-content: center;
        transition: left 0.3s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
