/* ============================================
   READYMAG-STYLE PORTFOLIO
   Dark theme with white accents and smooth animations
   ============================================ */

/* CSS Variables */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    --accent-primary: #ffffff;
    --accent-secondary: #e0e0e0;
    --accent-glow: rgba(255, 255, 255, 0.3);

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Liquid Glass Effect (Apple Style) */
    --liquid-glass-bg: rgba(255, 255, 255, 0.08);
    --liquid-glass-border: rgba(255, 255, 255, 0.18);
    --liquid-glass-blur: 20px;
    --liquid-glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --transition-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.container-fluid {
    width: 100%;
    padding: 0 40px;
}

/* Section Base */
.section {
    min-height: 100vh;
    padding: 120px 0;
    position: relative;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background: var(--liquid-glass-bg);
    border: 1px solid var(--liquid-glass-border);
    border-radius: 50%;
    backdrop-filter: blur(var(--liquid-glass-blur));
    -webkit-backdrop-filter: blur(var(--liquid-glass-blur));
    box-shadow: var(--liquid-glass-shadow);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.nav-logo:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: var(--liquid-glass-bg);
    border: 1px solid var(--liquid-glass-border);
    border-radius: 50px;
    backdrop-filter: blur(var(--liquid-glass-blur));
    -webkit-backdrop-filter: blur(var(--liquid-glass-blur));
    box-shadow: var(--liquid-glass-shadow);
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-video.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(10, 10, 10, 0.4) 0%,
            rgba(10, 10, 10, 0.6) 50%,
            rgba(10, 10, 10, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 40px;
}

.hero-tagline {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 30px;
    text-shadow: 2px 0 rgba(255, 0, 0, 0.2), -2px 0 rgba(0, 255, 255, 0.2);
}

.title-line {
    display: block;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.title-line:nth-child(1) {
    animation-delay: 0.5s;
}

.title-line:nth-child(2) {
    animation-delay: 0.7s;
}

.title-line:nth-child(3) {
    animation-delay: 0.9s;
}

.title-line.accent {
    color: var(--accent-primary);
    text-shadow: 0 0 60px var(--accent-glow);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 40px;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.1s;
    opacity: 0;
}

.hero-cta {
    display: inline-block;
    padding: 18px 48px;
    background: var(--liquid-glass-bg);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 50px;
    border: 1px solid var(--liquid-glass-border);
    backdrop-filter: blur(var(--liquid-glass-blur));
    -webkit-backdrop-filter: blur(var(--liquid-glass-blur));
    box-shadow: var(--liquid-glass-shadow);
    transition: all 0.4s var(--transition-smooth);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.3s;
    opacity: 0;
}

.hero-cta:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 40px rgba(255, 255, 255, 0.2), var(--liquid-glass-shadow);
    color: var(--accent-primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.5s;
    opacity: 0;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--accent-primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        height: 60px;
    }

    50% {
        opacity: 1;
        height: 80px;
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
    width: 350px;
    height: 350px;
    flex-shrink: 0;
}

.about-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter 0.5s ease;
}

.about-image:hover img {
    filter: grayscale(0%);
}

.image-border {
    position: absolute;
    inset: -15px;
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
    opacity: 0.3;
    pointer-events: none;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 2px 0 rgba(255, 0, 0, 0.2), -2px 0 rgba(0, 255, 255, 0.2);
}

.section-title .accent {
    color: var(--accent-primary);
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.skill-tag {
    padding: 10px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.skill-tag:last-child {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.skill-tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-section {
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: transform 0.5s var(--transition-smooth);
    text-decoration: none;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card.large {
    grid-column: span 2;
}

.project-card.wide {
    grid-column: span 2;
}

.project-media {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}

.project-card.large .project-media {
    padding-top: 45%;
}

.project-media img,
.project-media video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth);
}

.project-card:hover .project-media img,
.project-card:hover .project-media video {
    transform: scale(1.05);
}

.project-info {
    padding: 30px;
}

.project-category {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 10px;
    display: block;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-section {
    background: var(--bg-secondary);
    padding: 100px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
}

.gallery-item::before {
    content: '';
    display: block;
    padding-top: 100%;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ============================================
   EVERYDAYS SECTION
   ============================================ */
.everydays-section {
    background: var(--bg-primary);
    padding: 100px 0;
}

.everydays-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.everyday-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.everyday-item::before {
    content: '';
    display: block;
    padding-top: 100%;
}

.everyday-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: var(--bg-tertiary);
    min-height: auto;
    padding: 150px 0 60px;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(2px 0 rgba(255, 0, 0, 0.3)) drop-shadow(-2px 0 rgba(0, 255, 255, 0.3));
}

.contact-email {
    font-size: 1.3rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    margin-bottom: 40px;
}

.contact-email:hover {
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--liquid-glass-bg);
    border: 1px solid var(--liquid-glass-border);
    border-radius: 50px;
    backdrop-filter: blur(var(--liquid-glass-blur));
    -webkit-backdrop-filter: blur(var(--liquid-glass-blur));
    box-shadow: var(--liquid-glass-shadow);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.15);
}

.footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 60px;
    margin-top: 100px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-accent {
    color: var(--accent-primary);
}

/* Secret Link */
.secret-link {
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0.25;
}

.secret-link:hover {
    opacity: 0.6;
}

/* Easter Egg Button Reset */
#dont-touch {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    outline: none;
    color: inherit;
}

/* Easter Egg Overlay - Isolated */
/* Easter Egg Overlay - Backdrop */
.dont-touch-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    user-select: none;
    opacity: 0;
    animation: fadeInOverlay 0.3s forwards;
}

@keyframes fadeInOverlay {
    to {
        opacity: 1;
    }
}

/* Liquid Glass Card */
.dont-touch-card {
    background: var(--liquid-glass-bg);
    border: 1px solid var(--liquid-glass-border);
    backdrop-filter: blur(var(--liquid-glass-blur));
    -webkit-backdrop-filter: blur(var(--liquid-glass-blur));
    box-shadow: var(--liquid-glass-shadow), 0 0 50px rgba(0, 0, 0, 0.5);
    padding: 60px 80px;
    border-radius: 30px;
    transform: scale(0.9);
    animation: popInCard 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popInCard {
    to {
        transform: scale(1);
    }
}

.dont-touch-message {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 30px var(--accent-glow);
}

.dont-touch-countdown {
    font-family: 'Inter', sans-serif;
    font-size: 8rem;
    font-weight: 900;
    color: var(--accent-primary);
    line-height: 1;
    text-shadow: 2px 0 rgba(255, 0, 0, 0.4), -2px 0 rgba(0, 255, 255, 0.4);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s var(--transition-smooth);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .nav-fixed {
        padding: 20px 40px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-image {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card.large,
    .project-card.wide {
        grid-column: span 1;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .everydays-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-fixed {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .hero-content {
        padding: 0 20px;
    }

    .section {
        padding: 80px 0;
    }

    .container,
    .container-fluid {
        padding: 0 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .everydays-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
        gap: 20px;
    }

    .footer-bar {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 30px 20px;
    }
}