@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;300;400;600;800&display=swap');

:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 123, 0, 0.15); /* Orange tint border */
    --accent-orange-light: #ff9d00;
    --accent-orange-dark: #ff4d00;
    --text-main: #ffffff;
    --text-dim: #c0c0c0; /* Slightly brighter dim text */
    --glass-blur: 15px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 18px; /* Increased base font size */
    overscroll-behavior: none; /* Prevents bounce/gap effect when scrolling past top/bottom */
    background-color: var(--bg-color); /* Ensures the gap is black if it somehow bounces */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    overscroll-behavior: none;
}

/* Background Gradients & Motion */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    animation: floatBlob 15s infinite alternate ease-in-out;
}

.blob-1 {
    background: var(--accent-orange-light);
    top: -150px;
    right: -150px;
}

.blob-2 {
    background: var(--accent-orange-dark);
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(150px, 100px) scale(1.1); }
    100% { transform: translate(-50px, 150px) scale(0.9); }
}

/* Particles Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-orange-light), var(--accent-orange-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulseGradient 3s infinite alternate;
}

@keyframes pulseGradient {
    0% { filter: hue-rotate(0deg) brightness(1); }
    100% { filter: hue-rotate(15deg) brightness(1.2); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(var(--glass-blur));
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--card-border);
}

.logo img {
    height: 50px; /* Slightly bigger logo */
    transition: var(--transition);
}

.text-logo {
    font-size: 2.5rem;
    font-weight: 900;
    color: transparent;
    text-transform: lowercase;
    position: relative;
    display: inline-block;
    letter-spacing: -2px;
    background: linear-gradient(90deg, #ff9d00, #ff4d00, #ff9d00);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineLogo 3s linear infinite;
    transition: var(--transition);
}

.text-logo::before {
    content: 'lokemoh.';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-orange-light);
    z-index: -1;
    animation: pulseLogoGlow 2s ease-in-out infinite alternate;
}

.text-logo:hover {
    transform: scale(1.05) rotate(-2deg);
}

.text-logo:active {
    transform: scale(0.9) rotate(2deg);
    filter: brightness(1.5);
}

@keyframes shineLogo {
    to { background-position: 200% center; }
}

@keyframes pulseLogoGlow {
    0% { filter: blur(8px); opacity: 0.6; transform: scale(0.98); }
    100% { filter: blur(18px); opacity: 1; transform: scale(1.02); }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange-light);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-orange-light);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-contact {
    background: linear-gradient(135deg, var(--accent-orange-light), var(--accent-orange-dark));
    color: white;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(255, 77, 0, 0.3);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-contact:hover::before {
    left: 100%;
}

.btn-contact:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 77, 0, 0.5);
}

.btn-contact:active {
    transform: scale(0.95);
    box-shadow: 0 5px 15px rgba(255, 77, 0, 0.4);
}

.btn-secondary {
    border: 2px solid var(--accent-orange-light);
    color: var(--accent-orange-light);
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--accent-orange-light);
    transition: var(--transition);
    z-index: -1;
}

.btn-secondary:hover {
    color: var(--bg-color);
}

.btn-secondary:hover::after {
    height: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 10%;
    position: relative;
}

.hero h1 {
    font-size: 5.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 0 40px rgba(255, 77, 0, 0.3);
}

.hero p {
    font-size: 1.6rem;
    color: var(--text-dim);
    max-width: 900px;
    margin-bottom: 3.5rem;
}

.hero-btns {
    display: flex;
    gap: 2rem;
}

/* Floating Elements for Homepage */
.floating-element {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 157, 0, 0.1), rgba(255, 77, 0, 0.1));
    border: 1px solid rgba(255, 157, 0, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    animation: floatElement 10s infinite alternate ease-in-out;
}

.fe-1 { width: 100px; height: 100px; top: 20%; left: 10%; animation-delay: 0s; transform: rotate(45deg); }
.fe-2 { width: 150px; height: 150px; bottom: 20%; right: 10%; border-radius: 50%; animation-delay: 2s; }
.fe-3 { width: 80px; height: 80px; top: 30%; right: 15%; animation-delay: 4s; transform: rotate(15deg); }

@keyframes floatElement {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-50px) rotate(45deg); }
}

/* Marquee / Ticker */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: rgba(255, 77, 0, 0.05);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    padding: 1.5rem 0;
    display: flex;
    white-space: nowrap;
}

.ticker {
    display: inline-block;
    animation: ticker 30s linear infinite;
    font-size: 1.8rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--accent-orange-light);
    letter-spacing: 2px;
}

.ticker span {
    margin: 0 2rem;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Sections */
section {
    padding: 120px 5%;
}

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

/* Cards / Services */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 3.5rem 2.5rem;
    backdrop-filter: blur(var(--glass-blur));
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-orange-light), var(--accent-orange-dark));
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(255, 157, 0, 0.6);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(255, 77, 0, 0.1);
}

.card:hover::before {
    opacity: 0.08;
}

.card h3 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    color: var(--accent-orange-light);
}

.card p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
}

.portfolio-item {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    height: 350px;
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.95) 40%);
    transform: translateY(40%);
    transition: var(--transition);
    opacity: 0;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.15) rotate(-2deg);
    filter: brightness(0.4) contrast(1.2);
}

.portfolio-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* Stats Section */
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 4rem;
    background: rgba(255, 157, 0, 0.05);
    padding: 4rem;
    border-radius: 30px;
    border: 1px solid var(--card-border);
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-orange-light);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Forms & Inputs */
input, textarea, select {
    width: 100%;
    padding: 1.2rem;
    margin-bottom: 1.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    color: white;
    font-family: inherit;
    font-size: 1.1rem;
    transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-orange-light);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px rgba(255, 157, 0, 0.2);
}

/* Dropdown styling fix */
select option {
    background-color: var(--bg-color); /* Dark background for options */
    color: white; /* White text */
    font-size: 1.1rem;
    padding: 10px;
}

label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--text-dim);
    font-size: 1rem;
    font-weight: 600;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: 0.8s all cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Click Ripple */
.click-ripple {
    position: fixed;
    border-radius: 50%;
    border: 2px solid var(--accent-orange-light);
    pointer-events: none;
    animation: rippleAnim 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    z-index: 9999;
    background: rgba(255, 157, 0, 0.1);
}

@keyframes rippleAnim {
    0% { width: 0; height: 0; opacity: 1; transform: translate(-50%, -50%); }
    100% { width: 120px; height: 120px; opacity: 0; transform: translate(-50%, -50%); border-width: 10px; }
}

/* Glitch Effect for main text */
.glitch {
    position: relative;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 red;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 blue;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(87px, 9999px, 83px, 0); }
  20% { clip: rect(35px, 9999px, 53px, 0); }
  40% { clip: rect(6px, 9999px, 20px, 0); }
  60% { clip: rect(10px, 9999px, 73px, 0); }
  80% { clip: rect(22px, 9999px, 30px, 0); }
  100% { clip: rect(48px, 9999px, 88px, 0); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(25px, 9999px, 96px, 0); }
  20% { clip: rect(80px, 9999px, 53px, 0); }
  40% { clip: rect(51px, 9999px, 60px, 0); }
  60% { clip: rect(23px, 9999px, 78px, 0); }
  80% { clip: rect(18px, 9999px, 90px, 0); }
  100% { clip: rect(30px, 9999px, 66px, 0); }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    z-index: 1000;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: 0.3s all cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: var(--accent-orange-light);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: var(--accent-orange-light);
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    section { padding: 60px 5%; }
    .hero { padding: 80px 5%; }
    .hero h1 { font-size: 2.8rem; }
    
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.5s all cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 999;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links a {
        font-size: 1.8rem;
    }
    
    .hero p { font-size: 1.1rem; margin-bottom: 2rem; }
    .hero-btns { flex-direction: column; gap: 1rem; width: 100%; }
    .hero-btns a { width: 100%; text-align: center; }
    .floating-element { display: none; }
    .stat-num { font-size: 2.5rem; }
    .stats-container { padding: 2rem; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-item { height: 280px; }
    .section-title { font-size: 2.5rem; margin-bottom: 2rem; }
    .card { padding: 2rem 1.5rem; }
    .form-container { padding: 2rem; margin-top: 50px; }
    footer { padding: 50px 5%; }
    .text-logo { font-size: 2rem; }
}

/* Hyper-Lightweight Custom Cursor */
@media (pointer: fine) {
    body, a, button, input, textarea, select, .card, .text-logo {
        cursor: none !important;
    }
    
    .cursor-light {
        position: fixed;
        top: 0;
        left: 0;
        width: 6px;
        height: 6px;
        background-color: var(--accent-orange-light);
        border-radius: 50%;
        pointer-events: none;
        z-index: 10000;
        will-change: transform;
        transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
        transition: opacity 0.2s;
    }

    .cursor-trailer {
        position: fixed;
        top: 0;
        left: 0;
        width: 36px;
        height: 36px;
        border: 1px solid rgba(255, 157, 0, 0.5);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        will-change: transform;
        transform: translate3d(-100px, -100px, 0) translate(-50%, -50%) scale(1);
        /* The transition gives the smooth trailer/spring delay natively */
        transition: transform 0.1s ease-out, background-color 0.2s, border-color 0.2s;
    }

    body.cursor-hover .cursor-trailer {
        background-color: rgba(255, 157, 0, 0.08);
        border-color: rgba(255, 157, 0, 0.8);
    }
    
    body.cursor-hover .cursor-light {
        opacity: 0;
    }
}
