/*
Theme Name: Sued Theme
Theme URI: https://suedoninem.com
Author: Sued Oninem
Author URI: https://suedoninem.com
Description: Custom theme for Sued UX/UI portfolio.
Version: 1.0
*/

/* ORGANIC DIGITAL DESIGN SYSTEM (LIME & DARK) */
:root {
    --bg-main: #050505;
    /* Deep Black */
    --bg-card: #141414;
    /* Soft Dark for cards */
    --text-main: #FFFFFF;
    --text-muted: #9CA3AF;

    --accent: #D4F23E;
    /* LIME GREEN POP */
    --accent-glow: rgba(212, 242, 62, 0.4);

    --border-color: rgba(255, 255, 255, 0.1);

    --radius-lg: 30px;
    --radius-full: 9999px;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Text Reveal Masks */
.word-mask {
    overflow: hidden;
    display: inline-block;
    vertical-align: top;
}

.char-mask {
    display: inline-block;
    transform: translateY(100%);
    /* Start hidden */
}

/* Background Ambient Glows */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(21, 80, 50, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 242, 62, 0.1) 0%, rgba(0, 0, 0, 0) 60%);
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 120px 0;
}

.text-lime {
    color: var(--accent);
}

.lead {
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.6;
}

/* Header */
header {
    padding: 30px 0;
    width: 100%;
    z-index: 100;
    background: var(--bg-main);
    /* Default: Solid background for standard pages */
    position: relative;
}

/* Transparent Overlay only for Custom Landing Template */
body.page-template-template-landing-php header {
    position: absolute;
    background: transparent;
    top: 0;
    left: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-main);
}

.btn-lime {
    background: var(--accent);
    color: #000;
    padding: 12px 30px;
    border-radius: var(--radius-full);
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-lime:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px var(--accent-glow);
}

.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 30px;
    border-radius: var(--radius-full);
    font-weight: 600;
    display: inline-block;
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-visual-wrapper {
    position: relative;
    height: 600px;
    z-index: 1;
}

.hero-image-container {
    position: relative;
    border-radius: 200px 200px 0 0;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
}

/* Floating Elements (like NFT cards) */
.float-card {
    position: absolute;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border-color);
    /* animation: float 6s ease-in-out infinite; -> Moved to GSAP to prevent conflict */
    z-index: 20;
    /* Ensure on top of image and container */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 180px;
}

.float-card.top-right {
    top: 15%;
    right: -30px;
    /* Allow breaking out */
}

.float-card.bottom-left {
    bottom: 10%;
    left: -30px;
    /* Allow breaking out */
    animation-delay: 2s;
}

.float-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    overflow: hidden;
}

.float-info h4 {
    font-size: 0.9rem;
}

.float-info span {
    font-size: 0.75rem;
    color: var(--accent);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Services */
.section-title h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card-digital {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.card-digital:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.card-icon-lime {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.card-digital h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card-digital p {
    color: var(--text-muted);
}

/* Profile / About */
.about-split {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
    background: var(--bg-card);
    padding: 60px;
    border-radius: 50px;
}

.about-img-frame {
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.about-img-frame img {
    width: 100%;
    display: block;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Footer & Other */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
    margin-top: 100px;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* keep items aligned */
}

.footer-desc {
    color: var(--text-muted);
    max-width: 300px;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 20px;
    text-align: right;
}

/* Mobile */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: white;
}

/* Global image safety */
img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 992px) {
    .container {
        padding: 0 30px;
    }

    .hero-wrapper {
        gap: 40px;
        grid-template-columns: 1fr;
        text-align: center;
        padding-bottom: 60px;
    }

    .hero-content h1 {
        font-size: 3rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image-container {
        height: 450px;
        margin-top: 20px;
        border-radius: 100px 100px 0 0;
    }

    .about-split {
        grid-template-columns: 1fr;
        padding: 40px;
        gap: 30px;
        border-radius: 30px;
    }

    .about-content {
        order: 2;
    }

    .about-img-frame {
        order: 1;
        max-height: 400px;
    }

    /* Adjust float cards to not break layout */
    .float-card {
        transform: scale(0.9);
        z-index: 5;
    }

    .float-card.top-right {
        top: 10%;
        right: 0;
    }

    .float-card.bottom-left {
        bottom: 5%;
        left: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
        /* Adjusted for better fit */
    }

    .hero-image-container {
        height: 350px;
        border-radius: 50px 50px 0 0;
    }

    /* Hide floating cards on mobile to prevent blocking content */
    .float-card {
        display: none !important;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
        z-index: 200;
    }

    .nav-links.active {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 150;
    }

    .nav-links.active li {
        margin: 15px 0;
    }

    .nav-links.active a {
        font-size: 1.5rem;
        color: var(--text-main);
    }

    .footer-flex {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-left {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .footer-socials {
        justify-content: center;
    }

    .copyright {
        text-align: center;
    }

    /* Align buttons better on mobile */
    .btn-lime,
    .btn-outline {
        padding: 12px 25px;
        /* Slightly larger touch target */
        width: 100%;
        max-width: 300px;
        display: inline-flex;
        /* Changed from block to inline-flex for centering content */
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        text-align: center;
        white-space: normal;

        /* Allow text wrapping if needed */
        /* CLEAR / STATIC MODE STYLES */
        .elementor-content-block {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            /* Safe padding for mobile */
        }

        /* Fix for Absolute Header Overlap on Landing Page */
        body.page-template-template-landing-php .elementor-content-block:first-of-type {
            padding-top: 150px !important;
            /* Force space for header */
        }

        @media (max-width: 768px) {
            .elementor-content-block {
                padding: 0 24px;
                margin-bottom: 40px !important;
            }

            /* Ensure cards grid doesn't break */
            .grid-cards {
                grid-template-columns: 1fr !important;
                gap: 20px !important;
            }

            /* Hero adjustments for static HTML */
            .elementor-content-block h1 {
                font-size: 2.5rem !important;
            }
        }

        height: auto;
    }

    .hero-actions {
        gap: 15px;
        flex-direction: column;
        /* Stack on smaller tablets/large keypads too */
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 2rem;
        /* Smaller for mobile portrait */
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero-content br {
        display: none;
        /* Let text wrap naturally */
    }

    .hero-content p {
        font-size: 1rem;
        line-height: 1.5;
        padding: 0 10px;
    }

    /* Stack buttons with spacing */
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn-lime,
    .btn-outline {
        width: 100%;
        max-width: 100%;
        font-size: 0.95rem;
    }

    .hero-image-container {
        height: 280px;
        /* Reduced height further */
        border-radius: 40px;
        margin-top: 30px;
    }

    .grid-cards {
        gap: 15px;
        grid-template-columns: 1fr;
        /* Force single column */
    }

    .card-digital {
        padding: 24px;
        border-radius: 20px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    /* Force Center Alignment on Mobile */
    .section-title,
    .about-content,
    .card-digital {
        text-align: center !important;
    }

    /* Adjust Header for mobile alignment */
    header {
        padding: 20px 0;
    }

    .logo {
        font-size: 1.2rem;
    }
}

/* Animations handled by GSAP */
/* Animations handled by GSAP */
/* .reveal class legacy logic removed */