import os

base = r'd:\Gurudev international\Gurudev intenational'
path = os.path.join(base, 'css', 'interactive.css')

css_content = """/* ==========================================================================
   INTERACTIVE ELEMENTS CSS - PREMIUM & RESPONSIVE
   ========================================================================== */

/* GLOBAL ANIMATIONS */
@keyframes glowPulse {
  0% { box-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }
  50% { box-shadow: 0 0 25px rgba(59, 130, 246, 0.8); }
  100% { box-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.interactive-section { position: relative; overflow: hidden; }
.hidden { display: none !important; }

/* --------------------------------------------------------------------------
   1. SCIENCE VIRTUAL LAB BENCH
   -------------------------------------------------------------------------- */
.lab-bench-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-dark);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
}

.lab-screen {
  background: #0f172a;
  border-radius: 16px;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 2px solid #1e293b;
  margin-bottom: 30px;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
}

.lab-screen::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
  opacity: 0.3;
}

.lab-screen-content {
  text-align: center;
  color: white;
  animation: fadeIn 0.5s ease;
  z-index: 1;
}
.lab-screen-content h3 { font-size: 1.5rem; margin-bottom: 8px; color: var(--accent-light); }
.lab-screen-content p { color: #94a3b8; font-size: 0.95rem; }

.glow-icon { font-size: 4rem; color: #3b82f6; text-shadow: 0 0 20px rgba(59,130,246,0.6); margin-bottom: 20px; animation: float 3s ease-in-out infinite; }

/* Chemistry Bubbles */
.beaker { width: 80px; height: 100px; cursor: pointer; border: 4px solid #cbd5e1; border-top: none; border-radius: 0 0 20px 20px; position: relative; margin: 0 auto 30px; }
.beaker::before { content: ''; position: absolute; top: -10px; left: -10px; right: -10px; height: 4px; background: #cbd5e1; border-radius: 10px; }
.liquid { position: absolute; bottom: 0; left: 0; right: 0; height: 60%; background: #ef4444; border-radius: 0 0 16px 16px; animation: fillUp 1s ease-out, bubbleGlow 2s infinite alternate; box-shadow: 0 0 20px rgba(239, 68, 68, 0.6); }
@keyframes bubbleGlow { 0% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); } 100% { box-shadow: 0 0 30px rgba(239, 68, 68, 0.8); } }
@keyframes fillUp { from { height: 0; } to { height: 60%; } }

/* Physics Atom */
.atom { width: 120px; height: 120px; position: relative; margin: 0 auto 30px; }
.nucleus { width: 24px; height: 24px; background: #3b82f6; border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 20px #3b82f6; animation: pulse 2s infinite; }
.electron { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 2px solid rgba(59, 130, 246, 0.3); border-radius: 50%; }
.electron::before { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; background: #60a5fa; border-radius: 50%; box-shadow: 0 0 10px #60a5fa; }
.orbit1 { animation: spin 3s linear infinite; }
.orbit2 { transform: rotate(60deg); animation: spin2 4s linear infinite; }
.orbit3 { transform: rotate(120deg); animation: spin3 3.5s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spin2 { 100% { transform: rotate(420deg); } }
@keyframes spin3 { 100% { transform: rotate(480deg); } }

/* Bench Controls */
.lab-bench-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lab-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.lab-btn i { font-size: 1.4rem; }
.lab-btn:hover, .lab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(11, 61, 145, 0.4);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .lab-bench-controls { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .lab-btn { padding: 10px 5px; font-size: 0.8rem; flex-direction: column; gap: 4px; }
  .lab-btn i { font-size: 1.2rem; }
  .lab-screen { min-height: 280px; }
}


/* --------------------------------------------------------------------------
   2. ROBOTICS TERMINAL & ROBOT
   -------------------------------------------------------------------------- */
.robot-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  background: #111827;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid #374151;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Terminal Side */
.robot-terminal-panel { background: #000; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid #1f2937; }
.terminal-header { background: #1f2937; padding: 12px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #374151; }
.terminal-header .dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-header .dot.red { background: #ef4444; }
.terminal-header .dot.yellow { background: #f59e0b; }
.terminal-header .dot.green { background: #10b981; }
.terminal-title { margin-left: auto; color: #9ca3af; font-size: 0.85rem; font-family: monospace; }
.terminal-body { padding: 20px; font-family: monospace; flex: 1; color: #a3e635; font-size: 0.95rem; line-height: 1.6; }
.terminal-line { margin-bottom: 6px; }
.terminal-line .prompt { color: #3b82f6; font-weight: bold; margin-right: 8px; }
.terminal-line.sys { color: #9ca3af; font-style: italic; }
.typing-text::after { content: '█'; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.terminal-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; background: #111827; border-top: 1px solid #1f2937; }
.cmd-btn {
  background: #1f2937; color: white; border: 1px solid #374151; padding: 12px; border-radius: 8px;
  font-family: monospace; font-size: 0.9rem; cursor: pointer; transition: 0.2s;
}
.cmd-btn:hover { background: #3b82f6; border-color: #3b82f6; box-shadow: 0 0 15px rgba(59,130,246,0.4); }

/* Robot Side */
.robot-display-panel {
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid #374151;
  min-height: 350px;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}
.css-robot { position: relative; width: 120px; height: 160px; transition: 0.5s ease; }
.bot-head { width: 80px; height: 60px; background: #e2e8f0; border-radius: 12px 12px 4px 4px; margin: 0 auto; position: relative; border-bottom: 4px solid #94a3b8; transition: 0.3s; }
.bot-eye { width: 16px; height: 16px; background: #0f172a; border-radius: 50%; position: absolute; top: 20px; box-shadow: inset 0 0 5px #3b82f6; transition: 0.3s; }
.bot-eye.left { left: 16px; }
.bot-eye.right { right: 16px; }
.bot-body { width: 100px; height: 80px; background: #cbd5e1; border-radius: 8px; margin: 4px auto 0; position: relative; }
.bot-screen { width: 60px; height: 40px; background: #0f172a; position: absolute; top: 12px; left: 20px; border-radius: 4px; overflow: hidden; display: flex; align-items: center; }
.heartbeat-line { width: 100%; height: 2px; background: #10b981; box-shadow: 0 0 5px #10b981; width: 0%; transition: width 0.3s; }
.bot-arm { width: 24px; height: 60px; background: #94a3b8; position: absolute; top: 70px; border-radius: 12px; transition: transform 0.4s ease; transform-origin: top center; }
.bot-arm.left { left: -10px; }
.bot-arm.right { right: -10px; }
.bot-wheels { display: flex; justify-content: space-between; width: 110px; position: absolute; bottom: -10px; left: 5px; }
.wheel { width: 30px; height: 30px; background: #334155; border-radius: 50%; border: 4px solid #0f172a; transition: 0.5s linear; }

/* Robot Animation States */
.css-robot.booting .bot-eye { background: #3b82f6; box-shadow: 0 0 15px #3b82f6; }
.css-robot.booting .heartbeat-line { width: 100%; animation: pulse 1s infinite; }
.css-robot.moving .wheel { transform: rotate(360deg); }
.css-robot.moving .bot-arm.left { transform: rotate(30deg); }
.css-robot.moving .bot-arm.right { transform: rotate(-30deg); }
.css-robot.moving { transform: translateX(20px); }
.css-robot.scanning .bot-head { transform: rotate(-15deg); }
.css-robot.scanning .bot-eye { background: #ef4444; box-shadow: 0 0 15px #ef4444; }

@media (max-width: 992px) {
  .robot-workspace { grid-template-columns: 1fr; }
  .robot-display-panel { min-height: 250px; }
}


/* --------------------------------------------------------------------------
   3. LIBRARY 3D BOOKSHELF
   -------------------------------------------------------------------------- */
.bookshelf-container { perspective: 1000px; padding: 40px 20px 80px; max-width: 1000px; margin: 0 auto; position: relative; }
.bookshelf { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; z-index: 2; position: relative; }
.book-container { width: 160px; height: 240px; perspective: 1000px; cursor: pointer; }
.book { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); transform-origin: left center; }

/* Hover effect */
.book-container:hover .book { transform: translateZ(30px) rotateY(-20deg); box-shadow: 20px 20px 30px rgba(0,0,0,0.3); }
/* Click to flip */
.book-container.flipped .book { transform: translateX(50px) rotateY(-180deg) scale(1.1); z-index: 10; }

.book-front, .book-back {
  position: absolute; width: 100%; height: 100%; border-radius: 4px 12px 12px 4px;
  backface-visibility: hidden; padding: 20px; display: flex; flex-direction: column;
  box-shadow: inset 4px 0 10px rgba(0,0,0,0.1), 5px 5px 15px rgba(0,0,0,0.2);
}
.book-front { z-index: 2; color: white; justify-content: flex-start; }
.book-front::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 3px; background: rgba(255,255,255,0.2); }
.book-title { font-family: var(--font-primary); font-weight: 800; font-size: 1.3rem; line-height: 1.1; margin-bottom: 12px; }
.book-author { font-size: 0.85rem; font-weight: 500; opacity: 0.8; margin-top: auto; }

.book-back {
  background: #f8fafc; color: #1e293b;
  transform: rotateY(180deg);
  border: 1px solid #e2e8f0;
  text-align: center;
  justify-content: center;
}
.book-back p { font-size: 0.85rem; line-height: 1.5; margin-bottom: 16px; }
.book-btn { background: var(--primary); color: white; border: none; padding: 8px 16px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.book-btn:hover { background: var(--secondary); }

.shelf-board {
  position: absolute; bottom: 40px; left: 5%; right: 5%; height: 20px;
  background: linear-gradient(to bottom, #8b5a2b, #5c3a21);
  border-radius: 4px; box-shadow: 0 10px 20px rgba(0,0,0,0.4); z-index: 1;
}
.shelf-board::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: rgba(255,255,255,0.2); }

@media (max-width: 768px) {
  .bookshelf { gap: 20px; }
  .book-container { width: 130px; height: 195px; }
  .book-title { font-size: 1.1rem; }
  .book-container.flipped .book { transform: translateX(20px) rotateY(-180deg) scale(1.05); }
}


/* --------------------------------------------------------------------------
   4. SPORTS INTERACTIVE MAP
   -------------------------------------------------------------------------- */
.sports-map-container { display: grid; grid-template-columns: 3fr 2fr; gap: 30px; background: white; border-radius: 20px; padding: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.05); }

/* Map Visual */
.sports-map-visual {
  background: #dcfce7;
  border-radius: 16px;
  position: relative;
  min-height: 400px;
  border: 2px solid #bbf7d0;
  overflow: hidden;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(0,0,0,0.03) 40px, rgba(0,0,0,0.03) 42px), repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(0,0,0,0.03) 40px, rgba(0,0,0,0.03) 42px);
}

.map-field {
  position: absolute;
  background: rgba(34, 197, 94, 0.2);
  border: 2px dashed #22c55e;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.map-field:hover, .map-field.active { background: rgba(34, 197, 94, 0.4); border-style: solid; transform: scale(1.02); }

.cricket-field { top: 10%; left: 10%; width: 45%; height: 45%; border-radius: 50%; }
.football-field { top: 10%; right: 10%; width: 30%; height: 50%; }
.basketball-court { bottom: 15%; left: 15%; width: 25%; height: 25%; }
.athletics-track { bottom: 10%; right: 10%; width: 50%; height: 30%; border-radius: 40px; }

.map-pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: #ef4444; font-size: 2rem; text-shadow: 0 4px 8px rgba(0,0,0,0.3);
  animation: bounce 2s infinite; pointer-events: none;
}
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translate(-50%, -50%); } 40% { transform: translate(-50%, -65%); } 60% { transform: translate(-50%, -55%); } }
.map-label { position: absolute; bottom: -25px; left: 50%; transform: translateX(-50%); font-weight: 700; font-size: 0.85rem; color: #166534; white-space: nowrap; pointer-events: none; }

/* Info Panel */
.sports-info-panel { background: #f8fafc; border-radius: 16px; padding: 24px; border: 1px solid #e2e8f0; }
.sports-info-card { animation: fadeIn 0.4s ease; text-align: center; }
.sports-info-image { width: 100%; height: 180px; border-radius: 12px; background-size: cover; background-position: center; margin-bottom: 20px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.sports-info-card h3 { font-size: 1.5rem; color: var(--text-dark); margin-bottom: 16px; }
.sports-features-list { list-style: none; padding: 0; text-align: left; }
.sports-features-list li { margin-bottom: 12px; font-size: 0.95rem; color: var(--text-secondary); display: flex; align-items: flex-start; gap: 10px; }
.sports-features-list li i { color: #10b981; margin-top: 4px; }

@media (max-width: 992px) {
  .sports-map-container { grid-template-columns: 1fr; }
  .sports-map-visual { min-height: 250px; aspect-ratio: 4/3; }
  .map-label { font-size: 0.65rem; bottom: -15px; background: rgba(255,255,255,0.8); padding: 2px 4px; border-radius: 4px; }
  .map-pin { font-size: 1.8rem; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
}
"""

with open(path, 'w', encoding='utf-8') as f:
    f.write(css_content)

print("Created interactive.css")
