/* 
 * Main Stylesheet for Vrindopnishad
 * Minimal Black & White Theme
 */

/* ========== CSS Variables ========== */
:root {
    /* Pure Black & White - Light Mode */
    --bg-color: #ffffff;
    --bg-color-rgb: 255, 255, 255;
    --text-color: #000000;
    --text-color-rgb: 0, 0, 0;
    --accent-color: #000000;
    --accent-color-rgb: 0, 0, 0;
    --secondary-color: #333333;
    --tertiary-color: #666666;

    /* UI Colors */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.1);

    /* No Gradients - Pure Minimal */
    --gradient-primary: none;
    --gradient-glow: none;
    --gradient-dark: none;

    /* Transitions */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Fonts */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Font Sizes */
    --font-size-xs: clamp(0.75rem, 2vw, 0.875rem);
    --font-size-sm: clamp(0.875rem, 2.5vw, 1rem);
    --font-size-md: clamp(1rem, 3vw, 1.25rem);
    --font-size-lg: clamp(1.25rem, 4vw, 1.5rem);
    --font-size-xl: clamp(1.5rem, 5vw, 2rem);
    --font-size-xxl: clamp(2.5rem, 8vw, 4rem);

    /* UI Elements */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-glow: none;
    --blur-effect: blur(10px);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #000000;
        --bg-color-rgb: 0, 0, 0;
        --text-color: #ffffff;
        --text-color-rgb: 255, 255, 255;
        --accent-color: #ffffff;
        --accent-color-rgb: 255, 255, 255;
        --secondary-color: #cccccc;
        --tertiary-color: #999999;

        /* Dark UI */
        --glass-bg: rgba(0, 0, 0, 0.9);
        --glass-border: rgba(255, 255, 255, 0.1);
        --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        --card-bg: #111111;
        --card-border: rgba(255, 255, 255, 0.1);
    }
}

::selection {
    background-color: var(--text-color);
    color: var(--bg-color);
}

::-moz-selection {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    font-family: var(--font-primary);
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    overflow-y: auto !important;
    height: auto !important;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
    overflow: auto !important;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.1;
}

h1 {
    font-size: clamp(3rem, 15vw, 10rem);
}

h2 {
    font-size: clamp(2rem, 8vw, 7rem);
}

h3 {
    font-size: clamp(1.5rem, 4vw, 3rem);
}

p {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    line-height: 1.6;
    max-width: 65ch;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Logo styling to match Book Collection heading */
.logo {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: var(--font-size-xl);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.logo:hover,
.logo:active {
    transform: scale(1.05);
}

/* Custom cursor */
/* .cursor { 
    position: fixed;
    width: 15px;
    height: 15px;
    background-color: var(--accent-color);
    border-radius: 50%;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, transform 0.3s ease;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.5;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: 0.1s ease-out;
}

.cursor.hover,
.cursor-follower.hover {
    transform: translate(-50%, -50%) scale(1.5);
}

.cursor.click {
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cursor-follower.click {
    transform: scale(0.8);
    opacity: 0.8;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.cursor.pulse {
    animation: cursorPulse 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cursorPulse {
    0% { transform: translate(-50%, -50%) scale(1.5); }
    50% { transform: translate(-50%, -50%) scale(2); }
    100% { transform: translate(-50%, -50%) scale(1.5); }
}*/

/* Layout */
.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-lg) 0;
    position: relative;
}

.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.grid {
    display: grid;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    transition: all 0.4s var(--transition-smooth);
    background-color: transparent;
}

header.scrolled {
    height: 70px;
    background-color: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    height: 100%;
    z-index: 10;
    font-weight: 700;
}

.header-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .header-logo-img,
.logo:active .header-logo-img {
    transform: scale(1.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 100%;
    flex-wrap: nowrap;
}

.tools-icon,
.menu {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(var(--text-color-rgb), 0.05);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
    overflow: visible;
    padding: 0;
    margin: 0;
}

.tools-icon:hover,
.tools-icon:active {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.tools-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    transition: transform 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6), color 0.3s ease;
    transform-origin: center center;
}

.tools-icon:hover svg,
.tools-icon:active svg {
    transform: rotate(90deg);
    color: var(--bg-color);
}

button.menu svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.visually-hidden {
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    display: none !important;
}

@media (max-width: 768px) {
    header {
        height: 70px;
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .tools-icon,
    .menu {
        width: 38px;
        height: 38px;
    }

    .tools-icon svg {
        width: 18px;
        height: 18px;
    }

}

/* Main Navigation */
.main-nav {
    display: none;
    /* Hidden by default, shown on desktop */
    align-items: center;
    height: 100%;
}

@media (min-width: 992px) {
    .main-nav {
        display: flex;
    }
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    opacity: 1;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-color);
    transition: width 0.3s var(--transition-smooth);
}

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

/* Final adjustments for icons */
.tools-icon,
.menu {
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tools-icon svg {
    display: block;
    transition: transform 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6), color 0.3s ease;
    will-change: transform;
    transform-origin: center center;
    color: var(--text-color);
    width: 20px;
    height: 20px;
    position: relative;
    top: auto;
    left: auto;
    margin: 0;
}

.tools-icon:hover svg,
.tools-icon:active svg {
    transform: rotate(90deg);
    color: var(--accent-color);
}

/* Magnetic effect override for tools-icon */
.tools-icon.magnetic {
    transform: none !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.tools-icon.magnetic:hover,
.tools-icon.magnetic:active {
    transform: none !important;
}

.tools-icon.magnetic span {
    transform: none !important;
    transition: none !important;
}

/* Special fix for Firefox */
@-moz-document url-prefix() {
    .tools-icon svg {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }

    .tools-icon:hover svg,
    .tools-icon:active svg {
        transform: rotate(90deg);
    }
}

/* Enhanced horizontal scrolling styles */
.horizontal-section {
    position: relative;
    overflow: hidden;
    padding: var(--spacing-lg) 0;
    margin: var(--spacing-xl) 0;
}

.horizontal-section.horizontal-scroll-enabled {
    will-change: transform;
    overflow: hidden;
}

.horizontal-section.in-viewport .horizontal-content {
    will-change: transform;
}

.horizontal-content {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.horizontal-item {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Ensure text in horizontal items doesn't move incorrectly */
.horizontal-item .horizontal-title,
.horizontal-item .horizontal-text {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
}

@media (min-width: 769px) {
    .horizontal-section {
        height: 100vh;
        margin: 0;
        overflow: hidden;
    }

    .horizontal-content {
        display: flex;
        position: absolute;
        top: 0;
        left: 0;
        width: max-content;
        height: 100%;
        padding: var(--spacing-lg);
        will-change: transform;
    }

    .horizontal-item {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: clamp(500px, 70vw, 800px);
        height: 100%;
        padding: 0 var(--spacing-md);
        margin-right: var(--spacing-md);
        will-change: transform;
    }
}

@media (max-width: 768px) {
    .tools-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }

    .tools-icon span {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    .tools-icon svg {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 20px;
        height: 20px;
    }

    .tools-icon:hover svg,
    .tools-icon:active svg {
        transform: rotate(90deg);
    }

    .horizontal-section {
        padding: var(--spacing-md) 0;
        overflow: visible;
        height: auto;
    }

    .horizontal-content {
        display: flex;
        flex-direction: column;
        position: relative;
        width: 100%;
        padding: var(--spacing-md);
        transform: none !important;
        /* Disable horizontal scrolling on mobile */
        transition: none !important;
    }

    .horizontal-item {
        width: 100%;
        margin-bottom: var(--spacing-md);
        padding: var(--spacing-sm);
    }

    .horizontal-item:last-child {
        margin-bottom: 0;
    }
}

/* Fix for tools-icon to prevent magnetic movement */
.tools-icon.magnetic {
    transform: none !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.tools-icon.magnetic:hover,
.tools-icon.magnetic:active {
    transform: none !important;
}

.tools-icon.magnetic span {
    transform: none !important;
    transition: none !important;
}

/* Fix for SVG centering inside tools-icon */
.tools-icon.magnetic svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    transition: transform 0.5s var(--transition-bounce), color 0.3s ease !important;
}

.tools-icon.magnetic:hover svg,
.tools-icon.magnetic:active svg {
    transform: translate(-50%, -50%) rotate(90deg) !important;
}

/* ===============================================
   MODERN BENTO-STYLE TOOLS MENU - PREMIUM DESIGN
   =============================================== */

/* Animated gradient background for tools menu */
@keyframes toolsGradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.6;
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
    }

    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.25);
    }
}

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes iconPulse {

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

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

@keyframes borderFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.tools-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(15, 15, 20, 0.98) 0%,
            rgba(25, 25, 35, 0.98) 25%,
            rgba(20, 20, 30, 0.98) 50%,
            rgba(30, 25, 35, 0.98) 75%,
            rgba(15, 15, 25, 0.98) 100%);
    background-size: 400% 400%;
    animation: toolsGradientShift 15s ease infinite;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 2100;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floating particles overlay */
.tools-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(142, 127, 127, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Noise texture overlay */
.tools-menu::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.tools-menu.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Premium Header */
.tools-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
}

.tools-menu-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, rgba(212, 175, 55, 0.9) 50%, #8E7F7F 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: toolsGradientShift 8s ease infinite;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tools-menu-close {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tools-menu-close::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(142, 127, 127, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50%;
}

.tools-menu-close:hover,
.tools-menu-close:active {
    transform: rotate(180deg) scale(1.1);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.tools-menu-close:hover::before,
.tools-menu-close:active::before {
    opacity: 1;
}

.tools-menu-close svg {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.tools-menu-close:hover svg,
.tools-menu-close:active svg {
    color: #D4AF37;
}

/* Content Container with Custom Scrollbar */
.tools-menu-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem;
    position: relative;
    z-index: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
}

.tools-menu-content::-webkit-scrollbar {
    width: 6px;
}

.tools-menu-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.tools-menu-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.4) 0%, rgba(142, 127, 127, 0.4) 100%);
    border-radius: 10px;
}

.tools-menu-content::-webkit-scrollbar-thumb:hover,
.tools-menu-content::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.6) 0%, rgba(142, 127, 127, 0.6) 100%);
}

/* Bento-Style Grid Layout */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: minmax(160px, auto);
    gap: 1.25rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.tools-menu.active .tools-grid {
    opacity: 1;
    transform: translateY(0);
}

/* Featured items span 2 columns */
.tools-grid .tool-item:nth-child(1),
.tools-grid .tool-item:nth-child(4),
.tools-grid .tool-item:nth-child(10) {
    grid-column: span 1;
}

@media (min-width: 768px) {

    .tools-grid .tool-item:nth-child(1),
    .tools-grid .tool-item:nth-child(10) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .tools-grid .tool-item:nth-child(4) {
        grid-row: span 2;
    }
}

/* Tool Card - Glassmorphism Style */
.tool-item {
    position: relative;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.02) 50%,
            rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

/* Animated border gradient */
.tool-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(212, 175, 55, 0.4) 25%,
            rgba(142, 127, 127, 0.4) 50%,
            rgba(212, 175, 55, 0.4) 75%,
            transparent 100%);
    background-size: 200% 100%;
    border-radius: 21px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

/* Inner glow effect */
.tool-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 20px;
    pointer-events: none;
}

.tool-item:hover,
.tool-item:active {
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.04) 50%,
            rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tool-item:hover::before {
    opacity: 1;
    animation: borderFlow 3s linear infinite;
}

.tool-item:hover::after,
.tool-item:active::after {
    opacity: 1;
}

/* Icon Container - Floating Style */
.tool-icon {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(142, 127, 127, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.tool-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(142, 127, 127, 0.3) 100%);
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    filter: blur(8px);
}

.tool-icon svg {
    width: 32px;
    height: 32px;
    color: #FFFFFF;
    transition: all 0.4s ease;
}

.tool-item:hover .tool-icon,
.tool-item:active .tool-icon {
    transform: translateY(-6px) rotate(-5deg);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(142, 127, 127, 0.25) 100%);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.2);
}

.tool-item:hover .tool-icon::before,
.tool-item:active .tool-icon::before {
    opacity: 1;
}

.tool-item:hover .tool-icon svg,
.tool-item:active .tool-icon svg {
    color: #D4AF37;
    transform: scale(1.1);
}

/* Content Styling */
.tool-info {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.tool-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    display: inline-block;
    transition: all 0.4s ease;
    letter-spacing: 0.01em;
}

.tool-info h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #D4AF37 0%, #8E7F7F 100%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.tool-item:hover .tool-info h3,
.tool-item:active .tool-info h3 {
    color: #fff;
    transform: translateX(4px);
}

.tool-item:hover .tool-info h3::after,
.tool-item:active .tool-info h3::after {
    width: 100%;
}

.tool-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0;
    line-height: 1.5;
    transition: color 0.4s ease;
}

.tool-item:hover .tool-info p,
.tool-item:active .tool-info p {
    color: #FFFFFF !important;
    opacity: 0.9;
}

.tool-item:hover .tool-info h3,
.tool-item:active .tool-info h3 {
    color: #FFFFFF !important;
}

/* Invisible Link Overlay */
.tool-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

/* Language Switch in Tools */
.language-switch-tools {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.language-btn-tools {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 500;
}

.language-btn-tools.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(142, 127, 127, 0.2) 100%);
    color: #D4AF37;
    border-color: rgba(212, 175, 55, 0.3);
}

.language-btn-tools:hover,
.language-btn-tools:active {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Category-Based Accent Colors */
.tool-item[data-bg-color="#8E7F7F"]::before {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(142, 127, 127, 0.5) 25%,
            rgba(142, 127, 127, 0.3) 50%,
            rgba(142, 127, 127, 0.5) 75%,
            transparent 100%);
    background-size: 200% 100%;
}

.tool-item[data-bg-color="#8E7F7F"]:hover,
.tool-item[data-bg-color="#8E7F7F"]:active {
    border-color: rgba(142, 127, 127, 0.4);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(142, 127, 127, 0.15);
}

.tool-item[data-bg-color="#8E7F7F"]:hover .tool-icon {
    background: linear-gradient(135deg, rgba(142, 127, 127, 0.3) 0%, rgba(142, 127, 127, 0.2) 100%);
}

.tool-item[data-bg-color="#8E7F7F"]:hover .tool-icon svg,
.tool-item[data-bg-color="#8E7F7F"]:active .tool-icon svg {
    color: #8E7F7F;
}

.tool-item[data-bg-color="#4A4A4A"]::before {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(100, 100, 100, 0.5) 25%,
            rgba(150, 150, 150, 0.3) 50%,
            rgba(100, 100, 100, 0.5) 75%,
            transparent 100%);
    background-size: 200% 100%;
}

.tool-item[data-bg-color="#4A4A4A"]:hover,
.tool-item[data-bg-color="#4A4A4A"]:active {
    border-color: rgba(150, 150, 150, 0.4);
}

.tool-item[data-bg-color="#D4AF37"]::before {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(212, 175, 55, 0.6) 25%,
            rgba(212, 175, 55, 0.3) 50%,
            rgba(212, 175, 55, 0.6) 75%,
            transparent 100%);
    background-size: 200% 100%;
}

.tool-item[data-bg-color="#D4AF37"]:hover,
.tool-item[data-bg-color="#D4AF37"]:active {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(212, 175, 55, 0.2);
}

.tool-item[data-bg-color="#D4AF37"]:hover .tool-icon,
.tool-item[data-bg-color="#D4AF37"]:active .tool-icon {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.35) 0%, rgba(212, 175, 55, 0.2) 100%);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.3);
}

.tool-item[data-bg-color="#000"]::before,
.tool-item[data-bg-color="#121212"]::before {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 25%,
            rgba(200, 200, 200, 0.2) 50%,
            rgba(255, 255, 255, 0.3) 75%,
            transparent 100%);
    background-size: 200% 100%;
}

.tool-item[data-bg-color="#000"]:hover,
.tool-item[data-bg-color="#121212"]:hover,
.tool-item[data-bg-color="#000"]:active,
.tool-item[data-bg-color="#121212"]:active {
    border-color: rgba(255, 255, 255, 0.2);
}

.tool-item[data-bg-color="#78a4aa"]::before {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(120, 164, 170, 0.5) 25%,
            rgba(120, 164, 170, 0.3) 50%,
            rgba(120, 164, 170, 0.5) 75%,
            transparent 100%);
    background-size: 200% 100%;
}

.tool-item[data-bg-color="#78a4aa"]:hover,
.tool-item[data-bg-color="#78a4aa"]:active {
    border-color: rgba(120, 164, 170, 0.4);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(120, 164, 170, 0.15);
}

.tool-item[data-bg-color="#e9d0a4"]::before {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(233, 208, 164, 0.5) 25%,
            rgba(233, 208, 164, 0.3) 50%,
            rgba(233, 208, 164, 0.5) 75%,
            transparent 100%);
    background-size: 200% 100%;
}

.tool-item[data-bg-color="#e9d0a4"]:hover,
.tool-item[data-bg-color="#e9d0a4"]:active {
    border-color: rgba(233, 208, 164, 0.4);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(233, 208, 164, 0.15);
}

.tool-item[data-bg-color="#e9d0a4"]:hover .tool-icon,
.tool-item[data-bg-color="#e9d0a4"]:active .tool-icon {
    background: linear-gradient(135deg, rgba(233, 208, 164, 0.3) 0%, rgba(233, 208, 164, 0.2) 100%);
}

.tool-item[data-bg-color="#e9d0a4"]:hover .tool-icon svg,
.tool-item[data-bg-color="#e9d0a4"]:active .tool-icon svg {
    color: #e9d0a4;
}

/* Adaptive tools menu for different devices */
@media (max-width: 768px) {
    .main-nav {
        display: none !important;
    }

    .tools-icon {
        width: 38px;
        height: 38px;
        margin-right: 10px;
    }

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

    header {
        padding: 1rem;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Mobile Tools Menu Enhancements */
    .tools-menu-header {
        padding: 1.25rem 1.5rem;
    }

    .tools-menu-logo {
        font-size: 1.2rem;
    }

    .tools-menu-close {
        width: 42px;
        height: 42px;
    }

    .tools-menu-content {
        padding: 1rem;
    }

    /* ============================================
       MODERN 2-COLUMN COMPACT GRID - MOBILE
       Apple/iOS inspired minimal design
       ============================================ */
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    /* Reset spans for mobile - all items equal size */
    .tools-grid .tool-item:nth-child(1),
    .tools-grid .tool-item:nth-child(4),
    .tools-grid .tool-item:nth-child(10) {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* Compact centered card layout */
    .tool-item {
        min-height: 100px;
        padding: 1rem 0.75rem;
        border-radius: 16px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 0.5rem;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* Centered icon - positioned at top of card */
    .tool-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 12px;
        margin-bottom: 0;
        background: rgba(255, 255, 255, 0.08);
    }

    .tool-icon svg {
        width: 22px;
        height: 22px;
    }

    /* Centered text below icon */
    .tool-info {
        flex: none;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .tool-info h3 {
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 0.15rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .tool-info p {
        font-size: 0.65rem;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        opacity: 0.6;
    }

    /* Clean touch interaction - no dramatic transforms */
    .tool-item:hover,
    .tool-item:active {
        transform: scale(0.97);
        background: rgba(255, 255, 255, 0.08);
    }

    .tool-item:hover .tool-icon,
    .tool-item:active .tool-icon {
        transform: scale(1.05);
    }
}

@media (max-width: 480px) {
    .tools-icon {
        width: 36px;
        height: 36px;
        margin-right: 8px;
    }

    .tools-icon svg {
        width: 20px;
        height: 20px;
    }

    .mobile-menu-btn {
        margin-left: 0;
    }

    header {
        padding: 0.8rem;
    }

    /* Extra small screen adjustments for tools menu */
    .tools-menu-header {
        padding: 0.875rem;
    }

    .tools-menu-logo {
        font-size: 0.95rem;
    }

    .tools-menu-content {
        padding: 0.875rem;
    }

    .tools-grid {
        gap: 0.625rem;
    }

    /* Smaller compact cards for extra small screens */
    .tool-item {
        min-height: 85px;
        padding: 0.75rem 0.5rem;
        border-radius: 14px;
    }

    .tool-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 10px;
    }

    .tool-icon svg {
        width: 18px;
        height: 18px;
    }

    .tool-info h3 {
        font-size: 0.75rem;
    }

    .tool-info p {
        font-size: 0.6rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
}

/* Hero section */
.hero {
    height: 100vh;
    width: 100%;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center,
            transparent 0%,
            rgba(var(--bg-color-rgb), 0.8) 70%);
    z-index: 0;
}

.hero-title {
    position: relative;
    z-index: 2;
    font-size: clamp(3rem, 15vw, 10rem);
    font-weight: 600;
    line-height: 0.9;
    margin-bottom: 2rem;
    max-width: 20ch;
    color: var(--text-color);
}

.hero-title .row {
    position: relative;
    overflow: visible;
    line-height: 1.1;
    margin-bottom: 0.2em;
}

.hero-title .row:last-child {
    margin-bottom: 0;
}

.hero-title .row span {
    display: block;
    transform: translateY(100%);
    opacity: 0;
    animation: titleReveal 1s var(--transition-smooth) forwards;
}

.hero-title .row:nth-child(1) span {
    animation-delay: 2.25s;
}

.hero-title .row:nth-child(2) span {
    animation-delay: 2.45s;
}

.hero-title .row:nth-child(3) span {
    animation-delay: 2.55s;
}

@keyframes titleReveal {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

.hero-subtitle {
    position: relative;
    z-index: 2;
    background: rgba(var(--bg-color-rgb), 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 1.5rem;
    border-radius: 4px;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 400;
    margin-bottom: 2rem;
    max-width: 40ch;
    overflow: hidden;
    border: 1px solid rgba(var(--text-color-rgb), 0.05);
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-subtitle:hover,
.hero-subtitle:active {
    background: rgba(var(--bg-color-rgb), 0.7);
    transform: translateY(-5px);
}

.hero-subtitle span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    animation: subtitleReveal 1s var(--transition-smooth) forwards;
    animation-delay: 0.5s;
}

@keyframes subtitleReveal {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--bg-color);
    border: none;
    border-radius: var(--border-radius-xl);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--transition-bounce);
    box-shadow: var(--shadow-glow);
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn:hover,
.btn:active {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(212, 165, 116, 0.5);
}

.btn:hover::before,
.btn:active::before {
    opacity: 1;
}

.btn span {
    position: relative;
    z-index: 2;
}

/* Project section */
.projects {
    padding: calc(var(--spacing-md) * 2) var(--spacing-md);
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center,
            transparent 0%,
            rgba(var(--bg-color-rgb), 0.8) 70%);
    z-index: 0;
}

.section-title {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 600;
    margin-bottom: 2rem;
    position: relative;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.section-title:hover,
.section-title:active {
    color: var(--secondary-color);
}

.project-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.project-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(var(--text-color-rgb), 0.1);
    position: relative;
    /* cursor: pointer; */
    transition: transform 0.3s ease, padding-left 0.3s ease, border-bottom-color 0.3s ease;
}

.project-item:hover,
.project-item:active {
    transform: translateX(10px);
    padding-left: 10px;
    border-bottom-color: rgba(var(--text-color-rgb), 0.3);
}

.project-title {
    position: relative;
    z-index: 2;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
    transition: color 0.3s ease, transform 0.3s ease;
    color: var(--text-color);
}

.project-title:hover,
.project-title:active {
    color: var(--secondary-color);
    transform: translateX(10px);
}

.project-category {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.project-item:hover .project-category,
.project-item:active .project-category {
    opacity: 1;
}

.project-item::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-item:hover::after,
.project-item:active::after {
    opacity: 0.7;
    transform: translateY(-50%) translateX(-10px);
}

/* Horizontal Scroll Section */
.horizontal-section {
    position: relative;
    overflow: hidden;
    padding: var(--spacing-lg) 0;
    margin: var(--spacing-xl) 0;
}

/* Enhanced horizontal scrolling styles */
.horizontal-section.horizontal-scroll-enabled {
    will-change: transform;
    overflow: hidden;
}

.horizontal-section.in-viewport .horizontal-content {
    will-change: transform;
}

@media (min-width: 769px) {
    .horizontal-section {
        height: 100vh;
        margin: 0;
    }

    .horizontal-content {
        display: flex;
        position: absolute;
        top: 0;
        left: 0;
        width: max-content;
        height: 100%;
        padding: var(--spacing-lg);
        will-change: transform;
        transform-style: preserve-3d;
        backface-visibility: hidden;
    }

    .horizontal-item {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 70vw;
        height: 100%;
        padding: 0 var(--spacing-md);
        margin-right: var(--spacing-md);
        will-change: transform;
    }
}

@media (max-width: 768px) {
    .horizontal-section {
        padding: var(--spacing-md) 0;
        overflow: visible;
        height: auto;
    }

    .horizontal-content {
        display: flex;
        flex-direction: column;
        position: relative;
        width: 100%;
        padding: var(--spacing-md);
        transform: none !important;
        /* Disable horizontal scrolling on mobile */
        transition: none !important;
    }

    .horizontal-item {
        width: 100%;
        margin-bottom: var(--spacing-md);
        padding: var(--spacing-sm);
        opacity: 1;
        transform: none;
    }

    .horizontal-item:last-child {
        margin-bottom: 0;
    }
}

.horizontal-title {
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-size: clamp(2rem, 8vw, 7rem);
    font-weight: 600;
    color: var(--text-color);
}

.horizontal-text {
    position: relative;
    z-index: 2;
    background: rgba(var(--bg-color-rgb), 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 1.5rem;
    border-radius: 4px;
    font-size: clamp(1rem, 2vw, 1.5rem);
    max-width: 40ch;
    border: 1px solid rgba(var(--text-color-rgb), 0.05);
    transition: background 0.3s ease, transform 0.3s ease;
}

.horizontal-text:hover,
.horizontal-text:active {
    background: rgba(var(--bg-color-rgb), 0.7);
    transform: translateY(-5px);
}

/* About section */
.about {
    padding: calc(var(--spacing-md) * 2) var(--spacing-md);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center,
            transparent 0%,
            rgba(var(--bg-color-rgb), 0.8) 70%);
    z-index: 0;
}

.about-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-text h2 {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    line-height: 1;
}

.about-text p {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 50ch;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image:hover,
.about-image:active {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.about-image:hover img,
.about-image:active img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.reveal-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    transform: translateX(0);
    transition: transform 1s var(--transition-smooth);
}

.about-image.revealed .reveal-mask {
    transform: translateX(100%);
}

/* Image hover effect */
.image-hover {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 250px;
    z-index: 98;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, filter 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.image-hover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 0.5s ease, filter 0.5s ease, opacity 0.5s ease;
    filter: grayscale(0.2) blur(2px);
    opacity: 0.85;
}

.image-hover.visible {
    opacity: 0.9;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.image-hover.visible img {
    transform: scale(1);
    filter: grayscale(0.1) blur(2px);
    opacity: 0.85;
}

.image-hover.distort img {
    animation: distortEffect 0.5s ease;
}

@keyframes distortEffect {
    0% {
        transform: scale(1.05) rotate(0deg);
        filter: blur(2px);
        opacity: 0.85;
    }

    25% {
        transform: scale(1.1) rotate(1deg);
        filter: blur(3px);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.15) rotate(-1deg);
        filter: blur(5px);
        opacity: 0.75;
    }

    75% {
        transform: scale(1.1) rotate(1deg);
        filter: blur(3px);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.05) rotate(0deg);
        filter: blur(2px);
        opacity: 0.85;
    }
}

/* Responsive adjustments for image hover */
@media (max-width: 768px) {
    .image-hover {
        width: 300px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .image-hover {
        width: 250px;
        height: 180px;
    }

    .image-hover img {
        filter: grayscale(0.1) blur(1px);
    }

    .image-hover.visible img {
        filter: grayscale(0) blur(1px);
    }
}

/* Team member hover styles */
.horizontal-item .image-hover {
    z-index: 99;
}

.horizontal-item .image-hover img {
    object-position: center top;
}

.horizontal-item:hover .image-hover,
.horizontal-item:active .image-hover {
    opacity: 0.9;
    visibility: visible;
}

/* Scroll progress with enhanced visual feedback */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--tertiary-color) 100%);
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.1s linear, height 0.3s ease;
}

.scroll-progress.glow {
    height: 4px;
    box-shadow: 0 0 10px var(--accent-color), 0 0 5px var(--accent-color);
    transition: width 0.1s linear, box-shadow 0.3s ease, height 0.3s ease;
}

/* Language switch with improved accessibility */
.language-switch {
    position: fixed;
    top: var(--spacing-md);
    right: calc(var(--spacing-md) + 200px);
    display: flex;
    gap: 0.5rem;
    z-index: 100;
}

/* Language button styles with modern design */
.language-switch a {
    font-size: var(--font-size-xs);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s var(--transition-bounce);
    opacity: 0.7;
    font-weight: 500;
    background: rgba(var(--bg-color-rgb), 0.3);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border: 1px solid rgba(var(--text-color-rgb), 0.1);
    box-shadow: var(--shadow-sm);
}

.language-switch a.active {
    opacity: 1;
    background: rgba(var(--text-color-rgb), 0.1);
    border-color: rgba(var(--text-color-rgb), 0.2);
}

.language-switch a:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Mobile Navigation - Handled by menu.css
   ============================================ */
/* All nav element styles are in menu.css for the creative fullscreen menu */

/* Language section styles for navigation */
.language-item {
    margin-top: var(--spacing-md);
}

.language-label {
    font-size: var(--font-size-sm);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.language-switch-nav {
    display: flex;
    gap: 0.5rem;
}

.language-btn-nav {
    font-size: var(--font-size-xs);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    background-color: rgba(var(--text-color-rgb), 0.1);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--text-color-rgb), 0.05);
    display: inline-block;
}

.language-btn-nav.active {
    background-color: rgba(var(--text-color-rgb), 0.2);
    font-weight: 500;
}

.language-btn-nav:hover,
.language-btn-nav:active {
    background-color: rgba(var(--text-color-rgb), 0.15);
    transform: translateY(-2px);
}

/* Enhanced menu overlay with blur effect */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--bg-color-rgb), 0.5);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

body.menu-open .menu-overlay {
    opacity: 1;
    visibility: visible;
}

/* Modern hamburger menu button */
.mobile-menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* cursor: pointer; */
    z-index: 10;
    background-color: rgba(var(--text-color-rgb), 0.08);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border: 1px solid rgba(var(--text-color-rgb), 0.05);
    transition: all 0.3s var(--transition-bounce);
    box-shadow: var(--shadow-sm);
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active {
    background-color: rgba(var(--text-color-rgb), 0.12);
    box-shadow: var(--shadow-md);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Adaptive layout for different devices */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .header-right {
        gap: 12px;
    }
}

@media (min-width: 769px) {
    .header-right {
        display: flex;
        align-items: center;
    }

    .tools-icon {
        margin-right: 0;
    }

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

/* Very small mobile devices */
@media (max-width: 360px) {
    .tools-icon {
        width: 34px;
        height: 34px;
        margin-right: 6px;
    }

    .tools-icon svg {
        width: 18px;
        height: 18px;
    }

    .logo {
        font-size: 1.2rem;
    }

    header {
        padding: 0.7rem;
    }

    .mobile-menu-btn {
        width: 36px;
        height: 36px;
    }
}

/* Landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .tools-icon {
        width: 36px;
        height: 36px;
    }

    header {
        padding: 0.7rem 1rem;
    }

    .tools-menu {
        overflow-y: auto;
    }

    nav {
        overflow-y: auto;
    }

    .nav-header {
        padding: 0.8rem var(--spacing-md);
    }

    nav ul {
        padding: 0.8rem var(--spacing-md);
    }

    nav li {
        margin-bottom: 0.5rem;
    }

    nav a {
        padding: 0.5rem 0;
    }
}

/* Footer */
footer {
    padding: calc(var(--spacing-md) * 2) var(--spacing-md) var(--spacing-md);
    position: relative;
    z-index: 1;
    background-color: rgba(var(--bg-color-rgb), 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(var(--text-color-rgb), 0.1);
}

.footer-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.footer-logo {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.footer-text {
    position: relative;
    z-index: 2;
    background: rgba(var(--bg-color-rgb), 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 1rem;
    border-radius: 4px;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    line-height: 1.6;
    max-width: 35ch;
    border: 1px solid rgba(var(--text-color-rgb), 0.05);
    transition: background 0.3s ease, transform 0.3s ease;
}

.footer-text:hover,
.footer-text:active {
    background: rgba(var(--bg-color-rgb), 0.7);
    transform: translateY(-5px);
}

.footer-links h3 {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    text-decoration: none;
    color: var(--text-color);
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.3s ease;
}

.footer-links a:hover,
.footer-links a:active {
    opacity: 1;
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-links a:hover::after,
.footer-links a:active::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.footer-bottom {
    margin-top: var(--spacing-lg);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(var(--text-color-rgb), 0.1);
    text-align: center;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    opacity: 0.6;
}

/* Landing page styles */
.landing-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: var(--spacing-md);
    position: relative;
    text-align: center;
}

.landing-title {
    font-size: clamp(3rem, 15vw, 8rem);
    font-weight: 600;
    line-height: 0.9;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    text-align: center;
    width: 100%;
}

.landing-title span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    animation: titleReveal 1s var(--transition-smooth) forwards;
}

.progress-container {
    width: 100%;
    max-width: 400px;
    height: 1px;
    background-color: rgba(var(--text-color-rgb), 0.2);
    margin-bottom: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--text-color);
    transition: width 0.05s linear;
}

.loading-text {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.loading-text:hover,
.loading-text:active {
    color: var(--secondary-color);
}

.language-options {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    justify-content: center;
}

.language-btn {
    position: relative;
    z-index: 2;
    background: rgba(var(--bg-color-rgb), 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 1rem;
    text-decoration: none;
    color: var(--text-color);
    padding: 0.8rem 2rem;
    border: 1px solid rgba(var(--text-color-rgb), 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease, transform 0.3s ease;
    border-radius: 4px;
}

.language-btn:hover,
.language-btn:active {
    color: var(--bg-color);
    transform: translateY(-3px);
    border-color: var(--text-color);
}

.language-btn.active {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

/* Background elements */
.bg-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: -1;
    will-change: transform;
}

.bg-element-1 {
    width: 300px;
    height: 300px;
    background-color: var(--secondary-color);
    top: -150px;
    right: -150px;
    animation: float 15s ease-in-out infinite;
}

.bg-element-2 {
    width: 200px;
    height: 200px;
    background-color: var(--tertiary-color);
    bottom: -100px;
    left: -100px;
    animation: float 18s ease-in-out infinite reverse;
}

.bg-element-3 {
    width: 250px;
    height: 250px;
    background-color: var(--quaternary-color);
    bottom: 20%;
    right: 10%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-5%, 5%);
    }

    50% {
        transform: translate(5%, 10%);
    }

    75% {
        transform: translate(10%, -5%);
    }
}

/* Mobile menu button styling - improved visibility */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    /* cursor: pointer; */
    z-index: 1500;
    position: relative;
}

/* Media query for mobile menu button */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        position: fixed;
        top: 20px;
        right: 20px;
        background-color: rgba(0, 0, 0, 0.5);
        padding: 12px;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .mobile-menu-btn span {
        background-color: var(--text-color);
    }
}

/* Notifications container */
.notifications {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 320px;
    pointer-events: none;
}

/* Mobile adjustments for notifications */
@media (max-width: 768px) {
    .notifications {
        top: 70px;
        max-width: 90%;
    }
}



/* Navigation header styles */
.nav-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    width: 100%;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.nav-close {
    /* cursor: pointer; */
    font-size: 1.8rem;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.nav-close:hover,
.nav-close:active {
    transform: rotate(90deg);
    color: var(--secondary-color);
}

/* Desktop navigation styles */
@media (min-width: 769px) {
    nav {
        position: relative;
        transform: none;
        max-width: none;
        height: auto;
        background-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        visibility: visible;
        box-shadow: none;
        overflow-y: visible;
        width: auto;
    }

    nav ul {
        display: flex;
        flex-direction: row;
    }

    .nav-header {
        display: none;
    }
}

/* Mobile navigation styles */
@media (max-width: 768px) {
    :root {
        --spacing-xs: 0.25rem;
        --spacing-sm: 0.5rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --font-size-xs: 0.75rem;
        --font-size-sm: 0.875rem;
        --font-size-md: 1rem;
        --font-size-lg: 1.5rem;
        --font-size-xl: 2rem;
        --font-size-xxl: 2.5rem;
    }

    body,
    html {
        overflow-x: hidden;
    }

    .container {
        padding: var(--spacing-md);
    }

    .horizontal-section {
        height: auto;
        overflow: visible;
    }

    .horizontal-content {
        position: relative;
        flex-direction: column;
        height: auto;
        width: 100%;
    }

    .horizontal-item {
        width: 100%;
        height: auto;
        padding: var(--spacing-lg) var(--spacing-md);
        margin-bottom: var(--spacing-xl);
    }

    .horizontal-title {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-md);
    }

    .horizontal-text {
        font-size: var(--font-size-md);
    }

    /* Mobile navigation is handled by menu.css */

    /* Improved language switch for mobile */
    .language-switch {
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 100;
    }

    .language-switch a {
        font-size: var(--font-size-sm);
        padding: 5px 8px;
    }

    /* Improved hero section for mobile */
    .hero {
        min-height: 100vh;
        padding: 100px var(--spacing-md) var(--spacing-xl);
    }

    .hero-title {
        font-size: var(--font-size-xxl);
        margin-bottom: var(--spacing-lg);
    }

    .hero-subtitle {
        font-size: var(--font-size-md);
        max-width: 100%;
    }

    /* Improved projects section for mobile */
    .projects {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .project-item {
        margin-bottom: var(--spacing-lg);
    }

    /* Improved about section for mobile */
    .about {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        width: 100%;
        margin-top: var(--spacing-lg);
    }

    /* Improved footer for mobile */
    footer {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .footer-content {
        flex-direction: column;
        gap: var(--spacing-xl);
    }

    .footer-links {
        width: 100%;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    :root {
        --font-size-lg: 1.25rem;
        --font-size-xl: 1.75rem;
        --font-size-xxl: 2.25rem;
    }

    .hero-title {
        font-size: var(--font-size-xxl);
    }

    .hero-subtitle {
        font-size: var(--font-size-sm);
    }

    .btn {
        font-size: var(--font-size-sm);
        padding: 8px 16px;
    }

    .section-title {
        font-size: var(--font-size-xl);
    }

    .project-title {
        font-size: var(--font-size-md);
    }

    .project-category {
        font-size: var(--font-size-xs);
    }

    .horizontal-title {
        font-size: var(--font-size-lg);
    }

    .horizontal-text {
        font-size: var(--font-size-sm);
    }

    .about-text h2 {
        font-size: var(--font-size-xl);
    }

    .about-text p {
        font-size: var(--font-size-sm);
    }

    .footer-logo {
        font-size: var(--font-size-xl);
    }

    .footer-text p {
        font-size: var(--font-size-sm);
    }

    .footer-links h3 {
        font-size: var(--font-size-md);
    }

    .footer-links a {
        font-size: var(--font-size-sm);
    }
}

/* Additional styles for text visibility and overlapping fixes */

/* Text visibility improvements */
.text-container {
    position: relative;
    z-index: 1;
    isolation: isolate;
}

/* Prevent text overlapping */
.text-layer {
    position: relative;
    z-index: 2;
    mix-blend-mode: difference;
}

/* Text contrast enhancement */
.text-contrast {
    position: relative;
    color: var(--text-color);
    mix-blend-mode: normal;
    text-shadow: none;
    transition: color 0.3s ease;
}

.text-contrast:hover,
.text-contrast:active {
    color: var(--secondary-color);
}

/* Text background for better readability */
.text-bg {
    position: relative;
    z-index: 2;
    background: rgba(var(--bg-color-rgb), 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 1.5rem;
    border-radius: 4px;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    border: 1px solid rgba(var(--text-color-rgb), 0.05);
    transition: background 0.3s ease, transform 0.3s ease;
}

.text-bg:hover,
.text-bg:active {
    background: rgba(var(--bg-color-rgb), 0.7);
    transform: translateY(-5px);
}

.text-bg::before {
    content: none;
}

/* Enhanced hero title visibility */
.hero-title {
    position: relative;
    z-index: 2;
    font-size: clamp(3rem, 15vw, 10rem);
    font-weight: 600;
    line-height: 0.9;
    margin-bottom: 2rem;
    max-width: 20ch;
    color: var(--text-color);
}

.hero-title .row {
    position: relative;
    overflow: visible;
    line-height: 1.1;
    margin-bottom: 0.2em;
}

.hero-title .row:last-child {
    margin-bottom: 0;
}

/* Improved subtitle readability */
.hero-subtitle {
    position: relative;
    z-index: 2;
    background: rgba(var(--bg-color-rgb), 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 1.5rem;
    border-radius: 4px;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 400;
    margin-bottom: 2rem;
    max-width: 40ch;
    overflow: hidden;
    border: 1px solid rgba(var(--text-color-rgb), 0.05);
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-subtitle:hover,
.hero-subtitle:active {
    background: rgba(var(--bg-color-rgb), 0.7);
    transform: translateY(-5px);
}

/* Project title improvements */
.project-title {
    position: relative;
    z-index: 2;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
    transition: color 0.3s ease, transform 0.3s ease;
    color: var(--text-color);
}

.project-title:hover,
.project-title:active {
    color: var(--secondary-color);
    transform: translateX(10px);
}

/* Section title enhancements */
.section-title {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 600;
    margin-bottom: 2rem;
    position: relative;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.section-title:hover,
.section-title:active {
    color: var(--secondary-color);
}

/* Horizontal section text improvements */
.horizontal-item {
    position: relative;
    padding: 2rem;
}

.horizontal-title {
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-size: clamp(2rem, 8vw, 7rem);
    font-weight: 600;
    color: var(--text-color);
}

.horizontal-text {
    position: relative;
    z-index: 2;
    background: rgba(var(--bg-color-rgb), 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 1.5rem;
    border-radius: 4px;
    font-size: clamp(1rem, 2vw, 1.5rem);
    max-width: 40ch;
    border: 1px solid rgba(var(--text-color-rgb), 0.05);
    transition: background 0.3s ease, transform 0.3s ease;
}

.horizontal-text:hover,
.horizontal-text:active {
    background: rgba(var(--bg-color-rgb), 0.7);
    transform: translateY(-5px);
}

/* Footer text improvements */
.footer-content {
    position: relative;
    z-index: 2;
}

.footer-text {
    position: relative;
    z-index: 2;
    background: rgba(var(--bg-color-rgb), 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 1rem;
    border-radius: 4px;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    line-height: 1.6;
    max-width: 35ch;
    border: 1px solid rgba(var(--text-color-rgb), 0.05);
    transition: background 0.3s ease, transform 0.3s ease;
}

.footer-text:hover,
.footer-text:active {
    background: rgba(var(--bg-color-rgb), 0.7);
    transform: translateY(-5px);
}

/* Navigation text improvements */
nav a {
    position: relative;
    z-index: 2;
    mix-blend-mode: difference;
}

/* Language switch improvements */
.language-btn {
    position: relative;
    z-index: 2;
    background: rgba(var(--bg-color-rgb), 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Loading text improvements */
.loading-text {
    position: relative;
    z-index: 2;
    mix-blend-mode: difference;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Mobile menu text improvements */
.mobile-menu {
    position: relative;
    z-index: 1000;
}

.mobile-menu-content {
    position: relative;
    z-index: 1001;
    background: rgba(var(--bg-color-rgb), 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Text animations refinements */
@keyframes textReveal {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Text hover effects */
.text-hover {
    position: relative;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.text-hover:hover,
.text-hover:active {
    color: var(--secondary-color);
}

/* Magnetic text effect */
.magnetic-text {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.75, 0, 0.25, 1);
}

/* Scroll-triggered text animations */
.fade-up {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.fade-up.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Text gradient effect - simplified for B&W theme */
.text-gradient {
    color: var(--text-color);
    -webkit-text-fill-color: var(--text-color);
    text-shadow: none;
    transition: opacity 0.3s ease;
}

.text-gradient:hover,
.text-gradient:active {
    filter: brightness(1.2);
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Text mask reveal effect */
.text-mask {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.text-mask span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    animation: textReveal 0.8s var(--transition-smooth) forwards;
    animation-delay: 0.3s;
}

.text-mask.revealed span {
    transform: translateY(0);
    opacity: 1;
}

.text-mask::after {
    content: none;
}

/* Responsive text adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
        padding: 0.8rem;
    }

    .section-title {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }

    .horizontal-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .horizontal-text {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        padding: 0.8rem;
    }
}

/* Dark mode text adjustments */
@media (prefers-color-scheme: dark) {
    .text-bg::before {
        background-color: rgba(0, 0, 0, 0.85);
    }

    .text-contrast {
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.1);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .text-bg::before {
        background-color: var(--bg-color);
        opacity: 0.5;
    }

    .text-contrast {
        text-shadow: none;
    }
}

/* Fix for loader positioning */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 9997;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-text {
    font-size: clamp(2rem, 7vw, 5rem);
    font-weight: 500;
    overflow: hidden;
    line-height: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    color: var(--text-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.loader-text:hover,
.loader-text:active {
    transform: scale(1.05);
    color: var(--secondary-color);
}

.counter {
    position: relative;
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 2rem;
    text-align: center;
    color: var(--text-color);
    transition: color 0.3s ease;
}

/* Additional animation for page transitions */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.6s var(--transition-smooth);
}

.page-transition.active {
    transform: translateY(0%);
}

.page-transition.exit {
    transform: translateY(-100%);
}

/* Page loaded animation */
.page-loaded .hero-title .row span {
    animation: none;
    transform: translateY(0);
    opacity: 1;
}

body.page-loaded {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Noise texture effect */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9990;
    opacity: 0.05;
    mix-blend-mode: overlay;
}

/* Fix for staggered items visibility */
.staggered-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.staggered-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fix for reveal elements */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fix for menu open state */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Fix for word and character animations */
.word {
    display: inline-block;
    overflow: hidden;
    margin-right: 0.25em;
}

.char {
    display: inline-block;
    transform: translateY(100%);
    animation: charReveal 0.5s forwards;
}

@keyframes charReveal {
    to {
        transform: translateY(0);
    }
}

/* Fix for scramble text effect */
.scramble-char {
    display: inline-block;
    color: var(--accent-color);
    opacity: 0.8;
}

/* Fix for subtitle animation */
@keyframes subtitleReveal {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

/* Fix for title animation */
@keyframes titleReveal {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

/* Custom selection color */
::selection {
    background-color: var(--secondary-color);
    color: var(--bg-color);
    text-shadow: none;
}

::-moz-selection {
    background-color: var(--secondary-color);
    color: var(--bg-color);
    text-shadow: none;
}

/* Custom selection for specific elements */
.text-gradient::selection {
    background-color: var(--tertiary-color);
    color: var(--bg-color);
    -webkit-text-fill-color: var(--bg-color);
}

.text-gradient::-moz-selection {
    background-color: var(--tertiary-color);
    color: var(--bg-color);
    -webkit-text-fill-color: var(--bg-color);
}

.hero-title::selection {
    background-color: var(--quaternary-color);
    color: var(--text-color);
}

.hero-title::-moz-selection {
    background-color: var(--quaternary-color);
    color: var(--text-color);
}

/* Selection for links */
a::selection {
    background-color: var(--tertiary-color);
    color: var(--bg-color);
}

a::-moz-selection {
    background-color: var(--tertiary-color);
    color: var(--bg-color);
}

/* Selection for code or pre elements if you have them */
code::selection,
pre::selection {
    background-color: var(--quaternary-color);
    color: var(--text-color);
}

code::-moz-selection,
pre::-moz-selection {
    background-color: var(--quaternary-color);
    color: var(--text-color);
}

/* Fix main content to prevent overflow */
main {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

@media (min-width: 1200px) {
    .horizontal-content {
        width: 400%;
    }

    .horizontal-item {
        width: 25%;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .horizontal-content {
        width: 300%;
    }

    .horizontal-item {
        width: 33.33%;
    }
}

@media (max-width: 767px) {
    .horizontal-section {
        height: auto;
        padding: var(--spacing-lg) 0;
    }

    .horizontal-content {
        position: relative;
        width: 100%;
        flex-direction: column;
        height: auto;
    }

    .horizontal-item {
        width: 100%;
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }

    .horizontal-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
}

/* Add styles for nav header */
.nav-header {
    display: none;
}

@media (max-width: 768px) {
    .nav-header {
        display: flex;
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        transition-delay: 0.05s;
    }

    nav.active .nav-header {
        opacity: 1;
        transform: translateY(0);
    }

    header {
        padding: var(--spacing-sm);
        background: rgba(var(--bg-color-rgb), 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}



/* Fix animations for mobile */
@media (max-width: 768px) {
    .staggered-item {
        transform: translateY(20px);
        opacity: 0;
        transition: transform 0.5s ease, opacity 0.5s ease;
    }

    .staggered-item.visible {
        transform: translateY(0);
        opacity: 1;
    }

    /* Fix language switch for mobile */
    .language-switch {
        position: fixed;
        top: var(--spacing-md);
        right: calc(var(--spacing-md) + 50px);
        z-index: 1000;
    }

    .language-switch a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Fix nav position for mobile */
    nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(var(--bg-color-rgb), 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        padding: calc(var(--spacing-lg) * 2) var(--spacing-md) var(--spacing-md);
        overflow-y: auto;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {

    /* Increase tap target sizes for mobile */
    a,
    button,
    .btn,
    .mobile-menu-btn,
    .nav-close,
    .language-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Adjust padding for navigation links */
    nav a {
        padding: 12px 0;
        margin: 4px 0;
    }

    /* Remove hover effects that don't work well on touch devices */
    a:hover,
    .btn:hover,
    .mobile-menu-btn:hover,
    .nav-close:hover,
    a:active,
    .btn:active,
    .mobile-menu-btn:active,
    .nav-close:active {
        transform: none !important;
    }

    /* Disable magnetic effect on touch devices */
    .magnetic {
        transform: none !important;
    }

    /* Make sure buttons have proper touch feedback */
    .btn:active,
    .mobile-menu-btn:active,
    .nav-close:active,
    .language-btn:active {
        opacity: 0.7;
    }

    /* Hide cursor on touch devices */
    /* .cursor, .cursor-follower {
        display: none !important;
    } */

    /* Improve scrolling performance */
    body {
        -webkit-overflow-scrolling: touch;
    }

    /* Fix sticky hover states on mobile */
    .project-item:hover,
    .horizontal-item:hover,
    .about-image:hover,
    .footer-links a:hover,
    .text-hover:hover,
    .text-gradient:hover,

    .progress-item:active,
    .horizontal-item:active,
    .about-image:active,
    .footer-links a:active,
    .text-hover:active,
    .text-gradient:active {
        transform: none !important;
    }
}

/* Fix for mobile viewport height issues */
.hero,
.horizontal-section {
    height: 100vh;
    /* Fallback */
    height: calc(var(--vh, 1vh) * 100);
}

@media (max-width: 768px) {
    .horizontal-section {
        height: auto;
        min-height: calc(var(--vh, 1vh) * 70);
    }
}

/* Magnetic Elements */
.magnetic {
    display: inline-block;
    position: relative;
    will-change: transform;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    /* cursor: pointer; */
    transition: transform 0.05s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.magnetic:hover,
.magnetic:active {
    z-index: 10;
}

.btn.magnetic {
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.btn.magnetic::before {
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
}

/* Improve magnetic effect on mobile */
@media (hover: none) and (pointer: coarse) {
    .magnetic span {
        transform: none !important;
        transition: none !important;
    }

    .magnetic {
        transform: none !important;
        transition: none !important;
    }

    .magnetic::after {
        display: none;
    }

    .magnetic.active {
        transform: scale(0.95) !important;
        transition: transform 0.2s ease !important;
    }
}

/* .cursor.magnetic-hover {
    background-color: rgba(var(--accent-color), 0.8);
    mix-blend-mode: difference;
    transform: translate(-50%, -50%) scale(1.2);
    filter: blur(2px) drop-shadow(0 0 8px rgba(var(--accent-color), 0.5));
}

.cursor-follower.magnetic-hover {
    border-color: rgba(var(--accent-color), 0.6);
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0.6;
    filter: blur(1px);
}

.cursor.hover.magnetic-hover {
    transform: translate(-50%, -50%) scale(1.5);
}

.cursor-follower.hover.magnetic-hover {
    transform: translate(-50%, -50%) scale(2.2);
} */

.magnetic span {
    display: inline-block;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transition: transform 0.05s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 2;
    backface-visibility: hidden;
}

.magnetic.active {
    transform: scale(0.95) !important;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.magnetic.active span {
    transform: scale(0.95) !important;
}

.btn.magnetic.active {
    transform: scale(0.95) !important;
}

.btn.magnetic span {
    position: relative;
    z-index: 2;
    backface-visibility: hidden;
}

.btn.magnetic.active::before {
    opacity: 1;
    transform: scale(1.1);
}

.magnetic::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(var(--accent-color), 0);
    opacity: 0;
    z-index: -1;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.magnetic:hover::after,
.magnetic:active::after {
    opacity: 0.5;
    box-shadow: 0 0 20px 5px rgba(var(--accent-color), 0.3);
}

.btn.magnetic:hover::after,
.btn.magnetic:active::after {
    opacity: 0.7;
    box-shadow: 0 0 30px 8px rgba(var(--accent-color), 0.4);
}

@keyframes magneticPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--accent-color), 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(var(--accent-color), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--accent-color), 0);
    }
}

.magnetic.active::after {
    animation: magneticPulse 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.btn.magnetic.active::after {
    animation: magneticPulse 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

/* Tools Menu Additional Animations - Enhanced Staggered Entrance */
.tools-menu.active .tool-item {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.tools-menu.active .tool-item:nth-child(1) {
    transition-delay: 0.05s;
}

.tools-menu.active .tool-item:nth-child(2) {
    transition-delay: 0.1s;
}

.tools-menu.active .tool-item:nth-child(3) {
    transition-delay: 0.15s;
}

.tools-menu.active .tool-item:nth-child(4) {
    transition-delay: 0.2s;
}

.tools-menu.active .tool-item:nth-child(5) {
    transition-delay: 0.25s;
}

.tools-menu.active .tool-item:nth-child(6) {
    transition-delay: 0.3s;
}

.tools-menu.active .tool-item:nth-child(7) {
    transition-delay: 0.35s;
}

.tools-menu.active .tool-item:nth-child(8) {
    transition-delay: 0.4s;
}

.tools-menu.active .tool-item:nth-child(9) {
    transition-delay: 0.45s;
}

.tools-menu.active .tool-item:nth-child(10) {
    transition-delay: 0.5s;
}

.tools-menu.active .tool-item:nth-child(11) {
    transition-delay: 0.55s;
}

.tools-menu.active .tool-item:nth-child(12) {
    transition-delay: 0.6s;
}

.tools-menu.active .tool-item:nth-child(13) {
    transition-delay: 0.65s;
}

.tools-menu.active .tool-item:nth-child(14) {
    transition-delay: 0.7s;
}

.tools-menu.active .tool-item:nth-child(15) {
    transition-delay: 0.75s;
}

.tools-menu.active .tool-item:nth-child(16) {
    transition-delay: 0.8s;
}

.tools-menu.active .tool-item:nth-child(17) {
    transition-delay: 0.85s;
}

.tools-menu.active .tool-item:nth-child(18) {
    transition-delay: 0.9s;
}

.tools-menu.active .tool-item:nth-child(19) {
    transition-delay: 0.95s;
}

.tools-menu.active .tool-item:nth-child(20) {
    transition-delay: 1s;
}

.tools-menu.active .tool-item:nth-child(21) {
    transition-delay: 1.05s;
}

.tools-menu.active .tool-item:nth-child(22) {
    transition-delay: 1.1s;
}

.tools-menu.active .tool-item:nth-child(23) {
    transition-delay: 1.15s;
}

.tools-menu.active .tool-item:nth-child(24) {
    transition-delay: 1.2s;
}

/* Tool icon glow animation override for new design */
.tool-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(142, 127, 127, 0.3) 100%);
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    filter: blur(8px);
}

.tool-item:hover .tool-icon::before,
.tool-item:active .tool-icon::before {
    opacity: 1;
}

/* Tools Icon Animation *
.tools-icon svg {
    transition: transform 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
    transform-origin: center center;
    color: var(--text-color);
    width: 22px;
    height: 22px;
    z-index: 2;
    margin: 0;
    padding: 0;
    stroke-width: 1.75;
}
*/
.tools-icon:hover svg,
.tools-icon:active svg {
    transform: translate(-50%, -50%) rotate(90deg);
    color: var(--accent-color);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--accent-color), 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(var(--accent-color), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--accent-color), 0);
    }
}

.tools-icon:hover,
.tools-icon:active {
    background-color: rgba(var(--text-color-rgb), 0.2);
    animation: pulse 1.5s infinite;
}

/* Fix for tools icon animation on hover */
/* (will-change property moved to main declaration) */

/* Ensure the tools icon is perfectly centered on mobile too *
@media (max-width: 768px) {
    .tools-icon {
        display: flex;
        position: relative;
        align-items: center;
        justify-content: center;
    }
}

/* Pulse animation for tools icon */
.tools-icon.pulse-animation {
    animation: iconPulse 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

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

/* Ensure the tools icon SVG is perfectly centered */
/* (Styles removed to avoid duplication with main declaration) */

/* Fix for Safari */
@supports (-webkit-touch-callout: none) {
    .tools-icon svg {
        transform: translate(-50%, -50%) !important;
    }

    .tools-icon:hover svg,
    .tools-icon:active svg {
        transform: translate(-50%, -50%) rotate(90deg) !important;
    }

    /* Add specific fix for tools-icon in Safari */
    .tools-icon.magnetic svg {
        transform: translate(-50%, -50%) !important;
    }

    .tools-icon.magnetic:hover svg,
    .tools-icon.magnetic:active svg {
        transform: translate(-50%, -50%) rotate(90deg) !important;
    }
}

/* Fix for Safari on mobile */
@supports (-webkit-touch-callout: none) and (max-width: 768px) {
    .tools-icon svg {
        transform: translate(-50%, -50%) !important;
    }

    /* Add Safari mobile specific fixes */
    .tools-icon.magnetic svg {
        transform: translate(-50%, -50%) !important;
    }
}

/* Accessibility - Visually hidden text */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile-specific styles for tools icon */
@media (max-width: 768px) {
    .header-right {
        gap: 8px;
    }

    .tools-icon {
        display: flex !important;
        width: 36px;
        height: 36px;
        margin-right: 10px;
        position: relative !important;
        z-index: 999 !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .tools-icon svg {
        width: 20px;
        height: 20px;
    }

    /* Adjust header layout for mobile */
    header {
        justify-content: space-between;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .logo {
        font-size: 1.5rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .tools-icon {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }

    .tools-icon svg {
        width: 18px;
        height: 18px;
    }

    header {
        padding: var(--spacing-sm) var(--spacing-sm);
    }

    .header-right {
        gap: 5px;
    }
}

/* Fix for Safari on mobile */
@supports (-webkit-touch-callout: none) and (max-width: 768px) {
    .tools-icon svg {
        transform: translate(-50%, -50%) !important;
    }
}

/* Mobile menu styles - Handled by menu.css */
/* All nav styling is in menu.css for the creative fullscreen menu */



/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    /* cursor: pointer; */
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Show mobile menu button on mobile */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
}

/* Fix for tools icon on all devices */
@media (min-width: 769px) {
    .header-right {
        display: flex;
        align-items: center;
    }

    .tools-icon {
        margin-right: 0;
    }

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

/* Fix for very small devices */
@media (max-width: 360px) {
    .tools-icon {
        width: 30px;
        height: 30px;
        margin-right: 5px;
    }

    .tools-icon svg {
        width: 16px;
        height: 16px;
    }

    .logo {
        font-size: 1.2rem;
    }

    header {
        padding: 8px 10px;
    }
}

/* Fix for landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .tools-icon {
        width: 32px;
        height: 32px;
    }

    header {
        padding: 8px 15px;
    }

    .tools-menu {
        overflow-y: auto;
    }
}

/* Update the header-right container to align items properly */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 10;
}

/* Ensure icons have consistent sizing and behavior */
.tools-icon,
.menu {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(var(--text-color-rgb), 0.05);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
    overflow: hidden;
}

.tools-icon:hover,
.tools-icon:active {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.tools-icon svg,
.menu svg {
    width: 20px;
    height: 20px;
    transition: all 0.4s var(--transition-smooth);
}

.tools-icon:hover svg,
.tools-icon:active svg {
    transform: rotate(90deg);
}

/* Specific fix for the hamburger menu SVG size */
.menu svg {
    width: 32px;
    height: 32px;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    header {
        height: 70px;
        padding: 0 var(--spacing-sm);
    }

    .header-right {
        gap: 0.5rem;
    }

    .tools-icon,
    .menu {
        width: 40px;
        height: 40px;
    }

    .tools-icon svg,
    .menu svg {
        width: 18px;
        height: 18px;
    }

    /* Disable magnetic effect on mobile for better touch UX */
    .magnetic {
        transform: none !important;
    }
}

/* Add smooth transition for hover effect */
.magnetic {
    transition: transform 0.4s var(--transition-bounce);
}

/* Ensure proper spacing between icons */
.header-right {
    gap: 1rem;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .header-right {
        gap: 8px;
    }

    .mobile-menu-btn,
    .tools-icon {
        transform: none !important;
        /* Disable magnetic effect on mobile */
    }
}

/* Team section with improved horizontal scrolling */
.team-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.team-section .section-title {
    z-index: 10;
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
}

.team-section .horizontal-content {
    position: absolute;
    top: 80px;
    left: 0;
    width: max-content;
    height: calc(100% - 80px);
    display: flex;
    align-items: center;
    padding: 2rem 10vw 2rem;
    will-change: transform;
}

.team-section .horizontal-item {
    min-width: 450px;
    width: 35vw;
    max-width: 550px;
    height: auto;
    max-height: 80vh;
    margin-right: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(var(--bg-color-rgb), 0.3);
    border: 1px solid rgba(var(--text-color-rgb), 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    overflow-y: auto;
}

.team-section .horizontal-item:hover,
.team-section .horizontal-item:active {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    background: rgba(var(--bg-color-rgb), 0.5);
}

.team-section .horizontal-item:last-child {
    margin-right: 10vw;
}

.team-member .member-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(var(--accent-color-rgb), 0.7);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    flex-shrink: 0;
}

.team-member:hover .member-image,
.team-member:active .member-image {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.team-member .member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .member-image img,
.team-member:active .member-image img {
    transform: scale(1.1);
}

.team-member .horizontal-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
    margin-bottom: 1rem;
}

.team-member .horizontal-text {
    text-align: center;
    max-width: 100%;
    overflow-y: auto;
    padding-right: 5px;
}

.team-member .horizontal-text::-webkit-scrollbar {
    width: 4px;
}

.team-member .horizontal-text::-webkit-scrollbar-thumb {
    background-color: rgba(var(--text-color-rgb), 0.2);
    border-radius: 2px;
}

.team-member .horizontal-text::-webkit-scrollbar-track {
    background-color: rgba(var(--bg-color-rgb), 0.1);
}

.team-section .scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(var(--bg-color-rgb), 0.7);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: bounce 2s infinite;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Improved horizontal section scrolling for all screens */
@media (min-width: 769px) {
    .horizontal-section {
        height: 100vh;
        overflow: hidden;
    }

    .horizontal-content {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        will-change: transform;
    }

    .horizontal-item {
        position: relative;
        padding: 2rem;
        width: 25%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        will-change: transform;
    }
}

/* Mobile styles for team section */
@media (max-width: 768px) {
    .team-section {
        height: auto;
        min-height: unset;
        padding: 2rem 0;
    }

    .team-section .horizontal-content {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0 var(--spacing-md);
        left: unset;
        transform: none !important;
    }

    .team-section .horizontal-item {
        width: 100%;
        min-width: unset;
        max-width: unset;
        margin-right: 0;
        margin-bottom: 2rem;
    }

    .team-member .member-image {
        width: 150px;
        height: 150px;
    }

    .team-section .scroll-indicator {
        display: none;
    }
}

/* Notification styles */
.notification {
    background-color: rgba(245, 245, 245, 0.85);
    color: var(--text-color);
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    overflow: hidden;
    transform-origin: top;
    animation: notifSlideIn 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    will-change: transform, opacity;
    touch-action: pan-x pan-y;
}

@media (prefers-color-scheme: dark) {
    .notification {
        background-color: rgba(58, 58, 60, 0.85);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .notification span,
    .notification-app-name,
    .notification-content {
        color: #ffffff;
    }

    .notification-time {
        color: rgba(255, 255, 255, 0.6);
    }
}

/* Notification header with app icon, name and time */
.notification-header {
    display: flex;
    align-items: center;
    padding: 10px 12px 4px;
}

/* App icon styles */
.notification-app-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    margin-right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Success notification icon */
.notification.success .notification-app-icon {
    background: linear-gradient(135deg, #34c759, #30d158);
}

/* Error notification icon */
.notification.error .notification-app-icon {
    background: linear-gradient(135deg, #ff453a, #ff3b30);
}

/* Info notification icon */
.notification.info .notification-app-icon {
    background: linear-gradient(135deg, #007aff, #0a84ff);
}

/* App name styles */
.notification-app-name {
    font-weight: 600;
    font-size: 11px;
}

/* Time display styles */
.notification-time {
    margin-left: auto;
    font-size: 10px;
    color: var(--tertiary-color);
}

/* Notification content area */
.notification-content {
    padding: 2px 12px 10px;
}

/* Text inside notification */
.notification span {
    font-size: 12px;
    line-height: 1.3;
    display: block;
}

/* Close button styles */
.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--tertiary-color);
    opacity: 0.7;
    /* cursor: pointer; */
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    padding: 0;
    z-index: 5;
}

/* Close button hover effect */
.notification-close:hover,
.notification-close:active {
    background-color: rgba(0, 0, 0, 0.05);
    opacity: 1;
}

/* Animation for sliding in */
@keyframes notifSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.96);
    }

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

/* Hiding animation */
.notification.hide {
    animation: notifSlideOut 0.3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Animation for sliding out */
@keyframes notifSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.96);
    }
}

/* Only prevent scroll when menus are open */
body.menu-open,
body.tools-menu-open {
    overflow: hidden !important;
}

/* Tools menu open state */
.tools-menu-open {
    overflow: hidden !important;
}

/* Only prevent scrolling when appropriate classes are active */
html.tools-menu-open,
body.tools-menu-open {
    overflow: hidden !important;
    height: 100% !important;
}

.tools-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(var(--accent-color-rgb), 0.15) 0%, rgba(var(--accent-color-rgb), 0) 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 0;
}

.tools-icon:hover::before,
.tools-icon:active::before {
    opacity: 1;
    transform: scale(1.5);
}

.tools-icon:hover,
.tools-icon:active {
    background-color: rgba(var(--text-color-rgb), 0.12);
    animation: pulse 1.5s infinite;
    box-shadow: var(--shadow-md);
    border-color: rgba(var(--text-color-rgb), 0.1);
}

/* --- Fix: Always show both cursors on desktop --- */
/* @media (hover: hover) and (pointer: fine) {
    .cursor, .cursor-follower {
      display: block !important;
    }
    body, html, * {
      cursor: auto !important;
    }
  } */

/* ========================================
   VRINDOPNISHAD STORYTELLING SECTIONS
   ======================================== */

/* Story Section */
/* Story Section with Dashboard Layout */
.story-section {
    padding: calc(var(--spacing-xl) * 2) var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.story-section::before {
    display: none;
}

.story-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    background: var(--card-bg);
    border-radius: var(--border-radius-xl);
    border: var(--glass-border);
    backdrop-filter: var(--blur-effect);
    box-shadow: var(--shadow-lg);
}

.story-header {
    text-align: left;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.story-header .content__title {
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 1;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.story-text p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
    opacity: 0.9;
}

.story-text p strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.story-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-image:hover img,
.story-image:active img {
    transform: scale(1.05);
}

/* Mobile story section */
@media (max-width: 768px) {
    .story-section {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .story-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .story-image {
        order: -1;
    }
}

/* Project Cards Grid */
.vrinda-projects {
    padding: calc(var(--spacing-xl) * 2) var(--spacing-md);
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.7;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.vrinda-projects .section-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.project-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: var(--glass-border);
    transition: all 0.4s var(--transition-bounce);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    box-shadow: var(--shadow-md);
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    pointer-events: none;
}

.project-card:hover,
.project-card:active {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-glow);
    border-color: rgba(212, 165, 116, 0.3);
}

.project-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.project-card:hover .project-card-image img,
.project-card:active .project-card-image img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.project-card-content {
    padding: var(--spacing-md);
}

.project-card .project-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.project-card:hover .project-title,
.project-card:active .project-title {
    color: var(--secondary-color);
}

.project-card .project-category {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    opacity: 0.6;
    margin-bottom: var(--spacing-sm);
}

.project-card .project-description {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: var(--spacing-md);
}

.project-card-link {
    display: inline-block;
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
}

/* Legacy projects styling */
.legacy-projects {
    padding: var(--spacing-xl) var(--spacing-md);
    background: rgba(var(--text-color-rgb), 0.02);
}

.legacy-projects .section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* Responsive project cards */
@media (max-width: 1024px) {
    .project-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .project-cards-grid {
        grid-template-columns: 1fr;
    }

    .project-card-image {
        aspect-ratio: 16/9;
    }

    .vrinda-projects {
        padding: var(--spacing-xl) var(--spacing-md);
    }
}

/* Services Section */
.services-section {
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: var(--border-radius-md);
    transition: all 0.3s var(--transition-smooth);
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.service-card:hover,
.service-card:active {
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(139, 115, 85, 0.05) 100%);
    border-color: rgba(212, 165, 116, 0.3);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--secondary-color), 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.service-icon svg {
    width: 24px;
    height: 24px;
    color: var(--secondary-color);
}

.service-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.service-info p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

/* Content title styles for split text animations */
.content__title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2rem, 10vw, 8rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.content__title span {
    display: inline-block;
}

/* Font variations for typography effects */
.font-1 {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

.font-2 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
}

.font-3 {
    font-family: 'Laila', serif;
    font-weight: 600;
}

.font-4 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.font-5 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.font-6 {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-style: italic;
}

.font-7 {
    font-family: 'Laila', serif;
    font-weight: 300;
}

.font-8 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.font-9 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.font-10 {
    font-family: 'Laila', serif;
}

.font-11 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.font-12 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
}

.font-larger {
    font-size: 1.5em;
}

.font-medium {
    font-size: 0.8em;
}

.font-upper {
    text-transform: uppercase;
}

.font-sub {
    display: block;
    font-size: 0.4em;
    margin-top: 0.5em;
}

.font-height {
    line-height: 1.2;
}

/* Character wrap for animations */
.char-wrap {
    display: inline-block;
    overflow: hidden;
}

/* ========================================
   LIQUID GLASS EFFECTS - iOS/Apple Inspired
   ======================================== */

/* Liquid Glass Container Base */
.liquid-glass {
    position: relative;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

/* Inner Light Reflection */
.liquid-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0) 100%);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 50% 50%;
    pointer-events: none;
}

/* Edge Refraction Glow */
.liquid-glass::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--border-radius-lg);
    padding: 1px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0) 60%,
            rgba(255, 255, 255, 0.2) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ========================================
   GLASSY BUTTON - Premium Interaction
   ======================================== */

.btn-glass {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--bg-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg,
            rgba(212, 165, 116, 0.9) 0%,
            rgba(139, 115, 85, 0.9) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s var(--transition-bounce);
    box-shadow:
        0 4px 15px rgba(212, 165, 116, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Glass Button Shine Effect */
.btn-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: left 0.5s ease;
}

.btn-glass:hover::before,
.btn-glass:active::before {
    left: 100%;
}

.btn-glass:hover,
.btn-glass:active {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(212, 165, 116, 0.4),
        0 0 30px rgba(201, 166, 107, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-glass:active {
    transform: translateY(-1px) scale(0.98);
}

/* Glass Button Ring Glow */
.btn-glass::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.5), rgba(139, 115, 85, 0.3));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(8px);
}

.btn-glass:hover::after,
.btn-glass:active::after {
    opacity: 1;
}

/* ========================================
   GLASS CARDS - Enhanced Depth
   ======================================== */

.glass-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-lg);
    transition: all 0.4s var(--transition-smooth);
    overflow: hidden;
}

/* Card Ambient Light */
.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%,
            rgba(212, 165, 116, 0.1) 0%,
            transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.glass-card:hover::before,
.glass-card:active::before {
    opacity: 1;
}

.glass-card:hover,
.glass-card:active {
    transform: translateY(-8px);
    border-color: rgba(212, 165, 116, 0.3);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(212, 165, 116, 0.15);
}

/* ========================================
   SPEECH BUBBLE - Chat UI Style
   ======================================== */

.speech-bubble {
    position: relative;
    background: linear-gradient(135deg,
            rgba(212, 165, 116, 0.9) 0%,
            rgba(139, 115, 85, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px 20px 20px 4px;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    max-width: 80%;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.speech-bubble.right {
    border-radius: 20px 20px 4px 20px;
    background: linear-gradient(135deg,
            rgba(30, 41, 59, 0.9) 0%,
            rgba(51, 65, 85, 0.9) 100%);
    margin-left: auto;
}

/* Bubble Tail */
.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -8px;
    width: 20px;
    height: 20px;
    background: inherit;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.speech-bubble.right::after {
    left: auto;
    right: -8px;
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

/* ========================================
   DASHBOARD STAT CARDS - CRM Style
   ======================================== */

.stat-card {
    position: relative;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    transition: all 0.3s var(--transition-smooth);
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before,
.stat-card:active::before {
    opacity: 1;
}

.stat-card:hover,
.stat-card:active {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-value {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 0.5rem;
}

.stat-card .stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--font-size-xs);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-top: 0.75rem;
}

.stat-card .stat-trend.positive {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.stat-card .stat-trend.negative {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* ========================================
   ANIMATED GRADIENT BORDER
   ======================================== */

@keyframes gradient-rotate {
    0% {
        --gradient-angle: 0deg;
    }

    100% {
        --gradient-angle: 360deg;
    }
}

.gradient-border {
    position: relative;
    background: var(--bg-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg);
    padding: 2px;
    background: linear-gradient(135deg,
            #6366f1,
            #8b5cf6,
            #ec4899,
            #f43f5e,
            #6366f1);
    background-size: 300% 300%;
    animation: gradient-shift 4s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ========================================
   FLOATING LABELS WITH GLASS
   ======================================== */

.glass-input-group {
    position: relative;
    margin-bottom: var(--spacing-md);
}

.glass-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    color: var(--text-color);
    font-size: var(--font-size-md);
    transition: all 0.3s ease;
    outline: none;
}

.glass-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.2);
}

.glass-input::placeholder {
    color: rgba(var(--text-color-rgb), 0.5);
}

/* ========================================
   ICON CONTAINERS - Glowy Effect
   ======================================== */

.icon-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg,
            rgba(212, 165, 116, 0.2) 0%,
            rgba(139, 115, 85, 0.1) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 16px;
    color: var(--accent-color);
    transition: all 0.3s var(--transition-bounce);
}

.icon-glass:hover,
.icon-glass:active {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 25px rgba(212, 165, 116, 0.4);
    border-color: rgba(212, 165, 116, 0.4);
}

.icon-glass svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   APPLY GLASS TO EXISTING ELEMENTS
   ======================================== */

/* Enhanced Header */
header {
    background: rgba(var(--bg-color-rgb), 0.7) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Enhanced Footer */
footer {
    background: rgba(var(--bg-color-rgb), 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Tools Menu Glass Enhancement - Works with new bento design */
/* The new tools-menu already has premium glassmorphism styling,
   these styles are kept for compatibility but should not override */

/* Horizontal Section Cards */
.horizontal-item {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
}

/* ========== App Download Section ========== */
.download-section {
    padding: var(--spacing-lg) var(--spacing-md);
    background: var(--bg-color);
}

.download-container {
    max-width: 1200px;
    margin: 0 auto;
}

.download-section .section-title {
    margin-bottom: 0.5rem;
}

.download-section .section-subtitle {
    margin-bottom: var(--spacing-md);
}

.app-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 480px) {
    .app-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.app-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
}

.app-card:hover,
.app-card:active {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.app-card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(var(--text-color-rgb), 0.05);
    border: 1px solid var(--card-border);
}

.app-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-card-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.app-card-info p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.app-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    background: rgba(var(--text-color-rgb), 0.08);
    border-radius: 20px;
    opacity: 0.6;
    margin-bottom: 1rem;
}

.app-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--text-color);
    color: var(--bg-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.app-download-btn:hover,
.app-download-btn:active {
    transform: scale(1.02);
    opacity: 0.9;
}

.app-download-btn svg {
    width: 16px;
    height: 16px;
}

/* ========== Modern Bento Grid Section ========== */
.bento-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--bg-color);
}

.bento-container {
    max-width: 1200px;
    margin: 0 auto;
}

.bento-header {
    margin-bottom: var(--spacing-lg);
}

.bento-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.4;
    margin-bottom: 0.5rem;
}

.bento-title {
    font-size: clamp(3rem, 12vw, 6rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.03em;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--card-border);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.bento-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    min-height: 180px;
    background: var(--bg-color);
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card:hover,
.bento-card:active {
    background: rgba(var(--text-color-rgb), 0.03);
}

.bento-card:hover .bento-arrow,
.bento-card:active .bento-arrow {
    transform: translateX(8px);
    opacity: 1;
}

.bento-card:hover .bento-number,
.bento-card:active .bento-number {
    opacity: 0.15;
    transform: scale(1.1);
}

.bento-number {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    font-weight: 800;
    opacity: 0.06;
    line-height: 1;
    transition: all 0.4s ease;
    pointer-events: none;
}

.bento-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.bento-content p {
    font-size: 0.9rem;
    opacity: 0.6;
    line-height: 1.4;
    max-width: 30ch;
}

.bento-arrow {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    font-size: 1.5rem;
    opacity: 0.3;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero card - spans full width */
.bento-hero {
    min-height: 220px;
}

.bento-hero .bento-content h3 {
    font-size: 2rem;
}

.bento-hero .bento-number {
    font-size: 6rem;
}

/* Wide card */
.bento-wide {
    grid-column: 1;
}

/* Responsive grid */
@media (min-width: 480px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-hero {
        grid-column: 1 / -1;
    }

    .bento-wide {
        grid-column: 1 / -1;
    }
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bento-hero {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
        min-height: 100%;
    }

    .bento-wide {
        grid-column: span 2;
    }
}

/* ========== Modern Apps Section ========== */
.apps-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--bg-color);
}

.apps-container {
    max-width: 1200px;
    margin: 0 auto;
}

.apps-header {
    margin-bottom: var(--spacing-lg);
}

.apps-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.4;
    margin-bottom: 0.5rem;
}

.apps-title {
    font-size: clamp(3rem, 12vw, 6rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.03em;
}

.apps-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--card-border);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.apps-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-color);
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.apps-card:hover,
.apps-card:active {
    background: rgba(var(--text-color-rgb), 0.03);
}

.apps-card:hover .apps-cta span,
.apps-card:active .apps-cta span {
    transform: translateX(4px);
}

.apps-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    background: var(--text-color);
    color: var(--bg-color);
}

.apps-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(var(--text-color-rgb), 0.05);
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease;
}

.apps-card:hover .apps-icon,
.apps-card:active .apps-icon {
    transform: scale(1.05) rotate(-2deg);
}

.apps-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apps-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.apps-info p {
    font-size: 0.85rem;
    opacity: 0.5;
    line-height: 1.3;
}

.apps-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.apps-platform {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    background: rgba(var(--text-color-rgb), 0.08);
}

.apps-platform.apps-web {
    background: transparent;
    border: 1px solid var(--card-border);
}

.apps-size {
    font-size: 0.65rem;
    opacity: 0.4;
    padding: 0.3rem 0;
}

.apps-cta {
    margin-top: auto;
}

.apps-cta span {
    display: inline-block;
    font-size: 1.2rem;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.apps-card:hover .apps-cta span,
.apps-card:active .apps-cta span {
    opacity: 1;
}

/* Featured app card */
.apps-featured {
    grid-column: 1 / -1;
    padding: 2rem;
}

.apps-featured .apps-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
}

.apps-featured .apps-info h3 {
    font-size: 1.8rem;
}

.apps-featured .apps-cta span {
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive grid */
@media (min-width: 480px) {
    .apps-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .apps-featured {
        grid-column: 1 / -1;
    }
}

@media (min-width: 768px) {
    .apps-bento {
        grid-template-columns: repeat(3, 1fr);
    }

    .apps-featured {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }
}

/* ========== Universe / About Section ========== */
.universe-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--bg-color);
    overflow: hidden;
}

.universe-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.universe-visual {
    position: relative;
}

.universe-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.universe-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.universe-visual:hover .universe-image-wrapper img,
.universe-visual:active .universe-image-wrapper img {
    filter: grayscale(0%);
}

.universe-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-color) 0%, transparent 50%);
    pointer-events: none;
}

.universe-badge {
    position: absolute;
    bottom: -1.5rem;
    right: 2rem;
    background: var(--text-color);
    color: var(--bg-color);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.universe-year {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    opacity: 0.6;
}

.universe-year-num {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.universe-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.universe-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.4;
}

.universe-title {
    font-size: clamp(2.5rem, 10vw, 5rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.03em;
}

.universe-quote {
    position: relative;
    padding-left: 2rem;
}

.quote-mark {
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 4rem;
    font-weight: 700;
    opacity: 0.1;
    line-height: 1;
}

.universe-quote p {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.7;
    line-height: 1.4;
}

.universe-text p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.6;
}

.universe-stats {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-num {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.4;
}

.universe-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.universe-cta:hover,
.universe-cta:active {
    gap: 1rem;
}

.universe-cta .cta-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.universe-cta:hover .cta-arrow,
.universe-cta:active .cta-arrow {
    transform: translateX(4px);
}

/* Desktop layout */
@media (min-width: 768px) {
    .universe-container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .universe-image-wrapper {
        aspect-ratio: 3/4;
    }

    .universe-badge {
        bottom: 2rem;
        right: -1.5rem;
    }
}

/* ========== Values Section ========== */
.values-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--bg-color);
}

.values-container {
    max-width: 1200px;
    margin: 0 auto;
}

.values-header {
    margin-bottom: var(--spacing-lg);
}

.values-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.4;
    margin-bottom: 0.5rem;
}

.values-title {
    font-size: clamp(3rem, 12vw, 6rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.03em;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--card-border);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.value-card {
    position: relative;
    padding: 2rem;
    background: var(--bg-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card:hover,
.value-card:active {
    background: rgba(var(--text-color-rgb), 0.03);
}

.value-card:hover .value-icon,
.value-card:active .value-icon {
    transform: scale(1.1) rotate(-5deg);
}

.value-card:hover .value-num,
.value-card:active .value-num {
    opacity: 0.15;
}

.value-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
}

.value-icon svg {
    width: 32px;
    height: 32px;
    opacity: 0.8;
}

.value-num {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 3rem;
    font-weight: 800;
    opacity: 0.06;
    line-height: 1;
    transition: opacity 0.4s ease;
}

.value-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.value-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.6;
    max-width: 35ch;
}

/* Featured card */
.value-featured {
    min-height: 280px;
}

/* Wide card */
.value-wide {
    grid-column: 1;
}

/* Responsive grid */
@media (min-width: 480px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .value-featured {
        grid-column: 1 / -1;
    }

    .value-wide {
        grid-column: 1 / -1;
    }
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .value-featured {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }

    .value-wide {
        grid-column: span 2;
    }
}

/* ========== Project Info Panel Modal ========== */
.project-info-panel {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-info-panel.active {
    opacity: 1;
    visibility: visible;
}

.project-info-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.project-info-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: var(--bg-color);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-info-panel.active .project-info-content {
    transform: translateY(0) scale(1);
}

.project-info-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-info-close:hover,
.project-info-close:active {
    background: var(--text-color);
    color: var(--bg-color);
    transform: rotate(90deg);
}

.project-info-close svg {
    width: 18px;
    height: 18px;
}

.project-info-image-container {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: rgba(var(--text-color-rgb), 0.05);
}

.project-info-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info-details {
    padding: 2rem;
}

.project-info-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.4;
    margin-bottom: 0.5rem;
}

.project-info-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.project-info-category {
    font-size: 0.85rem;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.project-info-description {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.project-info-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--text-color);
    color: var(--bg-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-info-link:hover,
.project-info-link:active {
    gap: 0.75rem;
    transform: translateX(4px);
}

.project-info-link .link-arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.project-info-link:hover .link-arrow,
.project-info-link:active .link-arrow {
    transform: translateX(2px);
}

/* ========== Projects Showcase Section ========== */
.showcase-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--bg-color);
}

.showcase-container {
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-header {
    margin-bottom: var(--spacing-lg);
}

.showcase-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.4;
    margin-bottom: 0.5rem;
}

.showcase-title {
    font-size: clamp(3rem, 12vw, 6rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.showcase-subtitle {
    font-size: 1rem;
    opacity: 0.5;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.showcase-card {
    display: block;
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-card:hover,
.showcase-card:active {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.showcase-card:hover .showcase-image img,
.showcase-card:active .showcase-image img {
    transform: scale(1.05);
}

.showcase-card:hover .showcase-cta .cta-icon,
.showcase-card:active .showcase-cta .cta-icon {
    transform: translateX(4px);
}

.showcase-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 85%);
    pointer-events: none;
}

.showcase-content {
    position: absolute;
    inset: 0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}

.showcase-num {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3rem;
    font-weight: 800;
    opacity: 0.2;
    line-height: 1;
}

.showcase-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.showcase-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.showcase-info p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
}

.showcase-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.showcase-cta .cta-icon {
    transition: transform 0.3s ease;
}

/* Featured card */
.showcase-featured .showcase-image {
    aspect-ratio: 16/9;
}

.showcase-featured .showcase-info h3 {
    font-size: 2rem;
}

/* Responsive grid */
@media (min-width: 768px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase-featured {
        grid-column: 1 / -1;
    }
}

/* ========== More Creations Section ========== */
.more-section {
    padding: var(--spacing-lg) var(--spacing-md);
    background: var(--bg-color);
}

.more-container {
    max-width: 1200px;
    margin: 0 auto;
}

.more-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
}

.more-grid {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--card-border);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.more-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-color);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.more-item:hover,
.more-item:active {
    background: rgba(var(--text-color-rgb), 0.03);
}

.more-item:hover .more-arrow,
.more-item:active .more-arrow {
    transform: translateX(4px);
    opacity: 1;
}

.more-num {
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 0.15;
    min-width: 2.5rem;
}

.more-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.more-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.more-cat {
    font-size: 0.85rem;
    opacity: 0.5;
}

.more-arrow {
    font-size: 1.2rem;
    opacity: 0.3;
    transition: all 0.3s ease;
}

/* ========== Our Story Section ========== */
.story-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--bg-color);
    overflow: hidden;
}

.story-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.story-visual {
    position: relative;
}

.story-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.story-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: filter 0.5s ease;
}

.story-visual:hover .story-image-wrapper img,
.story-visual:active .story-image-wrapper img {
    filter: grayscale(0%);
}

.story-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.story-year-badge {
    position: absolute;
    bottom: -1rem;
    left: 2rem;
    background: var(--text-color);
    color: var(--bg-color);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.year-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    opacity: 0.6;
}

.year-num {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.story-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.story-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.4;
}

.story-title {
    font-size: clamp(2.5rem, 10vw, 5rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.03em;
}

.story-blocks {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1rem 0;
}

.story-block {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(var(--text-color-rgb), 0.02);
    border-radius: var(--border-radius-md);
    border-left: 3px solid var(--card-border);
    transition: all 0.3s ease;
}

.story-block:hover,
.story-block:active {
    border-left-color: var(--text-color);
    background: rgba(var(--text-color-rgb), 0.04);
}

.block-marker {
    font-size: 1.2rem;
    font-weight: 700;
    opacity: 0.2;
    min-width: 2rem;
}

.block-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.block-text p {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.7;
}

.block-text strong {
    opacity: 1;
}

.story-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}

.story-cta:hover,
.story-cta:active {
    gap: 0.75rem;
}

.story-cta .cta-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.story-cta:hover .cta-arrow,
.story-cta:active .cta-arrow {
    transform: translateX(4px);
}

/* Desktop layout */
@media (min-width: 768px) {
    .story-container {
        grid-template-columns: 1fr 1.2fr;
        align-items: start;
    }

    .story-image-wrapper {
        aspect-ratio: 3/4;
    }

    .story-year-badge {
        bottom: 2rem;
        left: -1.5rem;
    }
}

/* ========== Hero Section - Modern Design ========== */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem var(--spacing-md) 4rem;
    background: var(--bg-color);
    overflow: hidden;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Hero Background Image Styles */
.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(1px) brightness(0.8) grayscale(10%);
    opacity: 0.2;
    transform: scale(1.02);
    transition: transform 2s var(--transition-smooth), opacity 1s ease;
    will-change: transform;
}

.hero-section:hover .hero-image,
.hero-section:active .hero-image {
    transform: scale(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(var(--bg-color-rgb), 0.8) 0%,
            transparent 20%,
            transparent 80%,
            var(--bg-color) 100%),
        radial-gradient(circle at center, transparent 0%, var(--bg-color) 90%);
    z-index: 1;
}

/* Decorative Elements */
.v-hero-decor {
    position: absolute;
    top: 100px;
    /* Below header */
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
}

.v-decor-line {
    position: absolute;
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--card-border), transparent);
    left: 50%;
    top: -40px;
    opacity: 0.2;
}

.v-decor-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-color);
    left: 50%;
    top: 40px;
    transform: translateX(-50%);
    opacity: 0.15;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(var(--text-color-rgb), 0.05);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Title */
.hero-title {
    margin-bottom: 1.5rem;
}

.title-row {
    display: block;
}

.title-small {
    display: inline-block;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.title-main {
    display: block;
    font-size: clamp(3rem, 12vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.9;
}

/* Tagline */
.hero-tagline {
    margin-bottom: 1rem;
}

.hero-tagline p {
    font-size: 1.2rem;
    opacity: 0.7;
}

.hero-tagline strong {
    opacity: 1;
    font-weight: 600;
}

/* Description */
.hero-description {
    margin-bottom: 2rem;
}

.hero-description p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.5;
    max-width: 500px;
    margin: 0 auto;
}

/* CTA Group */
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-btn-primary {
    background: var(--text-color);
    color: var(--bg-color);
}

.hero-btn-primary:hover,
.hero-btn-primary:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-btn-primary:hover .btn-arrow,
.hero-btn-primary:active .btn-arrow {
    transform: translateX(4px);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.hero-btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--card-border);
}

.hero-btn-secondary:hover,
.hero-btn-secondary:active {
    background: rgba(var(--text-color-rgb), 0.05);
}

/* Stats Strip */
.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: rgba(var(--text-color-rgb), 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.hero-stats .stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.hero-stats .stat-text {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.4;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--card-border);
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-scroll span {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.4;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-color), transparent);
    opacity: 0.3;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.3;
    }

    50% {
        transform: scaleY(0.5);
        opacity: 0.1;
    }
}