@import url('./variables.css');

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans, 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 18px;
    line-height: 1.65;
    background-color: var(--color-dark-base, #f8fafc);
    color: var(--color-text-primary, #0f172a);
    overflow-x: hidden;
    cursor: auto; 
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode Backgrounds and Colors */
html.dark body {
    background-color: var(--color-dark-base, #0b0f17);
    color: var(--color-text-primary, #f3f4f6);
}

/* Responsive Utility Classes */
@media (min-width: 1024px) {
    .text-display { font-size: 84px !important; }
    .text-headline-lg { font-size: 52px !important; }
    .text-headline-md { font-size: 36px !important; }
}

.white-card {
    background: var(--color-dark-surface, #ffffff);
    border: 1px solid var(--color-border, rgba(15, 23, 42, 0.08));
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.05));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html.dark .white-card {
    background: var(--color-dark-surface, #121824);
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.2));
}

.primary-glow {
    box-shadow: 0 4px 14px var(--color-red-glow, rgba(252, 62, 15, 0.25));
}
.primary-glow:hover {
    box-shadow: 0 6px 20px var(--color-red-glow, rgba(252, 62, 15, 0.4));
}

.atmosphere-gradient {
    display: none;
}

html.dark .atmosphere-gradient {
    display: none;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
html.dark ::-webkit-scrollbar-track {
    background: #0b0f17;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
html.dark ::-webkit-scrollbar-thumb {
    background: #182030;
}
::-webkit-scrollbar-thumb:hover {
    background: #fc3e0f;
}

/* Mouse Follower Styling */
#mouse-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: #fc3e0f;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1), height 0.3s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.3s ease, opacity 0.3s ease;
    transform: translate(-50%, -50%);
    opacity: 0;
}

@media (hover: none) {
    #mouse-follower { display: none; }
}

#mouse-follower.expanded {
    width: 100px;
    height: 100px;
    background-color: white;
    mix-blend-mode: difference;
}

#mouse-follower.hero-xray-active {
    width: 240px;
    height: 240px;
    background-color: transparent;
    border: 2px solid rgba(252, 62, 15, 0.8);
    box-shadow: 0 0 25px rgba(252, 62, 15, 0.5), inset 0 0 15px rgba(252, 62, 15, 0.3);
    backdrop-filter: brightness(1.2) contrast(1.1);
    mix-blend-mode: normal;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.mobile-nav-active {
    overflow: hidden;
}

#mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    transform: translateX(0);
}

/* Glow and micro-animations */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -6px rgba(252, 62, 15, 0.12);
}
html.dark .hover-lift:hover {
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.6);
}

/* Smooth active state for links */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: #fc3e0f;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Project Screenshot Hover-to-Scroll Effect */
.project-scroll-card {
    position: relative;
    overflow: hidden;
}

.project-scroll-img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    max-width: none !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    will-change: transform;
}
