/* ==========================================================================
   Samanvay Yoga Institute (समन्वय योग संस्थान)
   Design System Inspired by igel.ua
   Color Palette: #074C9A | #7F96B1 | #375783 | #D9E9F9 | #A8CDF4
   Zero Black Colors • Modern Minimalist Typography • 100px Pill Elements
   ========================================================================== */

:root {
    /* Core User Palette */
    --color-sapphire: #074C9A;         /* Primary Brand Accent */
    --color-slate: #7F96B1;            /* Calm Stone / Muted Labels */
    --color-twilight: #375783;         /* Deep Text / Secondary Navy */
    --color-mist: #D9E9F9;             /* Softest Ice-Blue Background Wash */
    --color-azure: #A8CDF4;            /* Luminous Ethereal Azure Glow */
    --color-white: #FFFFFF;            /* Crisp Pure White */
    --color-navy-dark: #05366E;        /* Dark Twilight Accent */

    /* Semantic Design Tokens (NO BLACKS) */
    --bg-body: #F5F9FD;
    --bg-card: #FFFFFF;
    --bg-card-subtle: #EBF4FC;
    --bg-hero-gradient: linear-gradient(135deg, #074C9A 0%, #375783 55%, #05366E 100%);
    --bg-glass-card: rgba(255, 255, 255, 0.88);
    --bg-dark-glass: rgba(255, 255, 255, 0.1);

    --text-primary: #074C9A;
    --text-body: #375783;
    --text-muted: #7F96B1;
    --text-light: #D9E9F9;
    --text-white: #FFFFFF;

    --border-subtle: #D9E9F9;
    --border-accent: #A8CDF4;
    --border-glass: rgba(255, 255, 255, 0.25);
    --border-slate-soft: rgba(127, 150, 177, 0.25);

    --shadow-sm: 0 4px 16px -4px rgba(7, 76, 154, 0.06);
    --shadow-md: 0 12px 32px -8px rgba(7, 76, 154, 0.1);
    --shadow-lg: 0 24px 48px -12px rgba(7, 76, 154, 0.18);
    --shadow-glow: 0 0 40px rgba(168, 205, 244, 0.5);

    --radius-pill: 100px;
    --radius-card: 24px;
    --radius-subtle: 16px;

    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Typography (igel.ua Bold Minimal Style - Tight Tracking)
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.055em;
}

h2 {
    font-size: clamp(1.85rem, 3.8vw, 2.85rem);
    font-weight: 800;
}

h3 {
    font-size: 1.45rem;
    font-weight: 700;
}

h4 {
    font-size: 1.18rem;
    font-weight: 600;
}

p {
    color: var(--text-body);
    margin-bottom: 1rem;
}

a {
    color: var(--color-sapphire);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--color-navy-dark);
}

/* ==========================================================================
   igel.ua Full-Bleed Horizontal Gradient Container
   ========================================================================== */
.igel-hero-wrapper {
    position: relative;
    background: var(--bg-hero-gradient);
    color: var(--text-white);
    padding: 6.5rem 0 5.5rem;
    overflow: hidden;
}

.igel-hero-wrapper h1,
.igel-hero-wrapper h2 {
    color: var(--color-white);
}

.igel-hero-wrapper p {
    color: rgba(217, 233, 249, 0.9);
}

/* Ambient Floating Luminous Droplets & Waves (Abstract Relaxation) */
.ambient-glow-1 {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 205, 244, 0.3) 0%, rgba(7, 76, 154, 0) 70%);
    filter: blur(60px);
    pointer-events: none;
    animation: pulseSlow 16s ease-in-out infinite alternate;
}

.ambient-glow-2 {
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 233, 249, 0.25) 0%, rgba(55, 87, 131, 0) 70%);
    filter: blur(50px);
    pointer-events: none;
    animation: pulseSlow 20s ease-in-out infinite alternate-reverse;
}

@keyframes pulseSlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.08); }
}

/* ==========================================================================
   Header & Floating Navigation
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.navbar {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.9rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.brand-logo-img {
    height: 48px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(7, 76, 154, 0.12);
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-sapphire);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.brand-sub {
    font-size: 0.74rem;
    color: var(--color-slate);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--text-body);
    transition: var(--transition);
    position: relative;
    padding: 0.35rem 0;
}
.nav-link:hover, .nav-link.active {
    color: var(--color-sapphire);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-sapphire);
    cursor: pointer;
}

/* ==========================================================================
   Buttons (igel.ua 100px Pill Style)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.btn-white {
    background: #FFFFFF;
    color: var(--color-sapphire) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}
.btn-white:hover {
    background: var(--color-mist);
    color: var(--color-sapphire);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(7, 76, 154, 0.2);
}

.btn-primary {
    background: var(--color-sapphire);
    color: #FFFFFF !important;
    box-shadow: 0 4px 18px rgba(7, 76, 154, 0.25);
}
.btn-primary:hover {
    background: var(--color-navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(7, 76, 154, 0.35);
}

.btn-ghost-glass {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #FFFFFF !important;
    backdrop-filter: blur(8px);
}
.btn-ghost-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-subtle);
    color: var(--text-body);
}
.btn-outline:hover {
    border-color: var(--color-sapphire);
    background: var(--bg-card-subtle);
    color: var(--color-sapphire);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* Circular Arrow Action Button (igel.ua signature element) */
.btn-circle-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card-subtle);
    color: var(--color-sapphire);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
    border: 1px solid var(--border-subtle);
}
.btn-circle-arrow:hover {
    background: var(--color-sapphire);
    color: #FFFFFF;
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(7, 76, 154, 0.25);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    letter-spacing: 0.02em;
}

.badge-mist {
    background: var(--color-mist);
    color: var(--color-sapphire);
}

.badge-azure {
    background: var(--color-azure);
    color: var(--color-sapphire);
}

.badge-twilight {
    background: var(--color-twilight);
    color: #FFFFFF;
}

/* ==========================================================================
   igel.ua Bento Cards & Product Line Grids
   ========================================================================== */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.75rem;
}

.section {
    padding: 5.5rem 0;
    position: relative;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}

/* igel.ua Bento Card Structure */
.igel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.igel-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--border-accent);
}

.igel-card-featured {
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F9FD 100%);
    border: 1.5px solid var(--border-accent);
}

/* ==========================================================================
   Pranayama Relaxation Widget (Modern igel.ua Integration)
   ========================================================================== */
.pranayama-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.breathing-visual-container {
    width: 180px;
    height: 180px;
    margin: 1.5rem auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.breathing-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 205, 244, 0.45) 0%, rgba(217, 233, 249, 0.1) 70%);
    animation: zenBreath 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.breathing-core {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-sapphire) 0%, var(--color-twilight) 100%);
    box-shadow: 0 10px 28px rgba(7, 76, 154, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.75rem;
    z-index: 2;
    transition: transform 0.5s ease;
}

.breath-phase-label {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-sapphire);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.5rem;
}

.breath-subtitle {
    font-size: 0.88rem;
    color: var(--color-slate);
}

@keyframes zenBreath {
    0%, 100% { transform: scale(0.85); opacity: 0.45; }
    33% { transform: scale(1.35); opacity: 0.9; }       /* Inhale 4s */
    66% { transform: scale(1.35); opacity: 0.8; }       /* Hold 4s */
}

/* ==========================================================================
   Forms & Controls (igel.ua Minimalist Transparent Inputs)
   ========================================================================== */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-sapphire);
    margin-bottom: 0.45rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-body);
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-subtle);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--color-sapphire);
    box-shadow: 0 0 0 4px rgba(168, 205, 244, 0.4);
}

.form-control::placeholder {
    color: var(--color-slate);
    opacity: 0.7;
}

/* Alerts */
.alert {
    padding: 1rem 1.4rem;
    border-radius: var(--radius-subtle);
    margin-bottom: 1.5rem;
    font-size: 0.93rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid transparent;
}
.alert-success { background: #E8F5E9; color: #1B5E20; border-color: #C8E6C9; }
.alert-error { background: #FFEBEE; color: #B71C1C; border-color: #FFCDD2; }
.alert-info { background: var(--color-mist); color: var(--color-sapphire); border-color: var(--border-accent); }

/* ==========================================================================
   Video Player & Anti-Piracy Watermark
   ========================================================================== */
.player-outer-wrapper {
    position: relative;
    width: 100%;
    background: #05366E;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(7, 76, 154, 0.25);
    border: 2px solid var(--border-subtle);
}

.player-aspect-ratio {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.player-aspect-ratio iframe,
.player-aspect-ratio .video-mount {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.moving-watermark {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    user-select: none;
    text-shadow: 0 1px 3px rgba(5, 54, 110, 0.6);
    transition: top 2.5s ease-in-out, left 2.5s ease-in-out;
}

/* ==========================================================================
   Portal Layout (Instructor, Tech, Admin, Classroom)
   ========================================================================== */
.portal-layout {
    display: flex;
    min-height: calc(100vh - 75px);
}

.portal-sidebar {
    width: 280px;
    background: #FFFFFF;
    border-right: 1px solid var(--border-subtle);
    padding: 2.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.portal-user-badge {
    padding: 1.35rem;
    background: var(--bg-card-subtle);
    border-radius: var(--radius-subtle);
    margin-bottom: 2rem;
    border: 1px solid var(--border-subtle);
}

.portal-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.portal-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.1rem;
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--text-body);
    border-radius: var(--radius-subtle);
    transition: var(--transition);
}

.portal-nav-link:hover, .portal-nav-link.active {
    background: var(--color-mist);
    color: var(--color-sapphire);
}

.portal-content {
    flex-grow: 1;
    padding: 2.75rem;
    background: var(--bg-body);
    overflow-y: auto;
}

/* ==========================================================================
   Footer (igel.ua 4-Column Structured Minimal Layout)
   ========================================================================== */
.site-footer {
    background: var(--color-navy-dark);
    color: var(--color-mist);
    padding: 5rem 0 2.5rem;
    margin-top: auto;
    border-top: 1px solid rgba(168, 205, 244, 0.2);
}

.site-footer a {
    color: var(--color-azure);
}
.site-footer a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    margin-top: 3.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(217, 233, 249, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--color-slate);
}

/* Responsive */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .portal-layout { flex-direction: column; }
    .portal-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-subtle); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .section { padding: 3.75rem 0; }
    .portal-content { padding: 1.5rem; }
}