/* ==========================================================================
   DEVA TECHNOLOGIES - PREMIUM PURPLE GLASSMORPHISM STYLESHEET
   ========================================================================== */

/* --- CSS Variables --- */
:root {
    --primary: #6C3BFF;
    --secondary: #8B5CF6;
    --accent: #A855F7;
    --highlight: #22D3EE;
    --whatsapp-green: #25D366;
    --bg-white: #FFFFFF;
    --bg-light: #F5F3FF;
    --text-dark: #111827;
    --text-muted: #6B7280;

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(108, 59, 255, 0.12);
    --glass-blur: blur(16px);

    --font-family: 'Poppins', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 20px;
}

/* --- Reset & Base Styles --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    /* Handled by Lenis Smooth Scroll */
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Container & Utilities --- */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

.w-100 {
    width: 100%;
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(108, 59, 255, 0.1);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(108, 59, 255, 0.2);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* --- Glassmorphism Core Style --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius);
}

/* --- Interactive Mouse Glow --- */
.mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(34, 211, 238, 0) 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

/* --- Background Animated Blobs --- */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.6;
    animation: floatBlob 18s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 450px;
    height: 450px;
    background: var(--accent);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--highlight);
    top: 40%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(80px, 60px) scale(1.15);
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #FFF;
    box-shadow: 0 10px 25px rgba(108, 59, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(108, 59, 255, 0.5);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-dark);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: #FFF;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #FFF;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.875rem;
}

/* --- Navbar --- */

/* Isse browser ko pata hoga ki logo ke liye kitni jagah chhodni hai pehle se hi */
.navbar-brand img, .logo img {
    aspect-ratio: auto;
    content-visibility: auto;
}
.navbar-wrapper {
    position: fixed;
    top: 1.5rem;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 1.5rem;
}

.navbar {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
}






.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Navbar Services Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.dropdown-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    width: 240px;
    padding: 0.75rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    border-radius: 16px;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background: rgba(108, 59, 255, 0.1);
    color: var(--primary);
}

.dropdown-menu li a i {
    color: var(--primary);
    font-size: 1rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-nav {
    position: fixed;
    top: 5.5rem;
    right: 1.5rem;
    left: 1.5rem;
    padding: 2rem;
    z-index: 999;
    display: none;
    text-align: center;
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-nav.open {
    display: block;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mobile-links a {
    font-size: 1.1rem;
    font-weight: 600;
}

.mobile-dropdown-menu {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.75rem;
}

.mobile-dropdown-menu a {
    font-size: 0.95rem !important;
    color: var(--primary) !important;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    display: flex;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 8rem;
    text-align: center;
    position: relative;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(108, 59, 255, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.typing-text {
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--highlight));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.trust-avatars {
    display: flex;
}

.trust-avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #FFF;
    margin-left: -12px;
}

.trust-avatars img:first-child {
    margin-left: 0;
}

/* --- Marquee --- */
.marquee-section {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    padding: 1.2rem 0;
    overflow: hidden;
    color: #FFF;
}

.marquee-track {
    display: flex;
    width: 200%;
    animation: marquee 25s linear infinite;
}

.marquee-content {
    display: flex;
    justify-content: space-around;
    width: 100%;
    gap: 3rem;
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-card {
    padding: 1rem;
    position: relative;
}

.about-card img {
    border-radius: calc(var(--border-radius) - 5px);
    width: 100%;
}

.about-floating-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.9);
}

.about-floating-badge i {
    font-size: 2.2rem;
    color: var(--primary);
}

.about-floating-badge h4 {
    font-size: 1.2rem;
    font-weight: 700;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(108, 59, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
}

/* --- Stats --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
}

/* --- Course & Service Cards --- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.course-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.course-thumb {
    position: relative;
    height: 200px;
}

.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: #FFF;
    padding: 0.25rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.course-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.course-body h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.course-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.course-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

/* --- Why Choose Us & Facilities --- */
.why-grid,
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.why-card,
.facility-box {
    padding: 2.2rem 1.5rem;
    text-align: center;
}

.why-icon,
.facility-box i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.why-card h3,
.facility-box h4 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

/* --- Placement --- */
.placement-partners {
    padding: 3rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.partner-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.testimonial-card {
    padding: 2.25rem;
}

.stars {
    color: #F59E0B;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* --- Trainers & Gallery --- */
.trainers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.trainer-card {
    padding: 2rem;
    text-align: center;
}

.trainer-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 1.25rem auto;
    object-fit: cover;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* --- Admission Process --- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.step-card {
    padding: 2rem 1.5rem;
    position: relative;
    text-align: center;
}

.step-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(108, 59, 255, 0.2);
    margin-bottom: 0.5rem;
}

/* --- FAQ --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    padding: 1.5rem 2rem;
    cursor: pointer;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    margin-top: 1rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3.5rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.info-item i {
    font-size: 1.25rem;
    color: var(--primary);
    background: rgba(108, 59, 255, 0.1);
    padding: 0.85rem;
    border-radius: 50%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    font-family: var(--font-family);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 59, 255, 0.15);
}

/* --- Floating WhatsApp Redirect Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: rgba(17, 24, 39, 0.85);
    color: #FFF;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

/* --- Footer --- */
.footer {
    background: #0D0826;
    color: #9CA3AF;
    padding: 5rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    color: #FFF;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
}

.footer-links h4,
.footer-contact h4 {
    color: #FFF;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.875rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (FULLY MOBILE & TABLET OPTIMIZED)
   ========================================================================== */
@media (max-width: 1200px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.88rem;
    }
}

@media (max-width: 1024px) {

    .courses-grid,
    .why-grid,
    .facilities-grid,
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 991px) {

    .nav-links,
    .nav-actions .btn {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .testimonials-grid,
    .trainers-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        padding: 2rem 1.5rem;
    }

    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    
    
    .header, .navbar { 
        position: absolute !important; /* Ya fixed agar aap scroll ke sath upar rakhna chahte hain */
        top: 1rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important; /* Center align karne ke liye */
        width: calc(100% - 3rem) !important;
        z-index: 1000 !important;
        
        /* Browser ko layout freeze rakhne ke liye majboor karein */
        contain: layout; 
    }
    
    .hero { 
        min-height: auto !important; /* vh ki wajah se address bar layout hilata hai */
        height: auto !important;
        padding-top: 8rem !important; /* Taaki upar header ke liye space bachi rahe */
        padding-bottom: 4rem !important;
    }
    
    
    .courses-grid,
    .why-grid,
    .facilities-grid,
    .process-steps,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        /* ← Ye zaroori hai taaki dono buttons aapas mein chipke na */
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.8rem;
        /* ← 2rem se 1.8rem kiya taaki text screen se bahar na bhaage */
        line-height: 1.3;
        word-wrap: break-word;
        /* ← Safe side ke liye, agar koi bada word ho toh toot jaye */
    }
}
}