/* ============================================================
   VARKHANA SOLUTIONS - Global Stylesheet
   Source: index.html
   ============================================================ */

/* --- FONTS (Import here so all pages get them) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Outfit:wght@500;700;800&display=swap');

/* --- VARIABLES & RESET --- */
:root {
    --color-red: #D32F2F;
    --color-red-dark: #B71C1C;
    --color-gold: #FFC107;
    --color-gold-light: #FFD54F;
    --color-dark: #121212;
    --color-dark-surface: #1E1E1E;
    --color-light: #FFFFFF;
    --color-light-surface: #F5F5F5;
    --color-gray: #9E9E9E;

    --bg-body: var(--color-light);
    --bg-surface: var(--color-light);
    --bg-surface-2: #FFFFFF;
    --text-main: var(--color-dark);
    --text-muted: #666666;
    --border-color: #E5E5E5;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-body: var(--color-dark);
    --bg-surface: var(--color-dark-surface);
    --bg-surface-2: #252525;
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --border-color: #333333;
    --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

/* --- GLOBAL RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    width: 100%;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- LAYOUT UTILITIES --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    position: relative;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.4);
}

.btn-nav {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.btn-outline {
    border: 2px solid var(--text-main);
    color: var(--text-main);
    background: transparent;
}

.btn-outline:hover {
    background: var(--text-main);
    color: var(--bg-body);
}

/* --- SECTION TITLES --- */
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--color-red);
    transition: all 0.3s ease;
}

[data-theme="dark"] header {
    background: rgba(18, 18, 18, 0.85);
    border-bottom: 2px solid var(--color-red);
}

nav {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
    min-height: 80px;
    flex-wrap: nowrap;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1002;
}

.logo span:first-child {
    color: var(--color-red);
}

.logo span:last-child {
    color: var(--text-main);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1002;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    white-space: nowrap;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 700;
    position: relative;
}

.nav-links a.active {
    color: var(--color-red);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-red);
    transition: width 0.3s ease;
}

.nav-links a.active::after {
    width: 100%;
    background: black;
}

[data-theme="dark"] .nav-links a.active::after {
    background: white;
}

.nav-links a:hover::after {
    width: 100%;
}

.theme-toggle,
.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    z-index: 1002;
    margin-left: 0.5rem;
}

@media (max-width: 960px) {
    nav {
        padding: 0.5rem 0;
    }

    .logo {
        font-size: 1.1rem;
        flex-direction: row;
        align-items: center;
        gap: 0.3rem;
        white-space: nowrap;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-controls {
        margin-left: auto;
        gap: 0.2rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-surface-2);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        padding: 2rem;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.5rem;
        text-align: center;
        width: 100%;
        white-space: normal !important;
        /* Allow wrapping */
        line-height: 1.4;
        word-wrap: break-word;
        max-width: 90%;
        display: block;
        margin: 0 auto;
    }

    .nav-links .btn {
        width: auto;
        margin-top: 1rem;
    }
}

@media (max-width: 380px) {
    .nav-controls {
        gap: 0.5rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    padding: 3rem 0;
    background: var(--bg-surface-2);
    color: var(--text-muted);
    text-align: center;
    font-size: 0.9rem;
}

[data-theme="light"] footer {
    background-color: #f8f9fa;
    color: var(--text-main);
    border-top: 1px solid #e5e5e5;
}

[data-theme="dark"] footer {
    background-color: #000000 !important;
    color: var(--text-muted);
    border-top: 1px solid #333;
}

.logo-footer {
    height: 110px !important;
    width: auto;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.footer-container {
    position: relative;
}

.social-links {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 1.5rem;
}

.social-links svg {
    width: 36px !important;
    height: 36px !important;
    stroke-width: 1.5;
}

.social-links a {
    color: var(--text-muted);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.social-links a:hover {
    color: var(--color-gold);
}

@media (max-width: 768px) {
    .social-links {
        position: static;
        justify-content: center;
        margin-top: 1.5rem;
        transform: none;
    }

    .logo-footer {
        height: 100px;
        width: auto;
    }
}