/* gdg.css */
/* ye file jo hai ye major hamne khud code ki thoda part chat gpt bhi hai - nahi rehte css ki property yaad :( - aur its ok sach khe toh*/ 
/* esko explain nahi kiya hai krna ho toh genral pe ya personal pe message dal dena */
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            overflow-x: hidden;
            padding-top: 100px;
        }

        .stars {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
        }

        .star {
            position: absolute;
            width: 2px;
            height: 2px;
            background: white;
            border-radius: 50%;
            animation: twinkle 3s infinite;
        }

        @keyframes twinkle {
            0%, 100% { opacity: 0.3; }
            50% { opacity: 1; }
        }

        .container {
            position: relative;
            z-index: 1;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        header {
            text-align: center;
            padding: 60px 20px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            margin-bottom: 40px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        h1 {
            font-size: 3.5em;
            margin-bottom: 20px;
            background: linear-gradient(45deg, #fff, #f0f0f0);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: glow 2s ease-in-out infinite;
        }

        @keyframes glow {
            0%, 100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
            50% { text-shadow: 0 0 40px rgba(255, 255, 255, 0.8); }
        }

        .subtitle {
            font-size: 1.3em;
            opacity: 0.9;
            margin-bottom: 30px;
        }

        .live-demo {
            background: rgba(255, 255, 255, 0.15);
            padding: 30px;
            border-radius: 15px;
            margin: 20px 0;
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        .demo-title {
            font-size: 1.8em;
            margin-bottom: 20px;
            color: #ffd700;
        }

        .code-display {
            background: rgba(0, 0, 0, 0.5);
            padding: 20px;
            border-radius: 10px;
            font-family: 'Courier New', monospace;
            margin: 15px 0;
            border-left: 4px solid #ffd700;
            font-size: 0.95em;
        }

        .topic-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin: 40px 0;
        }

        .topic-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            padding: 25px;
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .topic-card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transform: rotate(45deg);
            transition: all 0.5s;
        }

        .topic-card:hover::before {
            left: 100%;
        }

        .topic-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
            border-color: #ffd700;
        }

        .topic-icon {
            font-size: 2.5em;
            margin-bottom: 15px;
        }

        .topic-title {
            font-size: 1.3em;
            margin-bottom: 10px;
            color: #ffd700;
        }

        .topic-list {
            list-style: none;
            line-height: 1.8;
            font-size: 0.9em;
        }

        .topic-list li::before {
            content: '▹ ';
            color: #ffd700;
            font-weight: bold;
        }

        .interactive-section {
            background: rgba(255, 255, 255, 0.15);
            padding: 40px;
            border-radius: 20px;
            margin: 40px 0;
            text-align: center;
        }

        .btn {
            background: linear-gradient(45deg, #ffd700, #ffed4e);
            color: #333;
            border: none;
            padding: 15px 40px;
            font-size: 1.1em;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: bold;
            box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
            margin: 10px;
        }

        .btn:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
        }

        .output-box {
            background: rgba(0, 0, 0, 0.5);
            padding: 20px;
            border-radius: 10px;
            margin-top: 20px;
            min-height: 60px;
            border: 2px solid #ffd700;
            font-size: 1.1em;
        }

        .counter-display {
            font-size: 4em;
            font-weight: bold;
            margin: 20px 0;
            color: #ffd700;
            text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
        }

        .feature-showcase {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            margin: 40px 0;
        }

        .feature {
            flex: 1;
            min-width: 250px;
            margin: 15px;
            padding: 30px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            text-align: center;
            transition: all 0.3s;
        }

        .feature:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.05);
        }

        .feature-icon {
            font-size: 3em;
            margin-bottom: 15px;
        }

        footer {
            text-align: center;
            padding: 40px;
            margin-top: 60px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 20px;
        }

        .typing-effect {
            display: inline-block;
            border-right: 2px solid #ffd700;
            animation: blink 0.7s infinite;
        }

        @keyframes blink {
            0%, 50% { border-color: #ffd700; }
            51%, 100% { border-color: transparent; }
        }

        @media (max-width: 768px) {
            h1 { font-size: 2.5em; }
            .topic-grid { grid-template-columns: 1fr; }
        }

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(118, 75, 162, 0.25); 
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 15px 0;
    border-bottom: 2px solid rgba(255, 215, 0, 0.4); 
    box-shadow: 0 8px 25px rgba(118, 75, 162, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar:hover {
    background: rgba(118, 75, 162, 0.35);
    border-bottom-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 8px 35px rgba(118, 75, 162, 0.6);
}

/* Navbar container */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo section */
.nav-logo {
    flex-shrink: 0;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
}

.logo-img:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.5));
}

/* Title section */
.nav-title {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-title h2 {
    font-size: 1.6em;
    font-weight: 600;
    margin: 0;
    color: #fff;
    letter-spacing: 0.5px;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.nav-subtitle {
    font-size: 1em;
    color: #ffd700;
    margin: 0;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* Glowing underline on hover */
.nav-title h2::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffd700, #ffea70);
    transition: width 0.4s ease;
    margin-top: 3px;
}

.nav-title h2:hover::after {
    width: 100%;
}

body {
    padding-top: 100px;
}


@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
        backdrop-filter: blur(18px) saturate(180%);
    }

    .nav-container {
        padding: 0 20px;
        gap: 15px;
    }

    .logo-img {
        height: 45px;
    }

    .nav-title h2 {
        font-size: 1.2em;
    }

    .nav-subtitle {
        font-size: 0.9em;
    }

    body {
        padding-top: 80px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }

    .nav-title h2 {
        font-size: 1em;
    }

    .nav-subtitle {
        font-size: 0.8em;
    }
}
