/* ============================================
   KHYATI'S NEON WEBSITE - STYLESHEET
   Theme: Neon Blue to Purple Gradient + Dark Mode
   ============================================ */

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Poppins:wght@300;400;600;700&display=swap');

/* CSS Variables */
:root {
    --neon-blue: #00d4ff;
    --neon-purple: #b829dd;
    --dark-bg: #0a0a0f;
    --darker-bg: #050508;
    --card-bg: rgba(20, 20, 35, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --gradient: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    --glow-blue: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue), 0 0 40px var(--neon-blue);
    --glow-purple: 0 0 10px var(--neon-purple), 0 0 20px var(--neon-purple), 0 0 40px var(--neon-purple);
    --glow-mixed: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-purple), 0 0 40px var(--neon-purple);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-blue);
    animation: float 15s infinite;
    opacity: 0.6;
}

.particle:nth-child(even) {
    background: var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple);
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    z-index: 1000;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--glow-mixed);
    text-decoration: none;
    position: relative;
    cursor: pointer;
}

/* SMoK Logo Tooltip */
.logo-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-hint {
    font-size: 0.6rem;
    color: var(--text-secondary);
    font-family: 'Poppins', sans-serif;
    opacity: 0.6;
    margin-top: 2px;
    font-weight: 400;
}

.logo-tooltip {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid var(--neon-blue);
    border-radius: 10px;
    padding: 12px 18px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    z-index: 1001;
}

.logo-container:hover .logo-tooltip,
.logo-container:focus .logo-tooltip,
.logo-container.active .logo-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.logo-tooltip span {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.logo-tooltip .highlight {
    color: var(--neon-blue);
    font-weight: 700;
    text-shadow: 0 0 10px var(--neon-blue);
}

.logo-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: rgba(10, 10, 20, 0.95);
    border-left: 1px solid var(--neon-blue);
    border-top: 1px solid var(--neon-blue);
    transform: rotate(45deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--neon-blue);
    text-shadow: var(--glow-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Study Zone Link - Special Styling */
.nav-links .study-link {
    background: rgba(255, 50, 50, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 100, 100, 0.5);
    color: #ff6666 !important;
}

.nav-links .study-link:hover {
    background: rgba(255, 50, 50, 0.4);
    color: #ff9999 !important;
    text-shadow: 0 0 10px rgba(255, 100, 100, 0.5);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    from {
        filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
    }
    to {
        filter: drop-shadow(0 0 40px rgba(184, 41, 221, 0.8));
    }
}

.hero .tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.typing-text {
    font-size: 1.3rem;
    color: var(--neon-blue);
    border-right: 3px solid var(--neon-purple);
    padding-right: 10px;
    animation: blink 0.7s infinite;
    min-height: 30px;
}

@keyframes blink {
    0%, 50% { border-color: var(--neon-purple); }
    51%, 100% { border-color: transparent; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 5px 30px rgba(0, 212, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-mixed);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-blue);
    border: 2px solid var(--neon-blue);
    margin-left: 20px;
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: var(--glow-blue);
    transform: translateY(-3px);
}

/* Section Styles */
.section {
    padding: 100px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(184, 41, 221, 0.5);
    box-shadow: 0 20px 60px rgba(184, 41, 221, 0.2);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--neon-blue);
}

.card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* About Page Styles */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 40px;
}

.about-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.hobby-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.hobby-item:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 5px 20px rgba(184, 41, 221, 0.2);
    transform: translateX(5px);
}

.hobby-item span {
    font-size: 1.5rem;
}

/* Profile Image Placeholder */
.profile-image {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: var(--gradient);
    padding: 5px;
    margin: 0 auto;
    animation: rotate-border 5s linear infinite;
}

.profile-image-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8rem;
}

@keyframes rotate-border {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Game Container Styles */
.game-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 60px;
    text-align: center;
}

.game-container h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
}

.game-board {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    margin-bottom: 30px;
}

.score-display {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--neon-blue);
    margin-bottom: 20px;
}

/* Quiz Game Styles */
.quiz-question {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    min-height: 80px;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.quiz-option {
    padding: 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--neon-blue);
    box-shadow: var(--glow-blue);
}

.quiz-option.correct {
    background: rgba(0, 255, 100, 0.3);
    border-color: #00ff64;
    box-shadow: 0 0 20px rgba(0, 255, 100, 0.5);
}

.quiz-option.wrong {
    background: rgba(255, 50, 50, 0.3);
    border-color: #ff3232;
    box-shadow: 0 0 20px rgba(255, 50, 50, 0.5);
}

.quiz-progress {
    margin-top: 20px;
    color: var(--text-secondary);
}

/* Tetris Styles */
#tetris-board {
    display: grid;
    grid-template-columns: repeat(10, 30px);
    grid-template-rows: repeat(20, 30px);
    gap: 1px;
    background: rgba(0, 0, 0, 0.5);
    border: 3px solid var(--neon-purple);
    border-radius: 10px;
    padding: 5px;
    margin: 0 auto 20px;
    box-shadow: var(--glow-purple);
}

.tetris-cell {
    width: 30px;
    height: 30px;
    background: rgba(20, 20, 35, 0.8);
    border-radius: 3px;
}

.tetris-cell.filled {
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3);
}

.tetris-cell.I { background: #00d4ff; box-shadow: 0 0 10px #00d4ff; }
.tetris-cell.O { background: #ffdd00; box-shadow: 0 0 10px #ffdd00; }
.tetris-cell.T { background: #b829dd; box-shadow: 0 0 10px #b829dd; }
.tetris-cell.S { background: #00ff64; box-shadow: 0 0 10px #00ff64; }
.tetris-cell.Z { background: #ff3232; box-shadow: 0 0 10px #ff3232; }
.tetris-cell.J { background: #0066ff; box-shadow: 0 0 10px #0066ff; }
.tetris-cell.L { background: #ff9900; box-shadow: 0 0 10px #ff9900; }

.tetris-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.tetris-controls button {
    padding: 15px 25px;
    font-size: 1.5rem;
    background: var(--card-bg);
    border: 2px solid var(--neon-blue);
    border-radius: 10px;
    color: var(--neon-blue);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tetris-controls button:hover {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: var(--glow-blue);
}

.tetris-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.tetris-info div {
    font-family: 'Orbitron', sans-serif;
}

/* Trivia Game Styles */
.trivia-category {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(184, 41, 221, 0.2);
    border: 1px solid var(--neon-purple);
    border-radius: 20px;
    color: var(--neon-purple);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.trivia-timer {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--neon-blue);
    margin-bottom: 20px;
}

.trivia-timer.warning {
    color: #ff9900;
    animation: pulse 0.5s infinite;
}

.trivia-timer.danger {
    color: #ff3232;
    animation: pulse 0.3s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Result Screen */
.result-screen {
    text-align: center;
    padding: 40px;
}

.result-screen h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.result-score {
    font-size: 4rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-blue);
    text-shadow: var(--glow-blue);
    margin-bottom: 20px;
}

.result-message {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--neon-blue);
    text-shadow: var(--glow-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.1rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hobbies-grid {
        grid-template-columns: 1fr;
    }

    .quiz-options {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 20px;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }

    #tetris-board {
        grid-template-columns: repeat(10, 25px);
        grid-template-rows: repeat(20, 25px);
    }

    .tetris-cell {
        width: 25px;
        height: 25px;
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-blue {
    text-shadow: var(--glow-blue);
}

.glow-purple {
    text-shadow: var(--glow-purple);
}

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
