/* ==========================================
   SAHANA WEBSITE - MASTER STYLESHEET
   Consolidated styles with enhanced premium design
   ========================================== */

/* 
   NOTE: This file relies on variables defined in colors.css.
   Make sure colors.css is loaded BEFORE this file.
*/

:root {
    /* Semantic Color Mapping */
    --primary-color: var(--sahana-brown);
    --primary-dark: var(--sahana-brown-dark);
    --primary-light: var(--sahana-brown-light);

    --accent-color: var(--sahana-gold);
    --accent-hover: var(--sahana-gold-bright);
    --accent-glow: var(--sahana-gold-light);

    /* Backgrounds */
    --bg-main: var(--bg-light);
    --bg-card: rgba(255, 255, 255, 0.9);

    /* Layout */
    --header-height: 80px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(180deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 30%, white 90%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography - Enhanced */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

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

/* ==========================================
   COMPONENTS
   ========================================== */

/* 1. Buttons - Premium Enhanced */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-accent);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-accent-lg);
    background: var(--gradient-accent);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-primary);
}

/* 2. Cards - Glassmorphism & Hover Lifts */
.card,
.premium-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card:hover,
.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

/* Card highlight effect */
.card::after,
.premium-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::after,
.premium-card:hover::after {
    opacity: 1;
}

/* 3. Section Titles */
.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* 4. Navigation (Common) */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(224, 213, 209, 0.3);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    z-index: 1000;

    transition: var(--transition);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.main-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(93, 64, 55, 0.12);
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(224, 213, 209, 0.3);
    height: var(--header-height);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #5D3A2E, #D4941A, #F0B429);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo img {
    height: 48px;
    width: auto;
    max-height: 100%;
    object-fit: contain;
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    color: #2D1B13;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover,
.nav-link.active {
    color: #D4941A;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #7D5A50, #D4941A);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(93, 64, 55, 0.16);
    margin-top: 15px;
    min-width: 220px;
    padding: 8px 0;
    border: 1px solid rgba(224, 213, 209, 0.3);
    animation: fadeIn 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #2D1B13;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(125, 90, 80, 0.1), rgba(212, 148, 26, 0.1));
    color: #D4941A;
}

/* Special Buttons */
.btn-launch-app {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #7D5A50, #D4941A);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(212, 148, 26, 0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.btn-launch-app:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(212, 148, 26, 0.45);
}

.btn-techsukras {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(93, 58, 46, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(93, 58, 46, 0.15);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 600;
    color: #5D3A2E;
}

.btn-techsukras:hover {
    background: rgba(93, 58, 46, 0.12);
    border-color: rgba(93, 58, 46, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 58, 46, 0.15);
}

.btn-techsukras img {
    height: 20px;
    width: auto;
    border-radius: 4px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-dark);
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

/* Mobile Styles */
@media (max-width: 992px) {
    .nav-container {
        padding: 0 20px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        align-items: stretch;
        /* Full width items */
    }

    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-link {
        font-size: 18px;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: transparent;
        border: none;
        padding-left: 20px;
        margin-top: 0;
        transform: none;
        display: none;
    }

    .nav-dropdown.active .dropdown-menu {
        display: block;
    }

    .btn-launch-app,
    .btn-techsukras {
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

nav.transparent {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

nav.transparent .nav-links a {
    color: rgba(255, 255, 255, 0.9);
}

nav.transparent .nav-links a:hover,
nav.transparent .nav-links a.active {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(212, 148, 26, 0.3);
}

nav.transparent.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(224, 213, 209, 0.3);
}

nav.transparent.scrolled .nav-links a {
    color: var(--text-primary);
}




/* 5. Inputs & Forms */
input,
select,
textarea {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(125, 90, 80, 0.1);
}

/* ==========================================
   UTILITIES & ANIMATIONS
   ========================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
    position: relative;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Floating CTA (if used) */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    animation: pulse 2s infinite;
}

.floating-cta a {
    background: var(--gradient-primary);
    color: white;
    padding: 16px 28px;
    border-radius: 50px;
    box-shadow: var(--shadow-accent-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    html {
        font-size: 15px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .card,
    .premium-card {
        padding: 24px;
    }

    .btn {
        padding: 12px 24px;
    }

    .nav-logo {
        font-size: 24px;
        gap: 8px;
        flex-shrink: 0;
        /* Prevent container from expanding */
    }

    .nav-logo img {
        height: 36px !important;
        width: auto !important;
        max-width: 60px !important;
        /* Absolute failsafe width */
    }
}

/* ==========================================
   GLOBAL COMPONENTS & PATTERNS
   ========================================== */

/* 1. Common Hero */
.common-hero {
    margin-top: 80px;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #7D5A50 0%, #D4941A 50%, #F0B429 100%);
    color: #2D1B13;
    text-align: center;
}

.common-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: inherit;
}

.common-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .common-hero h1 {
        font-size: 2rem;
    }
}

/* 2. Detail Pages */
.detail-page-body {
    background: linear-gradient(135deg, #7D5A50 0%, #D4941A 50%, #F0B429 100%);
    color: #f1f5f9;
    min-height: 100vh;
    padding-top: 100px;
}

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

.detail-header {
    margin-bottom: 30px;
}

.detail-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(212, 148, 26, 0.5);
    animation: glowPulse 2s ease-in-out infinite alternate;
}

.detail-header p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-align: justify;
}

.detail-section {
    margin-top: 40px;
}

.detail-section-title {
    font-size: 1.4rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
    border-left: 4px solid #D4941A;
    padding-left: 10px;
}

.detail-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.detail-gallery img {
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.detail-gallery img:hover {
    transform: scale(1.03);
}

.detail-audio-player {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
}

.detail-audio-player span {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 500;
}

.detail-audio-player audio {
    width: 100%;
}

@keyframes glowPulse {
    from {
        text-shadow: 0 0 5px #D4941A, 0 0 10px #D4941A;
    }

    to {
        text-shadow: 0 0 10px #F0B429, 0 0 20px #F0B429;
    }
}

/* 3. Common Card Component */
.common-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.common-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    text-decoration: none;
    color: var(--text-primary);
}

.common-card.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.common-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.common-card-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    color: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 64px;
    width: 64px;
}

.common-card h3,
.common-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.common-card.glass h3,
.common-card.glass p {
    color: var(--white);
}

.common-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 0;
}

/* 4. Common Buttons (Renamed to avoid conflict) */
.common-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.common-btn-primary {
    background: var(--white);
    color: var(--secondary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.common-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.common-btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.common-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* 5. Sections */
.common-section {
    padding: 5rem 2rem;
}

.common-section:nth-child(even) {
    background: var(--bg-light);
}

.common-section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}