/* =====================================================
   DMORA Academy Website Master Stylesheet
   Version 1.6 (Full Dynamic Proportions & Deep Space Update)
   Author: Parsa Oroji
===================================================== */

/* ===============================
   GOOGLE FONTS
=============================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ===============================
   RESET & BASICS
=============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    /* Rich, highly obvious light blue background baseline */
    background: linear-gradient(180deg, #D4E4FF 0%, #E6EFFF 50%, #CADAFF 100%);
    color: #0A1128;
    line-height: 1.8;
    overflow-x: hidden;
}

/* ===============================
   THEME DESIGN VARIABLES
=============================== */
:root {
    --primary: #0D1F5B;        /* Royal Navy */
    --secondary: #081536;      /* Deep Space Blue */
    --gold: #D4A43B;           /* Luxury Gold */
    --gold-light: #F5CF63;
    --white: #ffffff;
    --soft-blue: #CADAFF;
    --text: #1E293B;           /* Modern contrasted readable gray-black */
    --heading: #0D1F5B;

    /* Shadow Layers */
    --shadow: 0 15px 35px rgba(8, 21, 54, 0.12);
    --shadow-hover: 0 25px 50px rgba(8, 21, 54, 0.22);
    --gold-glow-hover: 0 0 25px rgba(212, 164, 59, 0.5);
    --blue-glow: 0 15px 40px rgba(13, 31, 91, 0.4);

    /* Dynamic Brand Gradients */
    --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    --gradient-navy: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-section: linear-gradient(180deg, #E6EFFF 0%, #CADAFF 100%);

    --transition: .4s cubic-bezier(.25, .8, .25, 1);
    --radius: 24px;
    --container: 1200px;
}

/* ===============================
   LAYOUT UTILITIES
=============================== */
.container {
    width: min(90%, var(--container));
    margin: auto;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===============================
   TYPOGRAPHY
=============================== */
h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    color: var(--heading);
    line-height: 1.35;
    letter-spacing: .5px;
}

h2 {
    font-size: clamp(2.2rem, 5.5vw, 3.2rem);
    text-align: center;
    margin-bottom: 65px;
    position: relative;
}

h2::after {
    content: "";
    width: 80px;
    height: 5px;
    background: var(--gradient-gold);
    display: block;
    margin: 22px auto 0;
    border-radius: 100px;
    box-shadow: 0 2px 5px rgba(212, 164, 59, 0.3);
}

h3 {
    font-size: 1.45rem;
    margin-bottom: 18px;
    letter-spacing: .3px;
    color: var(--primary);
    font-weight: 800;
}

p {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.85;
    font-weight: 500;
}

/* ===============================
   SECTIONS & COMPONENTS
=============================== */
.section {
    padding: 140px 0;
    position: relative;
    overflow: hidden;
    background: var(--gradient-section);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 38px;
    border-radius: 16px;
    background: var(--gradient-gold);
    color: var(--secondary);
    font-weight: 800;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(212, 164, 59, 0.3);
    border: 2px solid var(--gold);
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--gold-glow-hover);
    color: var(--white);
    background: var(--gradient-navy);
    border-color: var(--gold-light);
}

.secondary {
    background: rgba(13, 31, 91, 0.08);
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.secondary:hover {
    background: var(--gradient-navy);
    color: white;
    border-color: transparent;
    box-shadow: var(--blue-glow);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
    margin-top: 60px;
}

.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 50px 40px;
    box-shadow: var(--shadow);
    border: 2px solid rgba(13, 31, 91, 0.15); /* Strong, highly obvious Navy outline */
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold);
    background: var(--white);
}

/* =====================================================
   HEADER & NAVBAR
===================================================== */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(212, 228, 255, 0.8);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    box-shadow: 0 4px 30px rgba(8, 21, 54, 0.08);
    border-bottom: 2px solid rgba(13, 31, 91, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 95px;
}

.logo {
    height: 85px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.menu a {
    position: relative;
    color: var(--primary);
    font-weight: 700;
    transition: var(--transition);
    padding: 5px 0;
}

.menu a:hover {
    color: var(--gold);
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 3px;
    border-radius: 10px;
    background: var(--gradient-gold);
    transition: var(--transition);
}

.menu a:hover::after {
    width: 100%;
}

/* =====================================================
   HERO SECTION (Endless Full-Width Navy Cosmic Space)
===================================================== */
.hero {
    min-height: 95vh;
    padding: 100px 0;
    position: relative;
    background-image: url('assets/images/hero-cosmic.png');
    background-size: cover;
    background-position: center;
    background-color: #081536; /* Flawless edge fallback alignment color */
    width: 100%;
}

/* Cosmic overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 21, 54, 0.95) 0%, rgba(13, 31, 91, 0.85) 100%);
    z-index: 1;
}

/* Resets layout inner constraints to frame text elements nicely */
.hero .container {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 2;
}

.hero-text {
    animation: fadeUp 1.2s cubic-bezier(.25, .8, .25, 1) ease;
}

.hero-emblem {
    max-width: 140px;
    margin-bottom: 20px;
    filter: drop-shadow(0 15px 25px rgba(212, 164, 59, 0.4));
}

.hero-text h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: 25px;
}

/* Massive freestanding 3D Gold Accent Text */
.brand-highlight {
    display: block;
    font-size: 1.35em;
    color: #FCDA6A;
    font-family: 'Cinzel', serif;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 15px;
    text-shadow: 3px 4px 0px rgba(5, 14, 43, 1), 
                 0 0 30px rgba(252, 218, 106, 0.4);
}

.hero-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: none;
}

.hero .btn.secondary:hover {
    background: var(--gradient-gold);
    color: var(--secondary);
    border-color: var(--gold-light);
    box-shadow: var(--gold-glow-hover);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatRobot 6s ease-in-out infinite;
    z-index: 2;
}

.hero-image::before {
    content: "";
    position: absolute;
    width: 75%;
    height: 75%;
    background: radial-gradient(circle, rgba(0, 162, 255, 0.4) 0%, rgba(212, 164, 59, 0.1) 50%, transparent 70%);
    filter: blur(35px);
    z-index: -1;
    border-radius: 50%;
}

.hero-image img {
    max-width: 520px;
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(13, 31, 91, 0.25));
}

/* =====================================================
   LIGHT SECTIONS (Starry Textured Backdrops)
===================================================== */
.light {
    background-image: url('assets/images/space-stars.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.light::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(202, 218, 255, 0.93) 0%, rgba(230, 239, 255, 0.88) 100%);
    z-index: 0;
}

.light .container {
    position: relative;
    z-index: 1;
}

/* =====================================================
   CTA BANNER SECTION
===================================================== */
.cta {
    background: var(--gradient-navy);
    color: white;
    text-align: center;
    padding: 140px 0;
    border-top: 3px solid var(--gold);
    border-bottom: 3px solid var(--gold);
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('assets/images/space-stars.png');
    background-size: cover;
    opacity: 0.15;
    z-index: 0;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    color: white;
}

.cta p {
    color: rgba(244, 248, 255, 0.9);
    max-width: 700px;
    margin: 25px auto 45px;
    font-size: 1.15rem;
}

/* =====================================================
   INTERACTION STYLES (WHY US CARDS)
===================================================== */
#why .card {
    border: 2px solid rgba(13, 31, 91, 0.12);
}

#why .card:hover {
    background: var(--gradient-navy);
    color: white;
    border-color: var(--gold);
}

#why .card:hover h3 {
    color: var(--gold-light);
}

#why .card:hover p {
    color: rgba(255, 255, 255, .95);
}

/* =====================================================
   GALLERY MASONRY
===================================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.gallery img {
    aspect-ratio: 4/3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid rgba(13, 31, 91, 0.15);
}

.gallery img:hover {
    transform: scale(1.04) translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold);
}

/* =====================================================
   CONTACT SPECIFICS
===================================================== */
#contact {
    text-align: center;
}

#contact .card {
    border: 2px solid rgba(212, 164, 59, .4);
}

#contact .card:hover {
    border-color: var(--primary);
}

/* =====================================================
   FOOTER (Massive Anchored Branding Block)
===================================================== */
.footer {
    background: var(--gradient-navy);
    color: white;
    padding: 80px 0;
    text-align: center;
    letter-spacing: .5px;
    position: relative;
    border-top: 3px solid var(--gold);
}

.footer-logo {
    max-width: 220px;
    margin: 0 auto 35px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
    transition: var(--transition);
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 40px rgba(212, 164, 59, 0.5));
}

.footer p {
    color: #c9d2e8;
    font-size: .95rem;
    line-height: 1.8;
}

/* =====================================================
   BROWSER CORE SCROLLBAR
===================================================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #CADAFF;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 20px;
    border: 3px solid #CADAFF;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* =====================================================
   ANIMATIONS SYSTEM
===================================================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatRobot {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(0.8deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.fade {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s cubic-bezier(.25, .8, .25, 1);
}

.fade.show {
    opacity: 1;
    transform: translateY(0);
}

::selection {
    background: var(--gold);
    color: var(--secondary);
}

/* =====================================================
   RESPONSIVE LAYOUT MEDIA QUERIES
===================================================== */
@media(max-width: 1100px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; padding-top: 60px; gap: 50px; }
    .hero-emblem { margin: 0 auto 20px; }
    .hero-text { order: 2; } 
    .hero-image { order: 1; } 
    .hero-image img { max-width: 420px; }
    .buttons { justify-content: center; } 
    .menu { gap: 25px; }
}

@media(max-width: 850px) {
    .nav { flex-direction: column; padding: 25px 0; gap: 20px; }
    .menu { flex-wrap: wrap; justify-content: center; } 
    .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width: 650px) {
    h1 { font-size: 2.8rem; } 
    h2 { font-size: 2.2rem; } 
    .section { padding: 90px 0; }
    .gallery { grid-template-columns: 1fr; } 
    .grid { grid-template-columns: 1fr; }
    .btn { width: 100%; } 
    .buttons { flex-direction: column; }
    .logo { height: 65px; } 
    .hero { min-height: auto; padding-bottom: 60px; } 
    .hero-image img { max-width: 320px; }
}