/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; font-weight: 700; line-height: 1.2; }

a { color: inherit; text-decoration: none; transition: 0.3s; }

/* UTILS */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
.bg-alt { background: rgba(255, 255, 255, 0.02); border-top: 1px solid rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

/* TYPOGRAPHY */
.section-title {
    font-size: 3rem; margin-bottom: 3rem; text-align: center; position: relative;
    background: linear-gradient(to right, var(--color-secondary), rgba(255,255,255,0.5));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.section-title::after {
    content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 4px; background: var(--color-accent); border-radius: 2px;
}

/* BUTTONS */
.btn {
    display: inline-block; padding: 14px 28px;
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1rem;
    border-radius: 30px; cursor: pointer; border: none; outline: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center; position: relative; overflow: hidden;
    z-index: 1;
}

.btn-accent {
    background-color: var(--color-accent);
    color: #000;
    box-shadow: 0 10px 20px -10px var(--color-accent);
}
.btn-accent:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 25px -10px var(--color-accent-hover);
}

.btn-outline {
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
    border-color: var(--color-secondary);
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-block { display: block; width: 100%; }

/* HEADER */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 20px 0; transition: 0.4s;
    background: transparent;
}
.header.scrolled {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05); padding: 10px 0;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }

.logo-text { font-family: 'Outfit', sans-serif; font-size: 1.8rem; font-weight: 900; letter-spacing: -1px; }
.logo-img { max-height: 40px; }

.nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.nav a {
    font-weight: 500; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px;
    position: relative; opacity: 0.8;
}
.nav a:hover, .nav a.active { opacity: 1; color: var(--color-accent); }
.nav a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--color-accent); transition: 0.3s;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }

.mobile-menu-toggle {
    display: none; background: transparent; border: none;
    color: var(--color-secondary); font-size: 1.5rem; cursor: pointer;
}

/* HERO */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    justify-content: center; text-align: center; overflow: hidden; padding-top: 80px;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background: var(--color-primary);
}
.hero-bg .glow {
    position: absolute; width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 60%);
    opacity: 0.08; top: 50%; left: 50%; transform: translate(-50%, -50%);
    animation: float 10s infinite alternate ease-in-out;
}
@keyframes float { 0% { transform: translate(-50%, -40%); } 100% { transform: translate(-50%, -60%); } }

.hero-content { z-index: 2; position: relative; width: 100%; }
.hero-title {
    font-size: clamp(3rem, 8vw, 7rem); margin-bottom: 10px; font-weight: 900;
    line-height: 1; letter-spacing: -2px; text-transform: uppercase;
    animation: titleHeroAnim 8s infinite;
}

@keyframes titleHeroAnim {
  0%, 20% { opacity: 1; transform: scale(1); text-shadow: none; }
  22% { opacity: 0; }
  24% { opacity: 1; }
  26% { opacity: 0; }
  28% { opacity: 1; }
  
  40% { transform: scale(1); }
  45% { transform: scale(1.05); }
  50% { transform: scale(1); }
  55% { transform: scale(1.05); }
  60% { transform: scale(1); }

  80%, 90% { transform: translate(0); text-shadow: none; }
  82% { transform: translate(-3px, 3px); text-shadow: -3px 0 rgba(255,0,0,0.7), 3px 0 rgba(0,0,255,0.7); }
  84% { transform: translate(3px, -3px); text-shadow: 3px 0 rgba(0,0,255,0.7), -3px 0 rgba(255,0,0,0.7); }
  86% { transform: translate(-3px, -3px); text-shadow: none; }
  88% { transform: translate(3px, 3px); text-shadow: 3px 0 rgba(255,0,0,0.7), -3px 0 rgba(0,0,255,0.7); }
  100% { transform: scale(1); text-shadow: none; }
}
.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2.5rem); font-family: 'Inter', sans-serif; font-weight: 300;
    opacity: 0.7; margin-bottom: 40px; letter-spacing: 2px;
}
.hero-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    opacity: 0.5; animation: bounce 2s infinite;
}
.mouse {
    width: 26px; height: 40px; border: 2px solid var(--color-secondary); border-radius: 15px; position: relative;
}
.mouse::before {
    content: ''; position: absolute; top: 8px; left: 50%; width: 4px; height: 4px;
    background: var(--color-secondary); border-radius: 50%; transform: translateX(-50%);
    animation: mouse-scroll 1.5s infinite;
}
@keyframes mouse-scroll { 0% { top: 8px; opacity: 1; } 100% { top: 20px; opacity: 0; } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); } 40% { transform: translateY(-10px) translateX(-50%); } }


/* CONTENT STYLES (Admin Richtext) */
.content-style { font-size: 1.1rem; opacity: 0.9; }
.content-style p { margin-bottom: 1.5rem; }

.bio-grid { text-align: center; max-width: 800px; margin: 0 auto; }
.bio-grid.has-image {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    align-items: center;
    text-align: left;
    max-width: 1000px;
}
.bio-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.bio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.tag {
    background: rgba(255,255,255,0.08);
    color: var(--color-accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* GRIDS */
.grid { display: grid; gap: 30px; }
.grid-videos { grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); }
.grid-web { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* CARDS */
.card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px; overflow: hidden; transition: 0.4s; position: relative;
}
.card:hover { transform: translateY(-10px); background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }

/* VIDEOS */
.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; background: #000; }
.embed-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.reel-link { display: block; position: relative; padding-bottom: 120%; background: #222; overflow: hidden; }
.reel-preview {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff; transition: 0.3s;
}
.reel-preview:hover { transform: scale(1.05); }
.overlay-icon { font-size: 3rem; margin-bottom: 10px; }

.card-content { padding: 25px; }
.card-content h3 { font-size: 1.4rem; margin-bottom: 10px; }
.card-content p { font-size: 0.95rem; opacity: 0.7; margin-bottom: 0px; }

/* WEB PROJECTS */
.card-web .card-img {
    height: 250px; background-size: cover; background-position: center top; transition: 0.5s;
    position: relative;
}
.card-web:hover .card-img { background-position: center bottom; }
.card-web .overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.6); display: flex;
    align-items: center; justify-content: center; opacity: 0; transition: 0.3s;
    backdrop-filter: blur(5px);
}
.card-web:hover .overlay { opacity: 1; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-details { list-style: none; margin-top: 30px; }
.contact-details li { margin-bottom: 15px; display: flex; align-items: center; font-size: 1.1rem; }
.contact-details i { color: var(--color-accent); font-size: 1.5rem; margin-right: 15px; width: 25px; text-align: center; }

.social-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 45px; height: 45px; border-radius: 50%;
    background: rgba(255,255,255,0.05); color: #fff; font-size: 1.2rem;
    margin-right: 15px; transition: 0.3s;
}
.social-icon:hover { background: var(--color-accent); color: #000; transform: translateY(-5px); }

.contact-form { background: rgba(255,255,255,0.02); padding: 40px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 15px; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; color: #fff; font-family: 'Inter', sans-serif; font-size: 1rem; transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--color-accent); outline: none; background: rgba(0,0,0,0.8); }
.form-group textarea { height: 150px; resize: vertical; }
.form-msg { margin-top: 15px; padding: 15px; border-radius: 8px; display: none; font-weight: 500; }
.form-msg.success { display: block; background: rgba(46, 204, 113, 0.2); color: #2ecc71; border: 1px solid rgba(46, 204, 113, 0.3); }
.form-msg.error { display: block; background: rgba(231, 76, 60, 0.2); color: #e74c3c; border: 1px solid rgba(231, 76, 60, 0.3); }

/* FOOTER */
.footer { padding: 30px 0; border-top: 1px solid rgba(255,255,255,0.05); opacity: 0.6; font-size: 0.9rem; }

/* ANIMATIONS / REVEAL */
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* LOADER */
#loader {
    position: fixed; inset: 0; background: var(--color-primary); z-index: 9999;
    display: flex; align-items: center; justify-content: center; transition: opacity 0.5s, visibility 0.5s;
}
.loader-spinner { width: 50px; height: 50px; border: 3px solid rgba(255,255,255,0.1); border-top-color: var(--color-accent); border-radius: 50%; animation: spin 1s infinite linear; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
    .bio-grid.has-image {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .bio-image { max-width: 300px; margin: 0 auto; }
    .bio-tags { justify-content: center; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    .nav {
        position: absolute; top: 100%; right: 0; width: 100%; background: #111;
        border-bottom: 1px solid #333; opacity: 0; visibility: hidden; transition: 0.3s;
        transform: translateY(-10px);
    }
    .header.nav-open .nav { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav ul { flex-direction: column; gap: 0; }
    .nav ul li a { display: block; padding: 20px; text-align: center; border-bottom: 1px solid #222; }
    .nav ul li:last-child a { border-bottom: none; }
    .header-inner { position: relative; }
}
