/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #64ffda;
    --secondary: #00b4d8;
    --dark: #0a192f;
    --light: #ccd6f6;
    --gray: #8892b0;
    --gradient: linear-gradient(135deg, #64ffda 0%, #00b4d8 100%);
    --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    animation: float 3s ease-in-out infinite;
}

.logo-path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawLogo 2s ease-out forwards;
}

@keyframes drawLogo {
    to {
        stroke-dashoffset: 0;
    }
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.naya {
    color: var(--primary);
}

.qadam {
    color: var(--secondary);
}

/* Navigation - COMPACT VERSION */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0 !important; /* NO PADDING */
    z-index: 1000;
    background: rgba(10, 25, 47, 0.98);
    backdrop-filter: blur(10px);
    height: 55px !important; /* Fixed compact height */
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 55px; /* Same as navbar */
}

.nav-links {
    display: flex;
    gap: 15px;
    list-style: none;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    font-size: 0.9rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(100, 255, 218, 0.1);
}

.nav-btn {
    padding: 6px 15px !important;
    border-radius: 20px !important;
    font-weight: 600;
    font-size: 0.85rem !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    width: 30px;
    height: 21px;
    justify-content: center;
    align-items: center;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient);
    color: var(--dark);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.3);
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::after {
    left: 100%;
}

/* Hero Section - NO SPACE AFTER HEADER */
.hero {
    min-height: calc(100vh - 55px); /* Exact navbar height */
    display: flex;
    align-items: center;
    padding-top: 55px !important; /* Exact navbar height */
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
}

.hero .container {
    padding-top: 0 !important;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
    margin-top: 0;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    margin-top: 0 !important;
}

.hero-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Features Section */
.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    color: var(--gray);
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-card {
    background: rgba(100, 255, 218, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(100, 255, 218, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--dark);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--light);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.program-card {
    background: rgba(100, 255, 218, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 15px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(100, 255, 218, 0.1);
}

.program-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    background: var(--gradient);
    color: var(--dark);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.program-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.program-info {
    margin: 15px 0;
}

.program-info li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--gray);
    font-size: 0.9rem;
}

.program-price {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 15px 0;
}

/* Forms */
.form-container {
    min-height: calc(100vh - 55px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 50px;
    margin-top: 55px; /* Navbar height */
}

.form-box {
    background: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 15px;
    padding: 40px 30px;
    width: 100%;
    max-width: 500px;
    position: relative;
    overflow: hidden;
    animation: formAppear 0.8s ease-out;
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
}

.form-title h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(100, 255, 218, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 6px;
    color: var(--light);
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

.file-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    background: rgba(100, 255, 218, 0.1);
    border: 2px dashed var(--primary);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--light);
    justify-content: center;
    font-size: 0.9rem;
}

.file-label:hover {
    background: rgba(100, 255, 218, 0.2);
    border-color: var(--secondary);
}

/* Dashboard */
.dashboard {
    padding: 80px 0 40px;
    margin-top: 55px; /* Navbar height */
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 25px;
}

.dashboard-sidebar {
    background: rgba(100, 255, 218, 0.05);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.user-profile {
    text-align: center;
    margin-bottom: 25px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 2rem;
    color: var(--dark);
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    padding: 12px 15px;
    color: var(--light);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.nav-item:hover,
.nav-item.active {
    background: var(--gradient);
    color: var(--dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(100, 255, 218, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--dark);
    font-size: 1.3rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

/* Footer */
.footer {
    background: rgba(10, 25, 47, 0.95);
    padding: 60px 0 25px;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.footer-text {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-link {
    width: 35px;
    height: 35px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.social-link:hover {
    background: var(--gradient);
    color: var(--dark);
    transform: translateY(-3px);
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-menu a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--gray);
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 12px;
    background: rgba(100, 255, 218, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 5px;
    color: var(--light);
    font-size: 0.9rem;
}

.newsletter-form button {
    padding: 10px 15px;
    background: var(--gradient);
    border: none;
    border-radius: 5px;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.newsletter-form button:hover {
    transform: translateX(3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    color: var(--gray);
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.fe-1 {
    width: 250px;
    height: 250px;
    top: 10%;
    right: 5%;
    animation: float 20s infinite linear;
}

.fe-2 {
    width: 180px;
    height: 180px;
    bottom: 20%;
    left: 5%;
    animation: float 25s infinite linear reverse;
}

.fe-3 {
    width: 120px;
    height: 120px;
    top: 40%;
    left: 15%;
    animation: float 30s infinite linear;
}

.fe-4 {
    width: 80px;
    height: 80px;
    bottom: 10%;
    right: 20%;
    animation: float 15s infinite linear reverse;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 55px !important;
        left: 0;
        width: 100%;
        background: rgba(10, 25, 47, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .menu-toggle {
        display: flex !important;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid,
    .programs-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }
    
    /* Mobile navbar height */
    .navbar {
        height: 55px !important;
    }
    
    .hero {
        padding-top: 55px !important;
        min-height: calc(100vh - 55px) !important;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes formAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(180deg);
    }
}

/* Utility Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-stagger > * {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.fade-in-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.fade-in-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.fade-in-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.fade-in-stagger > *:nth-child(4) { animation-delay: 0.4s; }

.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-item.animated {
    opacity: 1;
    transform: translateY(0);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.03);
}

/* No Programs Message */
.no-programs {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
}

.no-programs i {
    font-size: 2.5rem;
    color: #64ffda;
    margin-bottom: 15px;
}

.no-programs h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.no-programs p {
    color: #8892b0;
    font-size: 0.95rem;
}

/* EXTRA SPACE REMOVAL FIXES */
/* Remove all extra spacing between header and content */
body > *:not(.navbar) {
    margin-top: 0 !important;
}

.hero:first-of-type {
    margin-top: 0 !important;
}

/* Ensure no extra padding in body */
html, body {
    overflow-x: hidden;
}

/* Fix for form pages */
.form-container {
    margin-top: 55px !important;
}

/* Fix for dashboard */
.dashboard {
    margin-top: 55px !important;
}

/* Remove any extra space from floating elements */
.floating-elements {
    margin: 0;
    padding: 0;
}

.particles-js-canvas-el {
    height: 100vh !important; /* پوری سکرین کی height */
    width: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1; /* اگر background میں ہو */
}

/* یا ہر صفحے کے لیے مختلف height */
.home-page .particles-js-canvas-el {
    height: 100vh !important;
}

.programs-page .particles-js-canvas-el {
    height: 50vh !important;
}

.features-page .particles-js-canvas-el {
    height: 70vh !important;
}