/* ==========================================================
   BHARATHI MATRICULATION SCHOOL — STYLESHEET
   ========================================================== */

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

:root {
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --primary-rgb: 30, 64, 175;
  --accent-rgb: 249, 115, 22;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-cream: #fef9f0;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.08);
  --shadow-lg: 0 14px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text-dark); background: var(--white); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; line-height: 1.25; color: var(--text-dark); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* TOP BAR */
.top-bar { background: var(--primary-dark); color: #cdd9f0; font-size: 13px; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: #cdd9f0; transition: var(--transition); }
.top-bar a:hover { color: var(--accent); }
.top-bar i { margin-right: 6px; color: var(--accent); }

/* HEADER & NAV */
header { background: var(--white); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; gap: 20px; flex-wrap: nowrap; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-icon { width: 52px; height: 52px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 20px; box-shadow: var(--shadow-md); flex-shrink: 0; overflow: hidden; }
.logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.logo-text { line-height: 1.2; min-width: 0; }
.logo-text h1 { font-size: 16px; font-weight: 700; color: var(--primary); letter-spacing: 0.2px; line-height: 1.2; white-space: nowrap; }
.logo-text p { font-size: 11.5px; color: var(--text-light); margin-top: 3px; white-space: nowrap; }

nav { display: flex; align-items: center; }
nav ul { display: flex; align-items: center; list-style: none; gap: 2px; margin: 0; padding: 0; }
nav ul li { display: flex; align-items: center; }
nav a { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; font-weight: 500; font-size: 14.5px; color: var(--text-dark); border-radius: 8px; transition: var(--transition); white-space: nowrap; }
nav a:hover, nav a.active { color: var(--primary); background: rgba(30, 64, 175, 0.08); }
.nav-cta { background: var(--accent); color: var(--white) !important; padding: 0 18px !important; border-radius: 30px !important; font-weight: 600 !important; margin-left: 6px; height: 40px; }
.nav-cta:hover { background: var(--accent-dark) !important; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.hamburger { display: none; background: none; border: none; cursor: pointer; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.hamburger span { width: 26px; height: 3px; background: var(--primary); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* HERO */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; color: var(--white); overflow: hidden; background-size: cover; background-position: center; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 50%, rgba(249, 115, 22, 0.22) 0%, transparent 50%); }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 60px 0; }
.hero-badge { display: inline-block; background: rgba(249, 115, 22, 0.2); color: var(--accent); padding: 6px 16px; border-radius: 30px; font-size: 13px; font-weight: 600; letter-spacing: 1px; margin-bottom: 20px; border: 1px solid rgba(249, 115, 22, 0.5); text-transform: uppercase; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; margin-bottom: 20px; }
.hero h1 .highlight { color: var(--accent); }
.hero p { font-size: clamp(1rem, 2vw, 1.15rem); opacity: 0.95; margin-bottom: 30px; max-width: 620px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 30px; font-weight: 600; font-size: 15px; transition: var(--transition); cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: var(--white); color: var(--primary); border-color: var(--white); }
.hero-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; max-width: 800px; }
.stat-card { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 20px 16px; border-radius: var(--radius); text-align: center; border: 1px solid rgba(255,255,255,0.2); }
.stat-card .num { font-family: 'Poppins', sans-serif; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; color: var(--accent); display: block; }
.stat-card .label { font-size: 13px; opacity: 0.9; }

/* SECTION COMMON */
section.section { padding: 80px 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-tag { display: inline-block; color: var(--accent-dark); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.section-header h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 14px; color: var(--text-dark); }
.section-header h2 .highlight { color: var(--primary); }
.section-header p { color: var(--text-light); font-size: 16px; }
.section-divider { width: 70px; height: 4px; background: var(--accent); margin: 0 auto 20px; border-radius: 2px; }

/* ABOUT */
.about-section { background: var(--bg-light); }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature-card { background: var(--white); padding: 32px 24px; border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition); border-top: 4px solid var(--primary); }
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-top-color: var(--accent); }
.feature-icon { width: 70px; height: 70px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 20px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--primary); }
.feature-card p { color: var(--text-light); font-size: 14px; }

/* MESSAGES */
.message-section { background: var(--white); }
.message-section.alt { background: var(--bg-cream); }
.message-grid { display: grid; grid-template-columns: 320px 1fr; gap: 50px; align-items: center; }
.message-grid.reverse { grid-template-columns: 1fr 320px; }
.message-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 3 / 4; }
.message-photo .photo-bg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 6rem; color: var(--white); }
.message-photo .photo-bg img { width: 100%; height: 100%; object-fit: cover; }
.message-photo.correspondent .photo-bg { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%); }
.message-photo.principal .photo-bg { background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%); }
.message-photo .role-tag { position: absolute; bottom: 20px; left: 20px; right: 20px; background: rgba(255,255,255,0.95); padding: 12px 16px; border-radius: 10px; text-align: center; }
.message-photo .role-tag .name { font-weight: 700; color: var(--text-dark); font-family: 'Poppins', sans-serif; }
.message-photo .role-tag .title { font-size: 12px; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.message-content .section-tag { margin-bottom: 8px; }
.message-content h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 20px; color: var(--primary); }
.message-content .quote-icon { font-size: 2.5rem; color: var(--accent); opacity: 0.4; margin-bottom: 10px; }
.message-content p { color: var(--text-light); font-size: 16px; margin-bottom: 14px; line-height: 1.8; }
.signature { margin-top: 24px; padding-top: 24px; border-top: 1px dashed var(--border); }
.signature .name { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--text-dark); font-size: 1.1rem; }
.signature .title { color: var(--text-light); font-size: 14px; }

/* ACADEMICS */
.academics-section { background: var(--white); }
.academics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.academic-card { background: var(--white); border: 2px solid #eef2ff; border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; transition: var(--transition); position: relative; overflow: hidden; }
.academic-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.academic-card:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.academic-card:hover::before { transform: scaleX(1); }
.academic-icon { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 20px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 32px; transition: var(--transition); }
.academic-card:hover .academic-icon { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); transform: rotate(-8deg); }
.academic-card h3 { color: var(--primary); margin-bottom: 6px; font-size: 1.2rem; }
.academic-card .grades { display: inline-block; background: rgba(249, 115, 22, 0.12); color: var(--accent-dark); padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 14px; letter-spacing: 0.5px; }
.academic-card p { color: var(--text-light); font-size: 14px; line-height: 1.6; }

/* ACHIEVEMENTS */
.achievements-section { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); color: var(--white); position: relative; overflow: hidden; }
.achievements-section::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; background: rgba(249, 115, 22, 0.12); border-radius: 50%; }
.achievements-section::after { content: ''; position: absolute; bottom: -150px; left: -150px; width: 500px; height: 500px; background: rgba(249, 115, 22, 0.09); border-radius: 50%; }
.achievements-section .section-header h2, .achievements-section .section-header p { color: var(--white); }
.achievements-section .section-header p { opacity: 0.85; }
.achievements-section .section-tag { color: var(--accent); }
.achievements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; position: relative; z-index: 2; }
.achievement-card { background: rgba(255,255,255,0.08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 30px 26px; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,0.12); transition: var(--transition); }
.achievement-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.12); border-color: var(--accent); }
.achievement-icon { width: 60px; height: 60px; background: var(--accent); color: var(--white); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 20px; }
.achievement-card h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 10px; }
.achievement-card p { color: rgba(255,255,255,0.85); font-size: 14px; line-height: 1.6; }
.achievement-year { display: inline-block; background: var(--accent); color: var(--white); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-top: 14px; }

/* GALLERY */
.gallery-section { background: var(--bg-light); }
.gallery-filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn { padding: 8px 20px; background: var(--white); border: 1px solid var(--border); border-radius: 30px; font-weight: 500; cursor: pointer; transition: var(--transition); color: var(--text-dark); font-size: 14px; }
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; box-shadow: var(--shadow-sm); transition: var(--transition); }
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(30, 64, 175, 0.88) 0%, transparent 60%); display: flex; align-items: flex-end; padding: 20px; opacity: 0; transition: var(--transition); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay .caption { color: var(--white); font-weight: 600; font-family: 'Poppins', sans-serif; }
.gallery-overlay .caption small { display: block; opacity: 0.85; font-weight: 400; font-size: 12px; margin-top: 2px; }
.gallery-overlay .zoom-icon { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; background: var(--accent); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 85vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 24px; right: 24px; width: 50px; height: 50px; background: var(--accent); color: var(--white); border: none; border-radius: 50%; font-size: 20px; cursor: pointer; transition: var(--transition); }
.lightbox-close:hover { transform: rotate(90deg); }

/* NEWS & EVENTS */
.news-section { background: var(--bg-cream); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.news-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-date { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: var(--white); padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; }
.news-date .day { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.4rem; line-height: 1; }
.news-date .year { font-size: 13px; opacity: 0.9; }
.news-date .badge { background: var(--accent); padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.news-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
.news-body h3 { color: var(--text-dark); font-size: 1.1rem; margin-bottom: 10px; line-height: 1.4; }
.news-body p { color: var(--text-light); font-size: 14px; line-height: 1.6; flex: 1; }
.news-body .read-more { color: var(--accent-dark); font-weight: 600; font-size: 13px; margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); }
.news-body .read-more:hover { gap: 12px; color: var(--primary); }

/* CTA */
.cta-section { padding: 60px 0; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); color: var(--white); text-align: center; }
.cta-section h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }
.cta-section p { opacity: 0.95; margin-bottom: 24px; }
.cta-section .btn-primary { background: var(--white); color: var(--accent-dark); }
.cta-section .btn-primary:hover { background: var(--text-dark); color: var(--white); }

/* LOGIN PAGE */
.login-hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); color: var(--white); padding: 70px 0 50px; text-align: center; position: relative; overflow: hidden; }
.login-hero::before { content: ''; position: absolute; top: -120px; right: -120px; width: 380px; height: 380px; background: rgba(249, 115, 22, 0.12); border-radius: 50%; }
.login-hero::after { content: ''; position: absolute; bottom: -140px; left: -140px; width: 420px; height: 420px; background: rgba(249, 115, 22, 0.08); border-radius: 50%; }
.login-hero .container { position: relative; z-index: 2; }
.login-hero .badge { display: inline-block; background: rgba(249, 115, 22, 0.2); color: var(--accent); padding: 6px 16px; border-radius: 30px; font-size: 13px; font-weight: 600; letter-spacing: 1px; margin-bottom: 18px; border: 1px solid rgba(249, 115, 22, 0.5); text-transform: uppercase; }
.login-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 12px; }
.login-hero p { max-width: 620px; margin: 0 auto; opacity: 0.9; font-size: 16px; }

.auth-wrap { background: var(--bg-light); padding: 60px 0 80px; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 980px; margin: 0 auto; }
.auth-card { background: var(--white); border-radius: var(--radius-lg); padding: 36px 32px; box-shadow: var(--shadow-md); border-top: 4px solid var(--primary); transition: var(--transition); }
.auth-card.signup { border-top-color: var(--accent); }
.auth-card:hover { box-shadow: var(--shadow-lg); }
.auth-header { text-align: center; margin-bottom: 26px; }
.auth-header .icon-wrap { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--white); background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); }
.auth-card.signup .auth-header .icon-wrap { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); }
.auth-header h2 { font-size: 1.45rem; color: var(--primary); margin-bottom: 6px; }
.auth-card.signup .auth-header h2 { color: var(--accent-dark); }
.auth-header p { color: var(--text-light); font-size: 14px; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-dark); letter-spacing: 0.2px; }
.form-group input, .form-group select { width: 100%; height: 46px; padding: 0 14px; font-family: inherit; font-size: 15px; color: var(--text-dark); background: var(--bg-light); border: 1.5px solid var(--border); border-radius: 10px; outline: none; transition: var(--transition); }
.form-group input:focus, .form-group select:focus { border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.08); }
.auth-card.signup .form-group input:focus, .auth-card.signup .form-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12); }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.form-row .checkbox { display: inline-flex; align-items: center; gap: 8px; color: var(--text-light); cursor: pointer; }
.form-row .checkbox input { width: 16px; height: 16px; accent-color: var(--primary); }
.link-text { color: var(--accent-dark); font-weight: 600; font-size: 13px; }
.link-text:hover { color: var(--primary); text-decoration: underline; }
.auth-form .btn { width: 100%; justify-content: center; margin-top: 4px; height: 50px; padding: 0 24px; }
.auth-card .btn-primary { background: var(--primary); }
.auth-card .btn-primary:hover { background: var(--primary-dark); }
.auth-card.signup .btn-primary { background: var(--accent); }
.auth-card.signup .btn-primary:hover { background: var(--accent-dark); }
.auth-switch { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-light); }
.auth-help { max-width: 980px; margin: 36px auto 0; text-align: center; color: var(--text-light); font-size: 14px; background: var(--white); padding: 16px 20px; border-radius: 12px; border: 1px dashed var(--border); }
.auth-help i { color: var(--accent); margin-right: 6px; }

/* FOOTER */
footer { background: #0a1929; color: #cbd5e1; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); display: inline-block; }
.footer-col p { font-size: 14px; line-height: 1.8; margin-bottom: 12px; color: #94a3b8; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #94a3b8; font-size: 14px; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.footer-col ul li a:hover { color: var(--accent); transform: translateX(4px); }
.footer-col ul li a i { font-size: 10px; color: var(--accent); }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.footer-contact-item i { width: 36px; height: 36px; background: rgba(249, 115, 22, 0.18); color: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.footer-contact-item p { margin: 0; font-size: 14px; color: #cbd5e1; }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.08); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.social-links a:hover { background: var(--accent); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; text-align: center; font-size: 13px; color: #64748b; }
.footer-bottom .highlight { color: var(--accent); }

/* SCROLL TO TOP */
.scroll-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--accent); color: var(--white); border: none; border-radius: 50%; font-size: 18px; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: var(--transition); z-index: 99; }
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--accent-dark); transform: translateY(-4px); }

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE — DESKTOP-MEDIUM (≤1180px) */
@media (max-width: 1180px) {
  nav a { padding: 0 10px; font-size: 14px; height: 38px; }
  .nav-cta { padding: 0 14px !important; height: 38px; }
  .logo-text h1 { font-size: 14.5px; }
  .logo-text p { font-size: 11px; }
  .logo-icon { width: 46px; height: 46px; font-size: 18px; }
}

/* RESPONSIVE — TABLET (≤992px) — HAMBURGER ACTIVATES */
@media (max-width: 992px) {
  .hamburger { display: flex; }
  nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow-lg); max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
  nav.open { max-height: 600px; }
  nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 0; }
  nav ul li { width: 100%; }
  nav a { display: block; height: auto; padding: 14px 24px; border-radius: 0; border-bottom: 1px solid #f3f4f6; }
  .nav-cta { margin: 12px 24px !important; text-align: center; border-radius: 30px !important; height: auto; padding: 12px 20px !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .message-grid, .message-grid.reverse { grid-template-columns: 1fr; gap: 30px; }
  .message-photo { max-width: 320px; margin: 0 auto; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .auth-grid { grid-template-columns: 1fr; max-width: 520px; }
  .logo-text h1 { font-size: 16px; }
  .logo-text p { font-size: 12px; }
}

/* RESPONSIVE — MOBILE (≤768px) */
@media (max-width: 768px) {
  section.section { padding: 60px 0; }
  .hero { min-height: 75vh; text-align: center; }
  .hero-content { padding: 40px 0; margin: 0 auto; }
  .hero-buttons { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 16px 10px; }
  .logo-icon { width: 44px; height: 44px; font-size: 17px; }
  .logo-text h1 { font-size: 14px; }
  .logo-text p { font-size: 10.5px; }
  .top-bar { font-size: 12px; }
  .top-bar .container { justify-content: center; }
  .top-bar .top-bar-right { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .container { padding: 0 18px; }
  .login-hero { padding: 50px 0 40px; }
  .auth-card { padding: 28px 22px; }
}

/* RESPONSIVE — SMALL MOBILE (≤480px) */
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .form-row { flex-direction: column; align-items: flex-start; }
}
