/* Font faces defined in fonts.css */

/* =========================================================
   ROOT VARIABLES — THEME TOKENS
   ========================================================= */

:root {
    /* Color Palette — Premium Dark Theme */
    --primary: #00bcd4;
    --primary-glow: rgba(0, 188, 212, 0.15);
    --secondary: #9c27b0;
    --accent: #111111;

    /* Backgrounds */
    --bg-dark: #191919;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-border: rgba(255, 255, 255, 0.08);

    /* Text */
    --text-main: rgba(255, 255, 255, 0.92);
    --text-muted: rgba(255, 255, 255, 1);

    /* Typography - Bundled fonts only */
    --font-heading: 'OpenSans';
    --font-body: 'OpenSans';

    /* Glass System (Blur disabled) */
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-blur: none;
    --glass-border: rgba(255, 255, 255, 0.18);

    --glass-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0px rgba(255, 255, 255, 0.1);

    /* Layout */
    --container-width: 1600px;
    --section-spacing: 140px;

    /* Motion (Reduced to zero) */
    --transition-fast: 0s;
    --transition-smooth: 0s;
}

/* =========================================================
   RESET & BASE
   ========================================================= */

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
    letter-spacing: -0.025em;
    font-weight: 600;
}

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

ul {
    list-style: none;
}

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Gayathri' !important;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

/* =========================================================
   GLASS BUTTON SYSTEM
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'OpenSans';
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    color: #ffffff;

    background: var(--glass-bg);

    border: none;
    box-shadow: none;
    transition: var(--transition-fast);
    user-select: none;
}

/* Neutral glass rim */
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;

    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0.7),
            rgba(255, 255, 255, 0.15) 40%,
            rgba(255, 255, 255, 0.15) 60%,
            rgba(255, 255, 255, 0.7));

    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;

    pointer-events: none;
}

/* Primary (idle) */
.btn-primary {
    color: #ffffff;
}

/* =========================
   PRIMARY HOVER — CYAN GLASS
   ========================= */

.btn-primary:hover {
    background: rgba(0, 188, 212, 0.16);

    box-shadow:
        inset 0 2px 4px rgba(0, 188, 212, 0.45),
        inset 0 -1px 2px rgba(0, 0, 0, 0.45);
}

/* Cyan rim light */
.btn-primary:hover::before {
    background: var(--primary);
}


/* =========================================================
   OUTLINE BUTTON
   ========================================================= */

.btn-outline {
    background: transparent;
    border: 1px solid var(--bg-card-border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(0, 188, 212, 0.05);
}

/* =========================================================
   LINKS
   ========================================================= */

.link-list li {
    margin-bottom: 12px;
}

.link-arrow {
    color: var(--primary);
    font-weight: 500;
}

.link-arrow:hover {
    color: #ffffff;
    padding-left: 5px;
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* =========================================================
   USER PROFILE MENU
   ========================================================= */

.user-menu-container {
    position: relative;
    display: flex;
    align-items: center;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
}

.user-menu-trigger:hover {
    background-color: var(--bg-card-border);
}

.user-avatar,
.user-avatar-lg {
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar {
    width: 36px;
    height: 36px;
}

.user-avatar-lg {
    width: 48px;
    height: 48px;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;

    /* Solid Background (No Transparency) */
    background: var(--bg-dark);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.03);

    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 0 4px 0;
    display: none;
    z-index: 1001;
    /* Match Width to Trigger */
    min-width: 0;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    font-family: 'OpenSans' !important;
}

.user-dropdown.show {
    display: flex;
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--bg-card-border);
}

.user-avatar-lg.initials,
.user-avatar.initials {
    background-color: transparent;
    color: var(--text-main);
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid var(--glass-border);
    line-height: 1;
    /* Force tight line-height */
    /* Maximum Optical Center Offset */
    font-family: 'OpenSans' !important;
}

.user-avatar.initials {
    font-size: 1.25rem;
    /* Larger, clearer text */
    font-weight: 700;
}

.user-avatar-lg.initials {
    font-size: 1.1rem;
}

.user-info-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.user-name-lg {
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff !important;
    opacity: 1 !important;
    white-space: nowrap;
    line-height: 1;
    /* Fix vertical alignment */
    margin-top: 2px;
    /* Optical adjustment for cap-height */
    font-family: 'OpenSans' !important;
}

.dropdown-email {
    font-size: 0.85rem;
    color: #ffffff !important;
    opacity: 1 !important;
    text-align: left;
    word-break: break-all;
    line-height: 1.3;
    margin-bottom: 0;
    /* Reduced to 0 */
    padding: 4px 36px 0 36px;
    /* Balanced Top Spacing */
    /* Top padding added */
    /* Top padding added */
    white-space: nowrap;
    box-sizing: border-box;
    width: 100%;
}

.dropdown-actions {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 100%;
}

.dropdown-separator {
    height: 1px;
    background-color: var(--bg-card-border);
    width: 50%;
    margin: 2px 0 2px 36px;
}

.dropdown-item {
    background: transparent;
    border: none;
    color: #ffffff !important;
    opacity: 1 !important;
    padding: 8px 0 2px 26px;
    /* High Left Padding */
    border-radius: 50px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    line-height: normal;
    width: calc(100% - 20px);
    margin-left: 10px;
    box-sizing: border-box;
}

.dropdown-item:hover {
    background: var(--bg-card-border);
}

/* =========================================================
   RESPONSIVE & MOTION SAFETY
   ========================================================= */

@media (min-width: 1600px) {
    body {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* CSP-Safe Utility Classes */
.active-link {
    color: var(--primary) !important;
}

.nav-logo-text {
    text-decoration: none;
    margin-left: 12px;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--text-main);
    opacity: 0.9;
}

.u-hidden {
    display: none !important;
}

.u-justify-center {
    justify-content: center !important;
}

.u-text-center {
    text-align: center !important;
}

/* Scroll Reveal Animation Classes */
.reveal-init {
    opacity: 1;
    transform: none;
    transition: none;
}

.reveal-visible {
    opacity: 1 !important;
    transform: none !important;
}


.u-my-20 {
    margin: 20px 0;
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: center !important;
        /* Force center alignment preventing stretch */
        width: 100%;
    }

    .hero-actions .btn {
        width: auto !important;
        min-width: 0 !important;
        max-width: 40%;
        margin: 6px 0;
        padding: 6px 16px !important;
        /* Tighter padding for smaller appearance */
        display: inline-flex;
    }
}