/*==============================
    GOOGLE FONTS
==============================*/
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Roboto:wght@300;400;500;700&display=swap');

/*==============================
    ROOT VARIABLES - FUTURISTIC PHYSICS THEME
==============================*/

:root{

    --bg:#0a0f1e;
    --bg-dark:#050816;
    --card:rgba(255,255,255,.06);
    --glass:rgba(255,255,255,.04);
    --glass-border:rgba(0,229,255,0.15);

    --primary:#00E5FF;
    --primary-dark:#00b8d4;
    --secondary:#7B61FF;
    --secondary-dark:#5a4bd9;
    --accent:#00FFA3;
    --accent-dark:#00cc82;
    --purple:#9d4edd;
    --purple-dark:#7c3aed;

    --text:#ffffff;
    --text-muted:#b9bfd6;
    --gray:#8892b0;

    --gradient-1:linear-gradient(135deg, #00E5FF 0%, #7B61FF 50%, #00FFA3 100%);
    --gradient-2:linear-gradient(135deg, rgba(0,229,255,0.15), transparent 45%);
    --gradient-3:radial-gradient(circle at top left,rgba(0,229,255,0.15),transparent 45%);
    --gradient-glow:linear-gradient(135deg, rgba(0,229,255,0.3), rgba(123,97,255,0.2));

    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;

    --glow-primary:0 0 20px rgba(0,229,255,0.4);
    --glow-secondary:0 0 20px rgba(123,97,255,0.4);
    --glow-accent:0 0 20px rgba(0,255,163,0.4);

}

/*==============================
    RESET
==============================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
}

body{

    position: relative;
    font-family:'Roboto',sans-serif;

    background:var(--bg-dark);

    background-image: 
        radial-gradient(ellipse at top, rgba(0,229,255,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(123,97,255,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(0,255,163,0.05) 0%, transparent 50%);

    color:var(--text);

    overflow-x:hidden;

    min-width: 320px;

    margin: 0;

    padding: 0;

}

img, svg, canvas, video {
    max-width: 100%;
    height: auto;
    display: block;
}

.graph-panel,
.dashboard-panel {
    width: min(100%, 900px);
    margin: 0 auto;
    overflow: hidden;
}

.graph-panel canvas,
.graph-panel svg,
canvas {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    max-height: 420px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(6,12,30,.95), rgba(10,20,35,.9));
    border: 1px solid rgba(0,229,255,.2);
    box-shadow: inset 0 0 15px rgba(0,229,255,.06);
}

.app-layout,
header,
.main-content,
.hero,
.stats,
.experiments,
section,
.lab-container,
.dashboard-panel,
.simulation-box,
.graph-panel,
.obs-panel,
.exp-card {
    position: relative;
    z-index: 1;
}

/*==============================
    APP LAYOUT
==============================*/

.app-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
    width: 100%;
}

.app-layout.sidebar-collapsed {
    grid-template-columns: var(--sidebar-collapsed-width) 1fr;
}

/*==============================
    DORAEMON LOADER
==============================*/

#loader-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at center, rgba(15, 34, 56, 0.9), rgba(5, 8, 22, 0.98) 55%),
        linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(123, 97, 255, 0.1), rgba(0, 255, 163, 0.08));
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 18px;
    transition: opacity 0.45s ease, visibility 0.45s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-shell {
    position: relative;
    width: min(42vw, 320px);
    height: min(42vw, 320px);
    min-width: 180px;
    min-height: 180px;
    display: grid;
    place-items: center;
}

.loader-orbit-ring {
    position: absolute;
    inset: 8% 8% 8% 8%;
    border-radius: 50%;
    border: 2px solid rgba(0, 229, 255, 0.32);
    box-shadow: inset 0 0 18px rgba(0, 229, 255, 0.25), 0 0 26px rgba(123, 97, 255, 0.12);
    animation: loaderOrbit 8s linear infinite;
}

.loader-orbit-ring::before,
.loader-orbit-ring::after {
    content: "";
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    border: 1px solid rgba(123, 97, 255, 0.22);
}

.loader-orbit-ring::after {
    inset: 24%;
    border-color: rgba(0, 255, 163, 0.2);
}

.loader-image-wrap {
    position: relative;
    z-index: 2;
    width: 64%;
    max-width: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: doraemonFloat 2.6s ease-in-out infinite;
}

.loader-doraemon {
    display: block;
    width: 100%;
    height: auto;
    max-width: 220px;
    object-fit: contain;
    border-radius: 28px;
    filter: drop-shadow(0 18px 34px rgba(0, 229, 255, 0.25));
    user-select: none;
    -webkit-user-drag: none;
}

.loader-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,1), rgba(0,229,255,0.8));
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.7);
    opacity: 0.8;
    animation: loaderParticle 3.8s linear infinite;
}

.loader-particle-1 { top: 18%; left: 18%; animation-delay: 0s; }
.loader-particle-2 { top: 18%; right: 18%; animation-delay: 0.5s; }
.loader-particle-3 { bottom: 22%; left: 14%; animation-delay: 1s; }
.loader-particle-4 { bottom: 18%; right: 16%; animation-delay: 1.6s; }
.loader-particle-5 { left: 50%; top: 7%; animation-delay: 2s; }
.loader-particle-6 { right: 50%; bottom: 8%; animation-delay: 2.5s; }

.loader-text {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.15rem, 3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #eafcff;
    text-align: center;
    text-shadow: 0 0 16px rgba(0, 229, 255, 0.5), 0 0 36px rgba(123, 97, 255, 0.25);
    animation: loaderTextPulse 2.2s ease-in-out infinite;
}

.loader-progress {
    position: relative;
    width: min(52vw, 240px);
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.25);
}

.loader-progress span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(0, 229, 255, 1), rgba(123, 97, 255, 1), rgba(0, 255, 163, 1));
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.7);
    animation: loaderProgress 1.8s ease-in-out infinite alternate;
}

.loader-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: -4px;
}

.loader-dots span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.8);
    animation: loaderDots 1.4s ease-in-out infinite;
}

.loader-dots span:nth-child(2) { animation-delay: 0.15s; }
.loader-dots span:nth-child(3) { animation-delay: 0.3s; }
.loader-dots span:nth-child(4) { animation-delay: 0.45s; }
.loader-dots span:nth-child(5) { animation-delay: 0.6s; }

@keyframes loaderOrbit {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.03); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes doraemonFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.02); }
}

@keyframes loaderParticle {
    0% { transform: translate(0, 0) scale(0.7); opacity: 0; }
    20% { opacity: 1; }
    50% { transform: translate(18px, -22px) scale(1); opacity: 1; }
    100% { transform: translate(34px, -44px) scale(0.7); opacity: 0; }
}

@keyframes loaderTextPulse {
    0%, 100% { opacity: 0.8; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-2px); }
}

@keyframes loaderProgress {
    0% { transform: translateX(-20%) scaleX(0.85); }
    100% { transform: translateX(125%) scaleX(1); }
}

@keyframes loaderDots {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-6px); opacity: 1; }
}

/*==============================
    ENHANCED PHYSICS BACKGROUND
==============================*/

.background{
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 229, 255, 0.15), transparent 18%),
        radial-gradient(circle at 80% 25%, rgba(123, 97, 255, 0.18), transparent 22%),
        radial-gradient(circle at 50% 80%, rgba(0, 255, 163, 0.12), transparent 20%),
        linear-gradient(180deg, #040b16 0%, #07111d 35%, #050b17 100%);
}

.background::before,
.background::after {
    content: "";
    position: absolute;
    inset: -18% -10%;
    border-radius: 50%;
    opacity: 0.75;
}

.background::before {
    background:
        radial-gradient(circle at center, transparent 0 48%, rgba(0, 229, 255, 0.11) 49%, transparent 52%),
        radial-gradient(circle at center, transparent 0 60%, rgba(123, 97, 255, 0.08) 61%, transparent 64%),
        repeating-radial-gradient(circle at center, rgba(255,255,255,0.05) 0 1px, transparent 1px 22px);
    transform: scale(1.1);
    animation: physicsOrbit 28s linear infinite;
}

.background::after {
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0 25%, rgba(0, 229, 255, 0.12) 25.5%, transparent 26%, transparent 48%, rgba(123, 97, 255, 0.13) 48.5%, transparent 49%, transparent 72%, rgba(0, 255, 163, 0.1) 72.5%, transparent 73%),
        linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
    animation: waveDrift 16s ease-in-out infinite alternate;
}

.gradient,
.stars,
.particles {
    display: none;
}

@keyframes physicsOrbit {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.08); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes waveDrift {
    0% { transform: translate3d(-2%, 0, 0) scale(1); opacity: 0.55; }
    50% { transform: translate3d(2%, -2%, 0) scale(1.04); opacity: 0.9; }
    100% { transform: translate3d(-1%, 2%, 0) scale(1.08); opacity: 0.7; }
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(18deg); }
}

@media (prefers-reduced-motion: reduce) {
    .background::before,
    .background::after {
        animation: none;
    }
}

/*==============================
    MAIN CONTENT
==============================*/

.main-content {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/*==============================
    HEADER
==============================*/

header{

    width:var(--sidebar-width);

    height:100vh;

    position:sticky;

    top:0;

    display:flex;

    flex-direction:column;

    align-items:flex-start;

    justify-content:flex-start;

    gap:20px;

    padding:24px 16px 20px;

    backdrop-filter:blur(25px);
    -webkit-backdrop-filter:blur(25px);

    background:linear-gradient(180deg, rgba(7,12,28,0.98), rgba(5,8,22,0.95));

    border-right:1px solid var(--glass-border);

    box-shadow:12px 0 40px rgba(0,0,0,0.4), inset 0 0 60px rgba(0,229,255,0.02);

    z-index:999;

    transition:width 0.3s ease, padding 0.3s ease;

    overflow-y: auto;

}

header.sidebar-collapsed{

    width:var(--sidebar-collapsed-width);

    padding:20px 8px;

}

.app-layout.sidebar-collapsed header {

    width: 80px;

    padding: 20px 8px;

}

.logo{

    font-size:22px;

    font-weight:700;

    color:var(--primary);

    display:flex;

    align-items:center;

    gap:12px;

    padding:12px 16px;

    font-family:'Orbitron',sans-serif;

    background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(123,97,255,0.1));

    border-radius:15px;

    border: 1px solid rgba(0,229,255,0.3);

    transition: all 0.3s ease;

    box-shadow: 0 4px 15px rgba(0,229,255,0.15);

}

.logo:hover {

    background: linear-gradient(135deg, rgba(0,229,255,0.25), rgba(123,97,255,0.2));

    box-shadow: 0 0 25px rgba(0,229,255,0.4), 0 0 50px rgba(0,229,255,0.2);

    border-color: rgba(0,229,255,0.5);

    transform: translateY(-2px);

}

.logo i{

    font-size:20px;

}

.logo-text{

    white-space:nowrap;

    font-weight: 600;

}

header.sidebar-collapsed .logo-text{

    display:none;

}

header.sidebar-collapsed .logo{

    justify-content:center;

    width:100%;

    padding:10px 0;

}

nav{

    width:100%;

    display:flex;

    flex-direction:column;

    gap:8px;

    margin-top:15px;

    max-height: calc(100vh - 200px);

    overflow-y: auto;

    padding-right: 5px;

}

/* Custom scrollbar for nav */
nav::-webkit-scrollbar {

    width: 4px;

}

nav::-webkit-scrollbar-track {

    background: rgba(255,255,255,0.05);

}

nav::-webkit-scrollbar-thumb {

    background: var(--primary);

    border-radius: 2px;

}

nav a{

    display:flex;

    align-items:center;

    gap:12px;

    padding:12px 14px;

    border-radius:12px;

    color:white;

    text-decoration:none;

    transition:all .3s ease;

    font-size:14px;

    font-weight:500;

    background:transparent;

    border:1px solid transparent;

    position: relative;

    overflow: hidden;

}

nav a::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    width: 0;

    height: 100%;

    background: linear-gradient(90deg, transparent, rgba(0,229,255,0.3), transparent);

    transition: width 0.3s ease;

}

.nav-icon{

    width:20px;

    text-align:center;

    flex-shrink:0;

    font-size: 16px;

}

.nav-label{

    white-space:nowrap;

    font-weight: 500;

}

header.sidebar-collapsed nav a{

    justify-content:center;

    padding:12px 8px;

}

header.sidebar-collapsed .nav-label{

    display:none;

}

nav a:hover::before,
nav a.active::before {

    width: 100%;

}

nav a:hover,
nav a.active{

    background:linear-gradient(135deg, rgba(0,229,255,.2), rgba(123,97,255,.15));

    color:var(--primary);

    border-color:rgba(0,229,255,.4);

    box-shadow:0 4px 20px rgba(0,229,255,.25), inset 0 0 0 1px rgba(0,229,255,.15);

    transform:translateX(5px);

}

.experiment-nav {
    position: fixed;
    right: 24px;
    bottom: 22px;
    z-index: 1500;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(9, 16, 30, 0.82);
    border: 1px solid rgba(0, 229, 255, 0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38), 0 0 30px rgba(0, 229, 255, 0.12);
}

.experiment-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #eafcff;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.25s ease;
    font-weight: 600;
    font-size: 0.82rem;
}

.experiment-nav-btn:hover {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(123, 97, 255, 0.18));
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow: 0 8px 18px rgba(0, 229, 255, 0.2);
    transform: translateY(-1px);
}

.experiment-nav-current {
    min-width: 110px;
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.light-theme .experiment-nav {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(0, 229, 255, 0.22);
    box-shadow: 0 18px 40px rgba(54, 87, 156, 0.18);
}

body.light-theme .experiment-nav-btn {
    color: #0f172a;
    background: rgba(10, 18, 38, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
}

@media (max-width: 768px) {
    .experiment-nav {
        left: 12px;
        right: 12px;
        bottom: 14px;
        justify-content: space-between;
        padding: 8px 10px;
    }

    .experiment-nav-current {
        min-width: 0;
        font-size: 0.62rem;
    }

    .experiment-nav-btn {
        padding: 9px 10px;
        font-size: 0.72rem;
    }
}

/*==============================
    SIDEBAR SEARCH
==============================*/

.sidebar-search {
    margin-bottom: 15px;
    padding: 0 4px;
}

.sidebar-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.sidebar-search-box i {
    position: absolute;
    left: 12px;
    color: var(--gray);
    font-size: 14px;
    pointer-events: none;
}

.sidebar-search-box input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: var(--text);
    font-size: 13px;
    transition: all 0.3s ease;
}

.sidebar-search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,229,255,0.2);
}

.sidebar-search-box input::placeholder {
    color: var(--gray);
}

/*==============================
    NAVIGATION SECTIONS
==============================*/

.nav-section {
    margin-bottom: 8px;
}

.nav-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.nav-section-header:hover {
    background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(123,97,255,0.1));
    border-color: rgba(0,229,255,0.3);
    box-shadow: 0 4px 15px rgba(0,229,255,0.15);
}

.nav-section-icon {
    font-size: 16px;
}

.nav-section-title {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-section-arrow {
    font-size: 12px;
    color: var(--gray);
    transition: transform 0.3s ease;
}

.nav-section-arrow.rotated {
    transform: rotate(180deg);
}

.nav-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    padding-left: 8px;
}

.nav-section-content.expanded {
    max-height: 500px;
    opacity: 1;
    padding-top: 8px;
}

.nav-section-content a {
    margin-bottom: 4px;
}

/* Collapsed sidebar styles for sections */
header.sidebar-collapsed .sidebar-search,
header.sidebar-collapsed .nav-section {
    display: none;
}

.sidebar-toggle,
.theme-btn{

    width:44px;
    height:44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.sidebar-toggle:hover,
.theme-btn:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

.sidebar-toggle:hover,
.theme-btn:hover{
    transform: scale(1.05);
}

body.light-theme{

    --bg:#f0f4f8;
    --card:rgba(255,255,255,.8);
    --glass:rgba(255,255,255,.6);
    --primary:#0066cc;
    --secondary:#6b46b8;
    --accent:#10b981;
    --text:#1e293b;
    --gray:#475569;

    background:var(--bg);

    color:var(--text);

}

body.light-theme header{

    background:rgba(255,255,255,.85);

    border-right:1px solid rgba(0,0,0,.08);

    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.1);

}

body.light-theme nav a{

    color:var(--text);

}

body.light-theme .logo {

    background: linear-gradient(135deg, rgba(0,102,204,0.1), rgba(107,70,184,0.1));

    border-color: rgba(0,102,204,0.2);

}

.top{
    display:flex;
    align-items:center;
}
.menu{
    margin-left:50vw;
}

/*==============================
    SEARCH AND FILTER
==============================*/

.search-filter-container {
    margin-bottom: 30px;
    padding: 0 6%;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 16px;
}

.search-box input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    color: var(--text);
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,229,255,.2);
}

.search-box input::placeholder {
    color: var(--gray);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 25px;
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(0,229,255,.15);
    border-color: rgba(0,229,255,.4);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,229,255,0.2);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    border-color: var(--primary);
    font-weight: 600;
    box-shadow: 0 0 20px rgba(0,229,255,0.4);
}

/*==============================
    HERO
==============================*/

.hero{

    min-height:100vh;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:120px 6% 80px;

    gap:60px;

}

.hero-left{

    flex:1;

}

.tag{

    display:inline-block;

    background:linear-gradient(135deg, rgba(0,229,255,0.25), rgba(123,97,255,0.2));

    color:var(--primary);

    padding:10px 20px;

    border-radius:30px;

    margin-bottom:25px;

    font-weight: 600;

    border: 1px solid rgba(0,229,255,0.4);

    animation: slideIn 0.8s ease-out;

    box-shadow: 0 4px 15px rgba(0,229,255,0.2);

}

@keyframes slideIn {

    from {

        opacity: 0;

        transform: translateX(-30px);

    }

    to{

        opacity: 1;

        transform: translateX(0);

    }

}

.hero h1{

    font-size:clamp(40px, 6vw, 65px);

    line-height:1.1;

    margin-bottom:25px;

    font-family:'Orbitron',sans-serif;

    animation: fadeInUp 1s ease-out 0.2s;

}

@keyframes fadeInUp {

    from{

        opacity: 0;

        transform: translateY(30px);

    }

    to{

        opacity: 1;

        transform: translateY(0);

    }

}

.hero h1 span{

    color:var(--primary);

    background: linear-gradient(135deg, var(--primary), var(--secondary));

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}
.menu{
    display:none;
}

.hero p{

    color:var(--gray);

    line-height:1.8;

    font-size:clamp(16px, 2vw, 18px);

    margin-bottom:35px;

    animation: fadeInUp 1s ease-out 0.4s;

}

.hero-buttons{

    display:flex;

    gap:20px;

    animation: fadeInUp 1s ease-out 0.6s;

}

/*==============================
    PHYSICS ILLUSTRATION
==============================*/

.physics-illustration{

    margin-top:50px;

    display:flex;

    justify-content:center;

    align-items:center;

    animation: fadeIn 1.5s ease-out 0.8s;

}

@keyframes fadeIn {

    from{

        opacity: 0;

    }

    to{

        opacity: 1;

    }

}

.atom-svg{

    width:clamp(180px, 25vw, 250px);

    height:clamp(180px, 25vw, 250px);

    animation:atomRotate 15s linear infinite;

    filter: drop-shadow(0 0 30px rgba(0,229,255,0.5));

}

@keyframes atomRotate{

    0%{

        transform:rotate(0deg);

    }

    100%{

        transform:rotate(360deg);

    }

}

.primary-btn,
.secondary-btn{

    padding:16px 32px;

    border:none;

    border-radius:50px;

    cursor:pointer;

    font-size:16px;

    transition:.35s;

    font-weight: 600;

}

.primary-btn{

    background:linear-gradient(135deg, var(--primary), #61e7ff);

    color:#000;

    box-shadow:0 8px 25px rgba(0,229,255,.3);

    position:relative;

    overflow:hidden;

}

.primary-btn::before{

    content:'';

    position:absolute;

    top:0;

    left:-100%;

    width:100%;

    height:100%;

    background:linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);

    transition:left 0.5s;

}

.primary-btn:hover::before{

    left:100%;

}

.primary-btn:hover{

    transform:translateY(-3px);

    box-shadow:0 0 35px var(--primary), 0 15px 30px rgba(0,229,255,.25);

}

.secondary-btn{

    background:rgba(255,255,255,.06);

    color:white;

    border:2px solid rgba(0,229,255,.4);

    backdrop-filter: blur(10px);

}

.secondary-btn:hover{

    background:linear-gradient(135deg, rgba(0,229,255,.2), rgba(123,97,255,.2));

    color:white;

    border-color:var(--primary);

    transform: translateY(-3px);

    box-shadow:0 8px 20px rgba(0,229,255,.2);

}

.control-row{

    display:flex;

    gap:10px;

    margin-top:18px;

}

.secondary-btn{

    flex:1;

    padding:12px 14px;

    border-radius:12px;

    font-size:14px;

    font-weight:600;

    background:rgba(255,255,255,.08);

    color:var(--text);

    border:1px solid rgba(255,255,255,.08);

}

.secondary-btn:hover{

    background:var(--primary);

    color:black;

}

.reset-btn{

    background:rgba(255, 138, 101,.18);

    border-color:rgba(255, 138, 101,.5);

}

.reset-btn:hover{

    background:#ff8a65;

    color:white;

    border-color:#ff8a65;

}

/*==============================
    HERO RIGHT
==============================*/

.hero-right{

    flex:1;

    display:flex;

    justify-content:center;

}

.coil-container{

    width:clamp(300px, 35vw, 400px);

    height:clamp(300px, 35vw, 400px);

    border-radius:50%;

    position:relative;

    display:flex;

    justify-content:center;

    align-items:center;

}

.outer-ring,
.middle-ring,
.inner-ring{

    position:absolute;

    border-radius:50%;

    border:2px solid var(--primary);

}

.outer-ring{

    width:clamp(280px, 32vw, 360px);

    height:clamp(280px, 32vw, 360px);

    animation: rotate 20s linear infinite;

}

.middle-ring{

    width:clamp(200px, 24vw, 280px);

    height:clamp(200px, 24vw, 280px);

    animation: rotate 15s linear infinite reverse;

}

.inner-ring{

    width:clamp(120px, 16vw, 180px);

    height:clamp(120px, 16vw, 180px);

    animation: rotate 10s linear infinite;

}

.core{

    width:clamp(70px, 10vw, 100px);

    height:clamp(70px, 10vw, 100px);

    border-radius:50%;

    background:var(--primary);

    color:black;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:clamp(24px, 4vw, 34px);

    box-shadow:0 0 50px var(--primary), 0 0 100px rgba(0,229,255,0.3);

    animation: pulse 2s ease-in-out infinite;

}

/*==============================
    STATS
==============================*/

.stats{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));

    gap:25px;

    padding:60px 6%;

}

.stat-card{

    background:var(--card);

    border:1px solid rgba(255,255,255,.1);

    border-radius:20px;

    padding:30px;

    text-align:center;

    transition:.3s;

    backdrop-filter: blur(10px);

}

.stat-card:hover{

    transform:translateY(-8px);

    box-shadow:0 0 40px rgba(0,229,255,0.2);

    border-color: rgba(0,229,255,0.3);

}

.stat-card h2{

    font-size:clamp(28px, 5vw, 36px);

    margin-bottom:10px;

    background: linear-gradient(135deg, var(--primary), var(--secondary));

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}

/*==============================
    EXPERIMENTS
==============================*/

.section-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Orbitron', sans-serif;
}

.section-icon {
    font-size: 32px;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 0 6%;
}

.chapter-group-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.chapter-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.chapter-group-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.chapter-kicker {
    display: inline-block;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.chapter-group-header h3 {
    margin: 0;
    color: var(--text);
    font-size: clamp(22px, 2vw, 28px);
    font-family: 'Orbitron', sans-serif;
}

.chapter-info-box {
    max-width: 56%;
    background: linear-gradient(135deg, rgba(0,229,255,0.08), rgba(123,97,255,0.07));
    border: 1px solid rgba(0,229,255,0.18);
    border-radius: 18px;
    padding: 14px 16px;
}

.chapter-info-box p {
    margin: 0 0 10px;
    color: var(--gray);
    line-height: 1.6;
    font-size: 14px;
}

.chapter-formulas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chapter-formulas span {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--primary);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
}

.chapter-study-panel {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 18px;
    margin-bottom: 22px;
}

.chapter-focus-box,
.chapter-links-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 16px 18px;
}

.chapter-focus-box h4,
.chapter-links-box h4 {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
}

.chapter-focus-box ul {
    margin: 0;
    padding-left: 18px;
    color: var(--gray);
    line-height: 1.7;
    font-size: 14px;
}

.chapter-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chapter-link-btn {
    display: inline-block;
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(0,229,255,0.08);
    border: 1px solid rgba(0,229,255,0.2);
    color: var(--text);
    font-size: 12px;
    transition: all 0.25s ease;
}

.chapter-link-btn:hover {
    background: linear-gradient(135deg, rgba(0,229,255,0.18), rgba(123,97,255,0.14));
    border-color: rgba(0,229,255,0.4);
    transform: translateY(-1px);
}

.exp-card {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.exp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exp-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,229,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.exp-card:hover::before {
    opacity: 1;
}

.exp-card:hover::after {
    opacity: 1;
}

.exp-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,229,255,0.25), 0 0 30px rgba(0,229,255,0.15);
    border-color: rgba(0,229,255,0.4);
}

.exp-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(0,229,255,0.25), rgba(123,97,255,0.2));
    border: 1px solid rgba(0,229,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,229,255,0.2);
}

.exp-card:hover .exp-card-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 0 25px rgba(0,229,255,0.5);
}

.exp-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exp-class-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0,229,255,0.2), rgba(123,97,255,0.15));
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    align-self: center;
    border: 1px solid rgba(0,229,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exp-card h3 {
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.exp-card p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.exp-card-meta {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: auto;
}

.exp-chapter {
    font-size: 12px;
    color: var(--gray);
    background: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 8px;
}

.exp-difficulty {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    text-transform: uppercase;
}

.exp-difficulty.easy {
    background: rgba(0,255,136,0.15);
    color: #00ff88;
}

.exp-difficulty.medium {
    background: rgba(255,170,0,0.15);
    color: #ffaa00;
}

.exp-difficulty.hard {
    background: rgba(255,68,68,0.15);
    color: #ff4444;
}

.error-message {
    text-align: center;
    color: #ff4444;
    padding: 40px;
    font-size: 16px;
    background: rgba(255,68,68,0.1);
    border-radius: 12px;
    border: 1px solid rgba(255,68,68,0.3);
}

/*==============================
    DASHBOARD STYLES
==============================*/

.dashboard-header {
    padding: 40px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-content h1 {
    font-size: clamp(28px, 5vw, 36px);
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 8px;
}

.header-content p {
    color: var(--gray);
    font-size: 16px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/*==============================
    PROGRESS OVERVIEW
==============================*/

.progress-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 6% 40px;
}

.progress-card {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.progress-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,229,255,0.15);
    border-color: rgba(0,229,255,0.25);
}

.progress-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0,229,255,0.2), rgba(123,97,255,0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
}

.progress-content h3 {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 4px;
}

.progress-content p {
    color: var(--text);
    font-size: 28px;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
}

/*==============================
    DASHBOARD SEARCH & FILTER
==============================*/

.search-filter-section {
    padding: 0 6% 30px;
}

.search-filter-section .search-box {
    margin-bottom: 16px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 25px;
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    background: rgba(0,229,255,.1);
    border-color: rgba(0,229,255,.3);
    color: var(--primary);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--primary), #61e7ff);
    color: #000;
    border-color: var(--primary);
    font-weight: 600;
}

/*==============================
    CATEGORY OVERVIEW
==============================*/

.category-overview {
    padding: 0 6% 40px;
}

.category-overview .section-title {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 35px rgba(0,229,255,0.2);
    border-color: rgba(0,229,255,0.3);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0,229,255,0.2), rgba(123,97,255,0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin: 0 auto 16px;
}

.category-card h3 {
    color: var(--text);
    font-size: 16px;
    margin-bottom: 8px;
}

.category-card p {
    color: var(--gray);
    font-size: 14px;
}

/*==============================
    RECENT EXPERIMENTS
==============================*/

.recent-experiments {
    padding: 0 6% 40px;
}

.recent-experiments .section-title {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-item {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.recent-item:hover {
    background: rgba(0,229,255,.05);
    border-color: rgba(0,229,255,.2);
}

.recent-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0,229,255,0.2), rgba(123,97,255,0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
}

.recent-content {
    flex: 1;
}

.recent-content h4 {
    color: var(--text);
    font-size: 16px;
    margin-bottom: 4px;
}

.recent-content p {
    color: var(--gray);
    font-size: 14px;
}

.recent-status {
    margin-left: auto;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.not-started {
    background: rgba(255,255,255,.1);
    color: var(--gray);
}

.status-badge.in-progress {
    background: rgba(255,170,0,.15);
    color: #ffaa00;
}

.status-badge.completed {
    background: rgba(0,255,136,.15);
    color: #00ff88;
}

.no-data {
    text-align: center;
    color: var(--gray);
    padding: 40px;
    font-style: italic;
    background: rgba(255,255,255,.02);
    border-radius: 12px;
}

/*==============================
    ALL EXPERIMENTS GRID
==============================*/

.all-experiments {
    padding: 0 6% 40px;
}

.all-experiments .section-title {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
}

.experiments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.dashboard-experiment-card {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.dashboard-experiment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 35px rgba(0,229,255,0.2);
    border-color: rgba(0,229,255,0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0,229,255,0.2), rgba(123,97,255,0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
}

.class-badge {
    background: rgba(0,229,255,0.15);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(0,229,255,0.3);
}

.card-body {
    flex: 1;
    margin-bottom: 16px;
}

.card-body h3 {
    color: var(--text);
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-body p {
    color: var(--gray);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chapter-tag {
    background: rgba(255,255,255,.05);
    color: var(--gray);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
}

.difficulty-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    text-transform: uppercase;
}

.difficulty-tag.easy {
    background: rgba(0,255,136,0.15);
    color: #00ff88;
}

.difficulty-tag.medium {
    background: rgba(255,170,0,0.15);
    color: #ffaa00;
}

.difficulty-tag.hard {
    background: rgba(255,68,68,0.15);
    color: #ff4444;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.start-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), #61e7ff);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,229,255,.3);
}

/*==============================
    RESPONSIVE DASHBOARD
==============================*/

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .progress-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .experiments-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        width: 100%;
    }
    
    .filter-tab {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .progress-overview {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .recent-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .recent-status {
        margin-left: 0;
        margin-top: 12px;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .start-btn {
        width: 100%;
        text-align: center;
    }
}

.experiments{

    padding:80px 6%;

}

.section-title{

    text-align:center;

    font-size:clamp(32px, 5vw, 42px);

    margin-bottom:50px;

    background: linear-gradient(135deg, var(--primary), var(--secondary));

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}

.card-container{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:25px;

}

.exp-card{

    background:var(--card);

    padding:30px;

    border-radius:20px;

    border:1px solid rgba(255,255,255,.08);

    transition:.35s;

    cursor:pointer;

    backdrop-filter: blur(10px);

}

.exp-card i{

    font-size:clamp(32px, 5vw, 40px);

    color:var(--primary);

    margin-bottom:18px;

    transition: transform 0.3s ease;

}

.exp-card:hover i{

    transform: scale(1.1);

}

.exp-card h3{

    margin-bottom:12px;

    font-size: clamp(16px, 3vw, 18px);

}

.exp-card p{

    color:var(--gray);

    line-height:1.6;

    font-size: clamp(14px, 2vw, 16px);

}

.exp-card:hover{

    transform:translateY(-8px);

    border-color:var(--primary);

    box-shadow:0 0 35px rgba(0,229,255,0.15);

}

/*==============================
    FOOTER
==============================*/

footer{

    padding:50px 6%;

    text-align:center;

    background:linear-gradient(180deg, rgba(3,5,15,0.8), rgba(5,8,22,0.95));

    margin-top:80px;

    border-top: 1px solid rgba(255,255,255,0.05);

}

footer h2{

    color:var(--primary);

    margin-bottom:15px;

    font-size: clamp(20px, 4vw, 24px);

}

footer p{

    color:var(--gray);

    margin:8px 0;

    font-size: clamp(14px, 2vw, 16px);

}

#physics-scene{

width:500px;

height:500px;

}

.fallback-scene{

width:100%;

height:100%;

display:flex;

justify-content:center;

align-items:center;

border-radius:24px;

background:radial-gradient(circle at center, rgba(0,229,255,.14), rgba(11,18,30,.7));

border:1px solid rgba(255,255,255,.08);

box-shadow:0 0 30px rgba(0,229,255,.16);

color:var(--primary);

font-size:clamp(48px, 8vw, 72px);

}

.magnet{

width:90px;

height:120px;

display:flex;

margin-right:40px;

animation:none;

}

.north,
.south{

width:45px;

height:120px;

display:flex;

align-items:center;

justify-content:center;

font-weight:bold;

color:white;

}

.north{

background:#ff2b5b;

border-radius:45px 45px 0 0;

}

.south{

background:#00bfff;

border-radius:45px 45px 0 0;

}

/*==============================
LAB SCENE
==============================*/

.lab-scene{

display:flex;

justify-content:center;

align-items:center;

gap:120px;

height:350px;

}

/*==============================
MAGNET
==============================*/

.magnet{

display:flex;

cursor:pointer;

transition:.4s;

}

.north,
.south{

width:70px;

height:150px;

display:flex;

justify-content:center;

align-items:center;

font-size:28px;

font-weight:bold;

color:white;

}

.north{

background:#ff355e;

border-radius:40px 0 0 40px;

}

.south{

background:#2ea8ff;

border-radius:0 40px 40px 0;

}

/*==============================
COIL
==============================*/

.coil-container{

display:flex;

}

.coil-ring{

width:18px;

height:100px;

border:4px solid #ff9800;

border-radius:50%;

margin-left:-8px;

box-shadow:0 0 8px orange;

}

/*==============================
FIELD
==============================*/

.field-lines{

display:flex;

justify-content:center;

gap:20px;

margin-top:30px;

}

.field-lines span{

width:70px;

height:3px;

background:#00e5ff;

animation:fieldMove 1s linear infinite;

}

.field-lines span:nth-child(2){

animation-delay:.2s;

}

.field-lines span:nth-child(3){

animation-delay:.4s;

}

.field-lines span:nth-child(4){

animation-delay:.6s;

}

.field-lines span:nth-child(5){

animation-delay:.8s;

}

@keyframes fieldMove{

0%{

transform:translateX(-15px);

opacity:.2;

}

100%{

transform:translateX(15px);

opacity:1;

}

}

/*==============================
LAB AREA
==============================*/

#lab-area{

position:relative;

width:100%;

height:350px;

overflow:hidden;

background:linear-gradient(180deg, rgba(17,25,42,.4), rgba(10,18,31,.15));

border-radius:18px;

box-shadow:inset 0 0 25px rgba(0, 229, 255, 0.08);

}

/*==============================
MAGNET
==============================*/

#magnet{

position:absolute;

left:50px;

top:120px;

display:flex;

cursor:grab;

transition:.1s;

z-index:10;

}

#magnet:active{

cursor:grabbing;

}

.north{

width:60px;

height:120px;

background:#ff355e;

display:flex;

justify-content:center;

align-items:center;

font-size:28px;

font-weight:bold;

color:white;

border-radius:35px 0 0 35px;

}

.south{

width:60px;

height:120px;

background:#2ea8ff;

display:flex;

justify-content:center;

align-items:center;

font-size:28px;

font-weight:bold;

color:white;

border-radius:0 35px 35px 0;

}

/*==============================
COIL
==============================*/

#coil{

position:absolute;

right:80px;

top:120px;

display:flex;

transition:all .25s ease;

}

.current-arrows{

position:absolute;

left:0;

top:0;

width:100%;

height:100%;

display:flex;

justify-content:space-around;

align-items:center;

pointer-events:none;

opacity:.9;

}

.current-arrow{

font-size:20px;

font-weight:bold;

color:#ffd000;

text-shadow:0 0 12px rgba(255, 208, 0, 0.9);

transition:transform .2s ease, opacity .2s ease;

}

.ring{

width:18px;

height:110px;

border:4px solid orange;

border-radius:50%;

margin-left:-8px;

transition:all .25s ease;

}

#ac-wave{

position:absolute;

right:30px;

bottom:18px;

width:190px;

height:90px;

z-index:8;

opacity:.9;

}

#ac-wave path{

fill:none;

stroke:#36f0ff;

stroke-width:3;

stroke-linecap:round;

}

/*==============================
MAGNETIC FIELD
==============================*/

.field{

position:absolute;

left:180px;

top:175px;

width:380px;

height:4px;

background:linear-gradient(
90deg,
transparent,
rgba(0,255,255,0.2),
cyan,
rgba(0,255,255,0.2),
transparent
);

box-shadow:0 0 12px rgba(0, 255, 255, 0.5);

animation:fieldMove 1s linear infinite;

transition:all .25s ease;

}

@keyframes fieldMove{

0%{

transform:translateX(-20px);

}

100%{

transform:translateX(20px);

}

}

/*==============================
    RESPONSIVE DESIGN
==============================*/

@media (max-width: 1200px) {

    body {

        padding-left: 0;

    }

    header {

        width: 100%;

        height: auto;

        position: relative;

        flex-direction: row;

        justify-content: space-between;

        align-items: center;

        padding: 15px 20px;

        border-right: none;

        border-bottom: 1px solid rgba(255,255,255,0.1);

    }

    header.sidebar-collapsed {

        width: 100%;

        padding: 15px 20px;

    }

    .logo {

        margin: 0;

    }

    nav {

        display: none;

        position: absolute;

        top: 100%;

        left: 0;

        right: 0;

        background: rgba(7,12,28,0.98);

        backdrop-filter: blur(20px);

        padding: 20px;

        border-radius: 0 0 20px 20px;

        flex-direction: row;

        flex-wrap: wrap;

        gap: 10px;

        max-height: none;

        overflow: visible;

    }

    nav.active {

        display: flex;

    }

    nav a {

        flex: 1;

        min-width: fit-content;

        justify-content: center;

        padding: 10px 15px;

    }

    .nav-label {

        display: block;

    }

    .sidebar-toggle {

        display: flex;

        margin: 0;

    }

    .hero {

        flex-direction: column;

        padding: 80px 6% 60px;

        text-align: center;

    }

    .hero-left {

        order: 2;

    }

    .hero-right {

        order: 1;

    }

    .coil-container {

        margin-bottom: 40px;

    }

    .stats {

        grid-template-columns: repeat(2, 1fr);

        padding: 40px 6%;

    }

    .card-container {

        grid-template-columns: repeat(2, 1fr);

    }

    .menu {

        display: flex;

        margin-left: auto;

        margin-right: 20px;

    }

}

@media (max-width: 768px) {

    .hero h1 {

        font-size: clamp(32px, 8vw, 45px);

    }

    .stats {

        grid-template-columns: 1fr;

        padding: 30px 6%;

    }

    .card-container {

        grid-template-columns: 1fr;

    }

    .hero-buttons {

        flex-direction: column;

        width: 100%;

    }

    .primary-btn,
    .secondary-btn {

        width: 100%;

    }

    .coil-container {

        width: 280px;

        height: 280px;

    }

    .outer-ring {

        width: 240px;

        height: 240px;

    }

    .middle-ring {

        width: 180px;

        height: 180px;

    }

    .inner-ring {

        width: 120px;

        height: 120px;

    }

    .core {

        width: 60px;

        height: 60px;

        font-size: 24px;

    }

}

@media (max-width: 480px) {

    .hero {

        padding: 60px 5% 40px;

    }

    .hero h1 {

        font-size: clamp(28px, 10vw, 36px);

    }

    .hero p {

        font-size: 14px;

    }

    .tag {

        font-size: 12px;

        padding: 8px 16px;

    }

    .stat-card {

        padding: 25px;

    }

    .exp-card {

        padding: 25px;

    }

    .exp-card i {

        font-size: 32px;

    }

    .coil-container {

        width: 220px;

        height: 220px;

    }

    .outer-ring {

        width: 200px;

        height: 200px;

    }

    .middle-ring {

        width: 150px;

        height: 150px;

    }

    .inner-ring {

        width: 100px;

        height: 100px;

    }

    .core {

        width: 50px;

        height: 50px;

        font-size: 20px;

    }

    .inner-ring {

        width: 100px;

        height: 100px;

    }

    .core {

        width: 50px;

        height: 50px;

        font-size: 20px;

    }

}