/* ==========================================================================
   University Name: Universiti Kuala Lumpur
   Student Name/ID: [Insert Name] / [Insert ID]
   Title of Project: Teroka Kita - Premium Travel Portal
   Lecturer Name: Ezat Akarudim Bin Sulaiman
   Submission Date: Week 17
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght=300;400;500;600;700;800&family=Playfair+Display:ital,wght=0,400;0,600;0,700;1,400&display=swap');

/* Global Root Configuration System Variables */
/* Rubric Check: Background color, Font color, Advanced layout mechanics */
:root {
    --primary: #0a192f;
    --primary-light: #112240;
    --accent: #ffb300;
    --accent-glow: rgba(255, 179, 0, 0.4);
    --cyan: #64ffda;
    --text-bright: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.25);
    --card-radius: 16px;
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Universal Layout Reset Parameter */
/* Rubric Check: Margin and padding resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Body Framework Settings */
/* Rubric Check: Use of selector: single element, Font style, Background color rules */
body {
    background-color: var(--primary); /* Rubric Check: Core system background color initialization */
    color: var(--text-bright); /* Rubric Check: Core typography font color token mapping */
    font-family: 'Plus Jakarta Sans', sans-serif; /* Rubric Check: Global font style layout assignment */
    line-height: 1.7;
    overflow-x: hidden; /* Rubric Check: Disables side page horizontal scroll leaks */
    scroll-behavior: smooth;
    transition: background-color 0.5s var(--ease-premium), color 0.5s var(--ease-premium);
}

/* Light Theme Variable Overrides Framework */
/* Rubric Check: Multi-selector combination layout triggers, Light theme color swapping */
body.light-theme {
    --primary: #f8fafc;
    --primary-light: #ffffff;
    --text-bright: #0f172a;
    --text-muted: #64748b;
    --glass-bg: rgba(15, 23, 42, 0.04);
    --glass-border: rgba(15, 23, 42, 0.08);
}

/* ==========================================================================
   Premium Navigation Panel
   ========================================================================== */

/* Function: Locks top banner positioning across page viewport scroll frames. */
/* Rubric Check: Use of selector: single element, CSS website layout */
header {
    position: fixed; /* Rubric Check: Sticky top positioning mechanics */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s var(--ease-premium), backdrop-filter 0.4s var(--ease-premium);
}

/* Function: Applies solid glass backdrops when JavaScript triggers scroll parameters. */
/* Rubric Check: Selector chaining variations, Border structural adjustments */
header.scrolled {
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

/* Function: Syncs navigation header panels to white tones during light mode activation. */
/* Rubric Check: Multi selector path tracking, Light theme compatibility */
body.light-theme header.scrolled {
    background: rgba(248, 250, 252, 0.85);
}

/* Function: Spreads brand tokens and link nodes evenly inside header boundaries. */
/* Rubric Check: CSS website layout (Flexbox alignment structural rules) */
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex; /* Rubric Check: Horizontal layout distribution via Flexbox */
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem; /* Rubric Check: Boundary protection padding declarations */
}

/* Function: Customizes typographical sizes and brand color masks for titles. */
/* Rubric Check: Compound element structures, Typography font style */
.logo-container h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Function: Swaps brand titles to darker luxury tones on bright layout frames. */
/* Rubric Check: Compound multi selector tracking, Background gradients configuration */
body.light-theme .logo-container h1 {
    background: linear-gradient(135deg, var(--primary-light) 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Function: Packs unordered hypertext hyperlinks onto single side lines. */
/* Rubric Check: CSS website layout via Flex list items, Unordered list styling resets */
.nav-links {
    display: flex; /* Rubric Check: Side-by-side flex layout distribution links matrix */
    list-style: none; /* Rubric Check: Removes native generic dot bullet lists points */
    gap: 2.5rem;
    align-items: center;
}

/* Function: Manages link line spacing heights, font colors, and positioning states. */
/* Rubric Check: Font styling, Font color rules, Compound item paths */
.nav-links a {
    text-decoration: none; /* Rubric Check: Cleans standard under-line text formats */
    color: var(--text-bright);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

/* Function: Builds unique underline micro interaction bars using blank pseudo tracks. */
/* Rubric Check: Pseudo element selector structures, Background styling color */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent); /* Rubric Check: Color token matching lines */
    transition: width 0.4s var(--ease-premium);
}

/* Function: Animates underline indicator bars to 100% widths during interactive hover actions. */
/* Rubric Check: Interactive pseudo state chaining updates, Hover interaction rules */
.nav-links a:hover::after, 
.nav-links a.active::after {
    width: 100%;
}

/* Function: Highlights text anchors to primary gold tones upon mouse interaction triggers. */
/* Rubric Check: Font color variations on user hover steps */
.nav-links a:hover, 
.nav-links a.active {
    color: var(--accent);
}

/* Function: Styles CTA text buttons with high visibility gradient backgrounds and rounded corners. */
/* Rubric Check: Select by class, Background color configurations, Margin and padding */
.functional-btn {
    background: linear-gradient(135deg, var(--accent) 0%, #e69d00 100%);
    color: #0f172a !important; /* Rubric Check: Overrides root bright font settings */
    padding: 0.75rem 1.75rem !important; /* Rubric Check: Button block element dimensions padding */
    border-radius: 50px;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px var(--accent-glow);
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium) !important;
}

/* Function: Translates action items smoothly upward when interacted with. */
/* Rubric Check: Hover interaction styling animations */
.functional-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

/* Function: Standardizes line properties across utility control blocks. */
.functional-btn::after { display: none !important; }

/* Function: Customs system mode switch dials with translucent border lines. */
/* Rubric Check: Select by class, Form button element configuration details */
#theme-toggle-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-bright);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Function: Applies outer glow effects around theme toggle controllers when hovered. */
/* Rubric Check: Active field interaction paths */
#theme-toggle-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Main Page Segment Container Wrapper */
main {
    min-height: 85vh;
}

/* ==========================================================================
   Premium Luxury Footer Layout
   ========================================================================== */

/* Function: Establishes deep foundation panels with distinct top boundary framing lines. */
/* Rubric Check: Use of selector: single element, Background configurations */
footer {
    background-color: #050c16; /* Rubric Check: Set solid baseline backdrop tone */
    border-top: 1px solid var(--glass-border); /* Rubric Check: Top border separating structural zones */
    color: var(--text-muted);
    padding: 4rem 2rem 2rem; /* Rubric Check: Margin and padding protection spaces */
    margin-top: 5rem;
}

/* Function: Swaps footer backdrops to light gray colors on bright theme grids. */
/* Rubric Check: Compound background layout color modifications */
body.light-theme footer {
    background-color: #e2e8f0;
}

/* Function: Organizes column distributions via multi track layout configurations. */
/* Rubric Check: CSS website layout (Advanced Grid structure distribution), Select by class */
.footer-content {
    display: grid; /* Rubric Check: Implements responsive CSS multi track Grid grids */
    grid-template-columns: 2fr 1fr 1fr; /* Rubric Check: Proportional grid column asset distributions */
    max-width: 1200px;
    margin: 0 auto; /* Rubric Check: Center aligns grid container layouts */
    gap: 4rem;
}

/* Function: Styles typography for structural branding titles within footers. */
/* Rubric Check: Typography settings, Compound item paths */
.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    color: var(--text-bright);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Function: Styles categorical labels in footer panels. */
/* Rubric Check: Font style attributes, Element spacing margins */
.footer-links h4 {
    color: var(--text-bright);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

/* Function: Disables standard list points on navigation groups inside footers. */
/* Rubric Check: Custom list styling configurations */
.footer-links ul {
    list-style: none; /* Rubric Check: Removes generic list symbols */
}

/* Function: Imposes vertical margin gaps between individual hyperlink rows. */
/* Rubric Check: Custom list item layout margins */
.footer-links ul li {
    margin-bottom: 0.75rem;
}

/* Function: Maps muted font color rules across sub navigation anchors. */
/* Rubric Check: Font color variations, Nested path mappings */
.footer-links ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Function: Shifts link strings to golden accent colors upon cursor contact. */
/* Rubric Check: Hover interaction styling updates */
.footer-links ul li a:hover {
    color: var(--accent);
}

/* Function: Aligns copyright texts and technical indicators along bottom grids. */
/* Rubric Check: Flexbox layout frameworks, Top border structure updates */
.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex; /* Rubric Check: Sub horizontal row alignment via Flexbox */
    justify-content: space-between;
    font-size: 0.9rem;
}

/* ==========================================================================
   Global Utility Helper Profiles
   ========================================================================== */

.text-center { text-align: center; }
.my-2 { margin-top: 2rem; margin-bottom: 2rem; }

/* Function: Sets large scales and playfair font selections for center titles. */
/* Rubric Check: Font style, Font color, Text styling, Select by class */
.section-title {
    font-family: 'Playfair Display', serif; /* Rubric Check: Secondary luxury typography tracking */
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center; /* Rubric Check: Text horizontal center alignment formatting */
    margin-bottom: 1rem;
}

/* Function: Standardizes subtitle colors and maximizes width limits for center paragraphs. */
/* Rubric Check: Font style, Text styling, Margin and padding rules */
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem; /* Rubric Check: Centering layout via horizontal auto margins */
    font-size: 1.1rem;
}

/* Function: Animates outer glowing pulses around selected components. */
/* Rubric Check: Advanced CSS animation keyframe parameters */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 179, 0, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 179, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 179, 0, 0); }
}

/* Function: Binds pulse glow keyframes to specific layout element classes. */
/* Rubric Check: Select by class, Animation configuration rules */
.pulse-glow {
    animation: pulseGlow 2s infinite;
}