/* Laravel 12 Design System - Typography & Colors */
/* Using Inter font family (Laravel standard) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    /* Prevent scroll freeze */
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent scroll freeze */
    overflow-x: hidden;
    position: relative;
    /* Note: transform removed - it broke position:fixed (e.g. WhatsApp button) by creating a containing block */
}

/* Laravel Typography Scale */
/* Base font size: 16px (1rem) */
/* Using Laravel's standard Inter font with Tailwind's type scale */

/* Custom Utilities */
.text-gradient {
    background: linear-gradient(135deg, #f97316 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-mesh {
    background-image: 
        radial-gradient(at 40% 20%, rgba(249, 115, 22, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(6, 182, 212, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(249, 115, 22, 0.1) 0px, transparent 50%);
}

/* Hero section: earth globe + visual frame */
.hero-section {
    isolation: isolate;
}
.hero-visual-frame {
    transition: box-shadow 0.4s ease, border-color 0.3s ease;
}
.hero-visual-frame:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(249, 115, 22, 0.1), 0 0 0 1px rgba(6, 182, 212, 0.05);
    border-color: rgba(249, 115, 22, 0.2);
}

/* Hero earth globe: circular shape (globe) – no square edges */
.hero-globe-wrap {
    isolation: isolate;
    /* Circle mask: visible only inside a circle, like a globe */
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 48%, transparent 50%);
    mask-image: radial-gradient(circle at 50% 50%, black 48%, transparent 50%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}
.hero-earth-img {
    filter: brightness(0.65) contrast(1.1) saturate(0.8) sepia(0.3) hue-rotate(-12deg);
    transition: filter 0.4s ease;
}
.hero-globe-wrap:hover .hero-earth-img {
    filter: brightness(0.7) contrast(1.08) saturate(0.85) sepia(0.25) hue-rotate(-10deg);
}
/* Overlay: tint + soft vignette around globe edge */
.hero-globe-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, transparent 45%, rgba(10, 10, 10, 0.3) 90%, rgba(10, 10, 10, 0.85) 100%),
                linear-gradient(160deg, rgba(249, 115, 22, 0.08) 0%, transparent 45%, transparent 55%, rgba(6, 182, 212, 0.06) 100%);
    pointer-events: none;
}

/* Section supporting images - keep small */
.section-img-wrap {
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    isolation: isolate;
}
.section-img-wrap img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    border: 1px solid rgba(46, 46, 46, 0.8);
}
/* Tint vector/illustration images with website colors (orange + cyan) */
.section-img-brand img {
    filter: brightness(0.95) contrast(1.05) saturate(1.1) sepia(0.2) hue-rotate(-5deg);
}
.section-img-brand::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.35) 0%, transparent 45%, transparent 55%, rgba(6, 182, 212, 0.3) 100%);
    mix-blend-mode: color;
    pointer-events: none;
}

.glow-orange {
    box-shadow: 0 0 40px rgba(249, 115, 22, 0.3), 0 0 80px rgba(249, 115, 22, 0.1);
}

.glow-cyan {
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.3), 0 0 80px rgba(6, 182, 212, 0.1);
}

.border-gradient {
    border: 1px solid transparent;
    background: 
        linear-gradient(#121212, #121212) padding-box,
        linear-gradient(135deg, rgba(249, 115, 22, 0.5), rgba(6, 182, 212, 0.5)) border-box;
}

/* Modern glassmorphism effect */
.glass-effect {
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Enhanced card hover effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
}

/* Smooth gradient animations */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.gradient-animate {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

/* Modern focus states */
input:focus,
textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}

/* Enhanced button effects */
button,
a[class*="bg-"] {
    position: relative;
    overflow: hidden;
}

button::before,
a[class*="bg-"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::before,
a[class*="bg-"]:hover::before {
    width: 300px;
    height: 300px;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out forwards;
    opacity: 0;
}

.animate-pulse {
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Smooth scrolling for anchor links */
a[href^="#"] {
    scroll-margin-top: 100px;
}

/* Form input focus styles */
input:focus,
textarea:focus {
    outline: none;
}

/* Navbar backdrop blur enhancement */
nav {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Mobile menu transition */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Icon hover effects */
i[data-lucide] {
    transition: all 0.2s ease-in-out;
}

/* Button hover effects */
button:hover,
a:hover {
    transition: all 0.2s ease-in-out;
}

/* Card hover effects */
.group:hover {
    transition: all 0.3s ease-in-out;
}

/* Prevent scroll freeze - optimize animations */
* {
    /* Use GPU acceleration for better performance */
    will-change: auto;
}

/* Optimize transitions */
.group,
.card-hover,
button,
a {
    /* Use transform and opacity for better performance */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Prevent layout shifts that can cause scroll issues */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Modern section spacing */
section {
    scroll-margin-top: 100px;
}

/* Footer balance: equal column weight, compact on small screens */
footer .grid {
    align-items: start;
}
@media (max-width: 1023px) {
    footer .grid > * + * {
        margin-top: 0;
    }
}
footer h4 {
    margin-bottom: 1rem;
}
footer .space-y-4 > * + * {
    margin-top: 1rem;
}

/* Enhanced typography */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
    font-weight: 700;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f97316, #06b6d4);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #fb923c, #22d3ee);
}

/* Selection color */
::selection {
    background: rgba(249, 115, 22, 0.3);
    color: #fafafa;
}

::-moz-selection {
    background: rgba(249, 115, 22, 0.3);
    color: #fafafa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .text-7xl {
        font-size: 3rem;
    }
    
    .text-6xl {
        font-size: 2.5rem;
    }
    
    .text-5xl {
        font-size: 2rem;
    }
}

/* Projects Section */
.project-card-inner {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-card:hover .project-card-inner {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -12px rgba(249, 115, 22, 0.15);
}

/* About Section Enhancements */
.about-stat-card:hover,
.about-do-card:hover {
    transform: translateY(-4px);
}
.about-approach-card:hover,
.about-value-card:hover {
    transform: translateY(-3px);
}

/* Tech Stack Marquee - Infinite horizontal scroll */
.tech-marquee-inner {
    display: flex;
    width: max-content;
    animation: tech-marquee-scroll 40s linear infinite;
}
.tech-marquee-inner:hover {
    animation-play-state: paused;
}
.tech-marquee-card {
    will-change: transform;
}
.tech-marquee-card:hover {
    transform: scale(1.05);
}
@keyframes tech-marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Tech Stack Section */
.tech-stack-card {
    transform: translateY(0);
}
.tech-stack-card:hover {
    transform: translateY(-6px);
}
.tech-icon {
    filter: brightness(1) saturate(1);
    transition: transform 0.3s ease, filter 0.3s ease;
}
.tech-stack-card:hover .tech-icon {
    transform: scale(1.08);
    filter: brightness(1.1) saturate(1.1);
}

/* Testimonials carousel - sliding cards */
.testimonials-carousel {
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.testimonials-carousel::-webkit-scrollbar {
    display: none;
}
.testimonial-card {
    scroll-snap-align: center;
}

/* Print styles */
@media print {
    nav,
    footer,
    #mobile-menu-btn {
        display: none;
    }
}
