/* ========================================
   Kittur Sainik School - Main Stylesheet
   "In Pursuit of Excellence"
   Inspired by Apple's design language
   ======================================== */

/* --- CSS Variables / Theme --- */
:root {
    --primary: #1e73be;
    --primary-dark: #155a9c;
    --primary-light: #4a8fd4;
    --accent: #dd3333;
    --accent-hover: #b02828;
    --accent-light: #ff6b6b;
    --dark: #161819;
    --dark-bg: #212222;
    --footer-bg: #313131;
    --footer-bottom: #2d2d2d;
    --text: #333333;
    --text-light: #6b6b6b;
    --bg-light: #f5f5f7;
    --bg-card: #ffffff;
    --white: #ffffff;
    --font-body: 'PT Sans', Arial, sans-serif;
    --font-heading: 'Federo', 'Georgia', serif;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 30px rgba(30,115,190,0.2);
    --transition: all 0.3s var(--ease-out);
    --transition-slow: all 0.6s var(--ease-out);
    --transition-spring: all 0.5s var(--ease-spring);

    /* Apple-Inspired Animation Variables */
    --ease-out: cubic-bezier(0.32, 0.08, 0.24, 1);
    --ease-in-out: cubic-bezier(0.6, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-apple: cubic-bezier(0.44, 0.12, 0.24, 1);
    --anim-duration-fast: 0.4s;
    --anim-duration-normal: 0.6s;
    --anim-duration-slow: 0.9s;
    --anim-duration-reveal: 1.2s;
    --anim-duration-extra-slow: 1.8s;
    --blur-amount: 20px;
    --blur-amount-sm: 10px;
    
    /* 3D Transform */
    --perspective: 1000px;
    --rotate-x: 0deg;
    --rotate-y: 0deg;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.4;
    color: var(--dark);
}

h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 15px; }

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.section-title span {
    color: var(--primary);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30,115,190,0.4);
}

.btn-accent {
    background: var(--accent);
}

.btn-accent:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 15px rgba(221,51,51,0.4);
}

.btn-small {
    padding: 8px 20px;
    font-size: 13px;
}

/* --- Top Bar --- */
.top-bar {
    background: var(--dark);
    color: #8b8c8c;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid var(--dark);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar a {
    color: #8b8c8c;
}

.top-bar a:hover {
    color: var(--white);
}

.top-bar-left span {
    margin-right: 20px;
}

.top-bar-left i {
    margin-right: 5px;
}

.top-bar-right a {
    margin-left: 15px;
}

/* --- Header --- */
.site-header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    max-width: 60px;
    max-height: 60px;
    border-radius: 50%;
}

.site-logo-text {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.site-logo-text span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
    font-family: var(--font-body);
    letter-spacing: 1px;
}

/* --- Navigation --- */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    gap: 0;
}

.main-nav ul li {
    position: relative;
}

.main-nav ul li a {
    display: block;
    padding: 22px 12px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: var(--transition);
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: var(--transition);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 80%;
}

.main-nav ul li a:hover {
    color: #000;
}

/* Dropdown */
.main-nav ul li .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.main-nav ul li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav ul li .dropdown li {
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.main-nav ul li .dropdown li:last-child {
    border-bottom: none;
}

.main-nav ul li .dropdown li a {
    padding: 12px 18px;
    color: #000;
    font-size: 14px;
    text-transform: capitalize;
    letter-spacing: 0.6px;
    line-height: 1.2;
}

.main-nav ul li .dropdown li a::after {
    display: none;
}

.main-nav ul li .dropdown li a:hover {
    background: var(--accent);
    color: var(--white);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, rgba(30,115,190,0.9), rgba(0,0,0,0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding: 120px 20px;
    position: relative;
}

.hero h1 {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero .tagline {
    font-size: 22px;
    margin-bottom: 30px;
    opacity: 0.95;
    font-style: italic;
}

.hero p {
    font-size: 17px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* --- Announcement Bar --- */
.announcement-bar {
    background: var(--accent);
    color: var(--white);
    padding: 12px 0;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.announcement-bar marquee {
    color: var(--white);
}

/* --- Sections General --- */
section {
    padding: 70px 0;
}

section:nth-child(even) {
    background: var(--white);
}

/* --- Motto / Vision / Mission --- */
.mvm-section {
    background: var(--white);
}

.mvm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mvm-card {
    text-align: center;
    padding: 40px 25px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.mvm-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-bottom-color: var(--accent);
}

.mvm-card .icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}

.mvm-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mvm-card p {
    font-size: 16px;
    color: var(--text);
    font-style: italic;
}

/* --- About Section (School at a Glance) --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow);
    width: 100%;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin-top: 10px;
}

.about-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px 10px;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
}

.stat-item .number {
    font-size: 32px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.stat-item .label {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 5px;
}

/* --- Notifications --- */
.notifications-section {
    background: var(--white);
}

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

.notif-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.notif-card.important {
    border-left-color: var(--accent);
    background: #fff5f5;
}

.notif-card h4 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-card h4 .badge {
    font-size: 11px;
    background: var(--accent);
    color: var(--white);
    padding: 2px 10px;
    border-radius: 12px;
    font-family: var(--font-body);
}

.notif-card p {
    font-size: 14px;
    color: #555;
}

/* --- Quick Links --- */
.quick-links {
    background: var(--primary);
    color: var(--white);
    text-align: center;
}

.quick-links h2 {
    color: var(--white);
}

.quick-links .section-title::after {
    background: var(--white);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.link-card {
    background: rgba(255,255,255,0.15);
    padding: 25px 15px;
    border-radius: 8px;
    transition: var(--transition);
    text-align: center;
}

.link-card:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

.link-card a {
    color: var(--white);
    display: block;
}

.link-card .link-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.link-card .link-title {
    font-weight: 600;
    font-size: 14px;
}

.link-card .link-label {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 5px;
}

/* --- Staff Pages Common --- */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.staff-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.staff-card .staff-avatar {
    height: 180px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 60px;
}

.staff-card .staff-info {
    padding: 20px;
}

.staff-card .staff-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.staff-card .staff-info .designation {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

.staff-card .staff-info .department {
    color: var(--text-light);
    font-size: 13px;
}

/* --- House System --- */
.house-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.house-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.house-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.house-card .house-header {
    padding: 30px 20px;
    text-align: center;
    color: var(--white);
}

.house-card .house-header h3 {
    color: var(--white);
    font-size: 26px;
    margin-bottom: 5px;
}

.house-card .house-body {
    padding: 25px 20px;
}

.house-card .house-body p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.house-bhils .house-header { background: linear-gradient(135deg, #e67e22, #d35400); }
.house-changpas .house-header { background: linear-gradient(135deg, #3498db, #2980b9); }
.house-gonds .house-header { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.house-jarawas .house-header { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.house-mizos .house-header { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.house-todas .house-header { background: linear-gradient(135deg, #f39c12, #e67e22); }

/* --- Resources / Pratibimb --- */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.resource-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.resource-card .resource-thumb {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), #4a8fd4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 48px;
}

.resource-card .resource-info {
    padding: 20px;
}

.resource-card .resource-info h4 {
    margin-bottom: 8px;
}

.resource-card .resource-info .vol {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 12px;
}

.resource-card .resource-info .badge-new {
    background: var(--accent);
    color: var(--white);
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- EPFO Page --- */
.epfo-details {
    max-width: 800px;
    margin: 0 auto;
}

.epfo-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.epfo-table tr {
    border-bottom: 1px solid #eee;
}

.epfo-table tr:last-child {
    border-bottom: none;
}

.epfo-table td {
    padding: 15px 20px;
    font-size: 15px;
}

.epfo-table td:first-child {
    font-weight: 600;
    background: var(--primary);
    color: var(--white);
    width: 250px;
}

.epfo-table td:last-child {
    color: var(--text);
}

/* --- Assignments Page --- */
.assign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.assign-card {
    background: var(--white);
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.assign-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.assign-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 20px;
}

/* --- Page Banner --- */
.page-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-banner h1 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 10px;
}

.page-banner p {
    opacity: 0.9;
    font-size: 16px;
}

.breadcrumb {
    margin-top: 10px;
    font-size: 13px;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: rgba(255,255,255,0.6);
    margin: 0 5px;
}

/* --- Page Content --- */
.page-content {
    padding: 60px 0;
    min-height: 400px;
}

.page-content h2 {
    margin-bottom: 20px;
}

.page-content p {
    margin-bottom: 15px;
}

/* --- Footer --- */
.site-footer {
    background: var(--footer-bg);
    color: #aaa;
}

.footer-widgets {
    padding: 50px 0;
    text-align: center;
}

.footer-widgets .newsletter h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    max-width: 450px;
    margin: 0 auto 30px;
    gap: 10px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid rgba(255,255,255,0.2);
    background: transparent;
    color: #7c7c7c;
    border-radius: 4px;
    font-size: 15px;
    letter-spacing: 0.8px;
    outline: none;
    transition: var(--transition);
}

.newsletter-form input[type="email"]:hover {
    border-color: rgba(255,255,255,0.5);
}

.newsletter-form input[type="email"]:focus {
    border-color: rgba(255,255,255,0.6);
}

.newsletter-form button {
    padding: 12px 25px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: #5c7c19;
}

.footer-social {
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-block;
    color: #4a4a4a;
    font-size: 20px;
    margin: 0 8px;
    padding: 0.5em;
    transition: var(--transition);
}

.footer-social a:hover {
    color: #8cba29;
}

.footer-contact {
    margin-bottom: 20px;
}

.footer-contact p {
    margin-bottom: 5px;
    font-size: 14px;
}

.footer-contact i {
    margin-right: 8px;
    color: var(--primary);
}

.footer-bottom {
    background: var(--footer-bottom);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #6b6b6b;
}

.footer-bottom a {
    color: #6b6b6b;
}

.footer-bottom a:hover {
    color: var(--white);
}

/* --- Scroll to Top --- */
.scroll-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 48px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: var(--primary);
    color: var(--white);
    border-radius: 4px 4px 0 0;
    font-size: 22px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: none;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
}

/* --- Notification Ticker --- */
.ticker-wrap {
    background: var(--dark);
    color: var(--white);
    padding: 10px 0;
    overflow: hidden;
    border-bottom: 2px solid var(--accent);
}

.ticker-wrap .ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-wrap .ticker span {
    margin-right: 50px;
}

.ticker-wrap .ticker span i {
    color: var(--accent);
    margin-right: 8px;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Important Updates --- */
.update-item {
    background: var(--white);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.update-item:hover {
    transform: translateX(5px);
}

.update-item h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.update-item h4 .date {
    font-size: 12px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-weight: 400;
}

.update-item .update-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary);
}

/* --- Payment Page --- */
.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.payment-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.payment-card .pay-icon {
    font-size: 64px;
    color: var(--primary);
    margin-bottom: 20px;
}

.payment-card h3 {
    margin-bottom: 15px;
}

.payment-card p {
    color: #666;
    margin-bottom: 20px;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .mvm-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    .main-nav.open {
        max-height: 500px;
        overflow-y: auto;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav ul li a {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-nav ul li a::after {
        display: none;
    }

    .main-nav ul li .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.15);
    }

    .main-nav ul li .dropdown li a {
        padding-left: 40px;
    }

    .hero {
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero .tagline {
        font-size: 18px;
    }

    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 5px;
    }

    .top-bar-left span {
        margin-right: 10px;
        font-size: 12px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .site-logo-text {
        font-size: 16px;
    }

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

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

    .epfo-table td {
        display: block;
        width: 100%;
    }

    .epfo-table td:first-child {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

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

/* --- Utility Classes --- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* ========================================
   APPLE-INSPIRED ANIMATIONS & EFFECTS
   ======================================== */

/* --- Reveal Animations (Intersection Observer) --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.9s var(--ease-smooth), transform 0.9s var(--ease-smooth);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.9s var(--ease-smooth), transform 0.9s var(--ease-smooth);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s var(--ease-spring), transform 0.8s var(--ease-spring);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.reveal-blur {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), filter 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-blur.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Staggered children reveal */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.45s; }
.stagger-children.visible > *:nth-child(10) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(11) { transition-delay: 0.55s; }
.stagger-children.visible > *:nth-child(12) { transition-delay: 0.6s; }
.stagger-children.visible > *:nth-child(13) { transition-delay: 0.65s; }
.stagger-children.visible > *:nth-child(14) { transition-delay: 0.7s; }
.stagger-children.visible > *:nth-child(15) { transition-delay: 0.75s; }
.stagger-children.visible > *:nth-child(16) { transition-delay: 0.8s; }

/* --- Hover Animations --- */
.hover-lift {
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.hover-glow {
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), filter 0.3s var(--ease-out);
}

.hover-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(30,115,190,0.35);
    filter: brightness(1.05);
}

.hover-scale {
    transition: transform 0.4s var(--ease-spring);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-scale-sm {
    transition: transform 0.3s var(--ease-out);
}

.hover-scale-sm:hover {
    transform: scale(1.03);
}

.hover-rotate-icon i, .hover-rotate-icon svg {
    transition: transform 0.4s var(--ease-spring);
    display: inline-block;
}

.hover-rotate-icon:hover i, .hover-rotate-icon:hover svg {
    transform: rotate(15deg) scale(1.1);
}

.hover-underline {
    position: relative;
    display: inline-block;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.4s var(--ease-out);
}

.hover-underline:hover::after {
    width: 100%;
}

.hover-border-grow {
    position: relative;
}

.hover-border-grow::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--primary);
    border-radius: inherit;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    pointer-events: none;
}

.hover-border-grow:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* --- Card Image Zoom --- */
.img-zoom-wrap {
    overflow: hidden;
}

.img-zoom-wrap img {
    transition: transform 0.6s var(--ease-out);
}

.img-zoom-wrap:hover img {
    transform: scale(1.08);
}

/* --- Parallax Sections --- */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background-size: cover;
    background-position: center;
    will-change: transform;
    z-index: 0;
}

.parallax-content {
    position: relative;
    z-index: 1;
}

/* --- Text Animations --- */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), #4a8fd4, var(--accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s var(--ease-smooth) infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.text-reveal {
    overflow: hidden;
    display: block;
}

.text-reveal span {
    display: block;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.text-reveal.visible span {
    opacity: 1;
    transform: translateY(0);
}

/* --- Float Animation --- */
.float-anim {
    animation: float 3s var(--ease-smooth) infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- Pulse Animation --- */
.pulse-anim {
    animation: pulse 2s var(--ease-in-out) infinite;
}

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

/* --- Shimmer Load Effect --- */
.shimmer {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* --- Count-up Animation --- */
.count-up {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.count-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Smooth Section Transitions --- */
section {
    transition: background-color 1s var(--ease-smooth);
}

/* --- Nav Link Bounce Effect --- */
.main-nav ul li a {
    position: relative;
    transition: color 0.3s ease, transform 0.3s var(--ease-spring);
}

.main-nav ul li a:hover {
    transform: scale(1.05);
}

/* --- Hero Parallax & Fade --- */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30,115,190,0.92), rgba(0,0,0,0.75));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    animation: heroTextIn 1.2s var(--ease-out) forwards;
    transform-origin: center;
}

@keyframes heroTextIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.hero .tagline {
    animation: heroTaglineIn 1s var(--ease-out) 0.3s both;
}

@keyframes heroTaglineIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    animation: heroTaglineIn 1s var(--ease-out) 0.5s both;
}

.hero .btn {
    animation: heroTaglineIn 1s var(--ease-out) 0.7s both;
}

/* --- Page Banner Animation --- */
.page-banner h1 {
    animation: heroTextIn 1s var(--ease-out) forwards;
}

.page-banner p {
    animation: heroTaglineIn 0.8s var(--ease-out) 0.2s both;
}

.page-banner .breadcrumb {
    animation: heroTaglineIn 0.8s var(--ease-out) 0.4s both;
}

/* --- Card Entry Animations --- */
.mvm-card, .staff-card, .house-card, .resource-card, .payment-card, .notif-card, .link-card, .assign-card, .update-item {
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

/* --- Button Enhanced Animations --- */
.btn {
    position: relative;
    overflow: hidden;
    transition: background 0.4s var(--ease-out), transform 0.3s var(--ease-spring), box-shadow 0.4s var(--ease-out);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s var(--ease-out), height 0.6s var(--ease-out);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn i, .btn svg {
    transition: transform 0.3s var(--ease-spring);
    display: inline-block;
}

.btn:hover i, .btn:hover svg {
    transform: translateX(4px);
}

/* --- Stat Item Animation --- */
.stat-item {
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* --- Notification Card Enhancements --- */
.notif-card {
    position: relative;
    overflow: hidden;
}

.notif-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s var(--ease-out);
}

.notif-card:hover::after {
    left: 100%;
}

.notif-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* --- Quick Link Card Enhanced --- */
.link-card {
    position: relative;
    z-index: 1;
}

.link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.05);
    border-radius: inherit;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s var(--ease-out);
    z-index: -1;
}

.link-card:hover::before {
    transform: scaleY(1);
}

.link-card .link-icon {
    transition: transform 0.4s var(--ease-spring);
}

.link-card:hover .link-icon {
    transform: scale(1.2) rotate(-5deg);
}

/* --- Footer Animation --- */
.newsletter-form button {
    position: relative;
    overflow: hidden;
}

.newsletter-form button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.newsletter-form button:hover::after {
    left: 100%;
}

.footer-social a {
    transition: transform 0.3s var(--ease-spring), color 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-3px) scale(1.2);
}

/* --- Scroll to Top Enhanced --- */
.scroll-top {
    transition: opacity 0.4s var(--ease-out), visibility 0.4s, transform 0.4s var(--ease-spring), background 0.3s ease;
    transform: translateY(20px);
}

.scroll-top.visible {
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-3px) scale(1.1);
}

/* --- Ticker Enhanced --- */
.ticker-wrap .ticker {
    animation: ticker 35s linear infinite;
}

.ticker-wrap:hover .ticker {
    animation-duration: 50s;
}

/* --- Breadcrumb Animation --- */
.breadcrumb a {
    transition: color 0.3s ease, transform 0.3s var(--ease-spring);
    display: inline-block;
}

.breadcrumb a:hover {
    transform: translateX(3px);
}

/* --- Badge Animation --- */
.badge, .badge-new {
    animation: badgePulse 2s var(--ease-in-out) infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* --- Loading Skeleton --- */
.skeleton {
    background: linear-gradient(90deg, 
        #e0e0e0 25%, 
        #f0f0f0 50%, 
        #e0e0e0 75%
    );
    background-size: 200% 100%;
    animation: skeletonLoad 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeletonLoad {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Mobile Menu Animation --- */
.main-nav {
    transition: max-height 0.5s var(--ease-in-out), opacity 0.4s ease;
}

@media (max-width: 768px) {
    .main-nav {
        opacity: 0;
    }
    .main-nav.open {
        opacity: 1;
    }
}

/* --- Dropdown Smooth Animation --- */
.main-nav ul li .dropdown {
    transition: opacity 0.3s var(--ease-out), visibility 0.3s, transform 0.3s var(--ease-spring);
    transform-origin: top center;
}

.main-nav ul li:hover .dropdown {
    transition: opacity 0.3s var(--ease-out), visibility 0.3s, transform 0.3s var(--ease-spring);
}

/* --- EPFO Table Animation --- */
.epfo-table tr {
    transition: background 0.3s ease, transform 0.3s var(--ease-out);
}

.epfo-table tr:hover {
    background: rgba(30,115,190,0.05);
    transform: translateX(5px);
}

/* --- Staff Card Enhanced --- */
.staff-card {
    position: relative;
}

.staff-card .staff-avatar {
    transition: transform 0.5s var(--ease-spring);
}

.staff-card:hover .staff-avatar {
    transform: scale(1.05);
}

.staff-card .staff-avatar i {
    transition: transform 0.5s var(--ease-spring);
}

.staff-card:hover .staff-avatar i {
    transform: scale(1.15) rotate(-5deg);
}

/* --- House Card Enhanced --- */
.house-card .house-header {
    transition: transform 0.4s var(--ease-out);
}

.house-card:hover .house-header {
    transform: scale(1.02);
}

/* --- Resource Card Enhanced --- */
.resource-card .resource-thumb i {
    transition: transform 0.5s var(--ease-spring);
}

.resource-card:hover .resource-thumb i {
    transform: scale(1.2) rotate(-10deg);
}

/* --- Payment Card Enhanced --- */
.payment-card .pay-icon i {
    transition: transform 0.5s var(--ease-spring);
}

.payment-card:hover .pay-icon i {
    transform: scale(1.15) rotate(-5deg);
}

/* --- Assignment Card Enhanced --- */
.assign-card {
    position: relative;
}

.assign-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

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

/* --- Update Item Enhanced --- */
.update-item {
    position: relative;
    overflow: hidden;
}

.update-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s var(--ease-out);
}

.update-item:hover::before {
    transform: scaleY(1);
}

/* --- 404 Page Animation --- */
.error-page h1 {
    animation: heroTextIn 1s var(--ease-out) forwards;
}

.error-page h2 {
    animation: heroTaglineIn 0.8s var(--ease-out) 0.2s both;
}

.error-page p {
    animation: heroTaglineIn 0.8s var(--ease-out) 0.4s both;
}

.error-page .btn {
    animation: heroTaglineIn 0.8s var(--ease-out) 0.6s both;
}

/* --- About Page Core Values Animation --- */
.about-content-full .mvm-grid {
    /* reuse existing */
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s var(--ease-smooth) infinite;
    color: white;
    font-size: 24px;
    z-index: 2;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.5; }
}

/* --- Responsive Animation Adjustments --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-blur {
        opacity: 1;
        transform: none;
        filter: none;
    }
    .stagger-children > * {
        opacity: 1;
        transform: none;
    }
    .ticker-wrap .ticker {
        animation: none;
    }
}

/* --- Smooth Image Loading --- */
img {
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
}

img[src], img[srcset] {
    opacity: 1;
}

img.loaded {
    opacity: 1;
}

/* --- Focus Styles for Accessibility --- */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* --- Glass Morphism Effect --- */
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Neon Glow Effect --- */
.neon-glow {
    box-shadow: 0 0 10px rgba(30,115,190,0.3), 
                0 0 20px rgba(30,115,190,0.2), 
                0 0 40px rgba(30,115,190,0.1);
    transition: box-shadow 0.4s var(--ease-out);
}

.neon-glow:hover {
    box-shadow: 0 0 15px rgba(30,115,190,0.4), 
                0 0 30px rgba(30,115,190,0.3), 
                0 0 60px rgba(30,115,190,0.15);
}

/* --- Apple-Style Section Divider --- */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
    margin: 0;
}

/* --- Marquee Alternative Animation --- */
.marquee-wrap {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marqueeScroll 20s linear infinite;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Page Load Animation --- */
@keyframes pageLoad {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

body {
    animation: pageLoad 0.5s var(--ease-out);
}
