:root {
    --color-1: #443199;
    --color-2: #792CA2;
    --color-3: #C13383;
    --color-4: #E05454;
    
    --bg-color: #09090b;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-hover: rgba(255, 255, 255, 0.08);
}

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

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

/* Background Glow */
.glow-bg {
    position: fixed;
    top: -20vh; left: -10vw;
    width: 60vw; height: 60vh;
    background: radial-gradient(circle, var(--color-1) 0%, rgba(0,0,0,0) 70%);
    opacity: 0.15; filter: blur(100px);
    z-index: -1; border-radius: 50%;
    animation: float 10s ease-in-out infinite alternate;
}
.glow-bg::after {
    content: ''; position: absolute;
    bottom: -80vh; right: -40vw;
    width: 50vw; height: 50vh;
    background: radial-gradient(circle, var(--color-3) 0%, rgba(0,0,0,0) 70%);
    opacity: 0.15; filter: blur(80px); border-radius: 50%;
}
@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 30px); }
}

/* Utilities */
.gradient-text {
    background: linear-gradient(135deg, var(--color-1), var(--color-2), var(--color-3), var(--color-4));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s;
}
.glass-card:hover {
    background: var(--glass-hover);
}
.section-padding {
    padding: 120px 5% 60px 5%;
    max-width: 1000px;
    margin: 0 auto;
    min-height: calc(100vh - 150px);
}
.section-title {
    font-size: 2.5rem; font-weight: 800; margin-bottom: 3rem; text-align: center; letter-spacing: -1px;
}

/* Navbar */
.navbar {
    position: fixed; top: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 5%;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    background: rgba(9, 9, 11, 0.7);
    z-index: 100; border-bottom: 1px solid var(--glass-border);
}
.logo { font-weight: 800; font-size: 1.5rem; text-decoration: none; color: white;}
.nav-links { display: flex; list-style: none; align-items: center; }
.nav-link { color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* Dropdown */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none; position: absolute;
    background-color: rgba(20, 20, 25, 0.95);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1; border-radius: 12px; border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px); top: 100%; left: 50%; transform: translateX(-50%);
    overflow: hidden;
}
.dropdown-content a {
    color: var(--text-secondary); padding: 12px 16px;
    text-decoration: none; display: block; font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}
.dropdown-content a:hover { background-color: var(--glass-hover); color: white; }
.dropdown:hover .dropdown-content { display: block; animation: fade-in-up 0.2s ease-out forwards; }

/* SPA Container */
#app-root { min-height: 100vh; }

/* Cinematic Home View */
.home-view-cinematic {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    overflow: hidden;
}

/* Container cho ảnh chân dung */
.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ảnh được mask mờ dần xuống dưới */
.hero-avatar {
    height: 85%;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    
    /* Canh đáy */
    align-self: flex-end;
    
    /* Nhỏ lại, nghiêng và nhích qua phải */
    transform: translateX(12vw) rotate(4deg);
    transform-origin: bottom center;
    
    /* Mờ dần phần dưới để không bị viền cứng */
    -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 98%);
    mask-image: linear-gradient(to bottom, black 65%, transparent 98%);
}

/* Nội dung chữ đè lên (Góc dưới trái giống reference) */
.hero-overlay-content {
    position: absolute;
    bottom: 10%;
    left: 10%;
    z-index: 10;
}

.hero-name-img {
    width: 100%;
    max-width: 400px; /* Tăng nhẹ độ rộng để bù phần bị kéo */
    height: auto;
    margin-bottom: 15px;
    display: block;
    /* Kéo ảnh sang trái để bỏ qua phần vệt mờ, ép chữ L thẳng hàng với icon */
    transform: translateX(-14%);
}

/* Kokonut Social Button */
.kokonut-social-button {
    position: relative;
    display: inline-block;
    height: 44px;
    min-width: 170px;
    cursor: pointer;
    margin-bottom: 25px;
}

.social-btn-default {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: opacity 0.2s ease-in-out, background 0.2s;
}

.social-btn-default:hover {
    background: rgba(255, 255, 255, 0.05);
}

.social-btn-expanded {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    overflow: hidden;
    width: 0; /* Animated */
    transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.kokonut-social-button:hover .social-btn-default {
    opacity: 0;
}

.kokonut-social-button:hover .social-btn-expanded {
    width: 180px; /* 4 icons * 45px */
}

.social-icon-btn {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #000;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    font-size: 1.1rem;
}
.social-icon-btn:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.social-icon-btn:last-child { border-right: none; border-top-right-radius: 8px; border-bottom-right-radius: 8px; }

.social-icon-btn:hover {
    background: #e5e5e5;
}

/* Hover staggering */
.kokonut-social-button:hover .social-icon-btn {
    opacity: 1;
    transform: translateX(0);
}
.kokonut-social-button:hover .social-icon-btn:nth-child(1) { transition-delay: 0.00s; }
.kokonut-social-button:hover .social-icon-btn:nth-child(2) { transition-delay: 0.05s; }
.kokonut-social-button:hover .social-icon-btn:nth-child(3) { transition-delay: 0.10s; }
.kokonut-social-button:hover .social-icon-btn:nth-child(4) { transition-delay: 0.15s; }


.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-cinematic {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.btn-cinematic:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* About View */
.story-container { padding: 3rem; text-align: left; line-height: 1.8; font-size: 1.05rem; }
.story-container h1 { font-size: 2rem; margin-bottom: 1.5rem; color: white; }
.story-container h2 { font-size: 1.5rem; margin: 2rem 0 1rem; color: var(--color-2); }
.story-container h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; color: var(--color-4); }
.story-container p { margin-bottom: 1rem; color: rgba(255,255,255,0.85); }
.story-container blockquote {
    border-left: 4px solid var(--color-3); padding-left: 1.5rem;
    font-style: italic; color: var(--text-secondary); margin: 2rem 0;
}
.story-container hr { border: none; border-top: 1px solid var(--glass-border); margin: 3rem 0; }
.story-container strong { color: white; font-weight: 600; }

/* Achievements View */
.stats-container { padding: 2rem; }
.chart-wrapper { position: relative; height: 300px; width: 100%; margin-top: 1rem; }

.timeline { position: relative; margin-top: 3rem; padding-left: 30px; }
.timeline::after {
    content: ''; position: absolute; width: 2px;
    background: linear-gradient(to bottom, var(--color-1), var(--color-3));
    top: 0; bottom: 0; left: 10px; opacity: 0.3;
}
.timeline-item { position: relative; margin-bottom: 3rem; }
.timeline-dot {
    position: absolute; width: 16px; height: 16px; background: var(--color-2);
    border-radius: 50%; left: -27px; top: 5px; z-index: 1;
    box-shadow: 0 0 10px var(--color-2);
}
.timeline-content { padding: 1.5rem; cursor: pointer; }
.timeline-date { font-size: 0.85rem; color: var(--color-4); font-weight: 600; letter-spacing: 1px; }
.timeline-title { font-size: 1.3rem; margin: 0.5rem 0; }

/* =========================================
   Moments & Achievements Swiper CSS
   ========================================= */
.moments-swiper, .achievements-swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.moment-slide {
    background-position: center;
    background-size: cover;
    width: 600px;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.moment-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Có thể đổi thành cover nếu ảnh bằng nhau */
    cursor: pointer;
}

@media (max-width: 768px) {
    .moment-slide {
        width: 300px;
        height: 250px;
    }
}

.swiper-pagination-bullet {
    background: var(--color-2);
}
.swiper-button-next, .swiper-button-prev {
    color: var(--color-2);
}

/* Blog Grid */
.bento-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.bento-item { padding: 2rem; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.bento-item:hover { transform: translateY(-5px); }
.bento-tag {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--text-secondary); margin-bottom: 1rem; display: inline-block;
    padding: 4px 10px; background: rgba(255,255,255,0.05); border-radius: 20px;
    width: max-content;
}
.bento-item h3 { font-size: 1.4rem; margin-bottom: 1rem; color: white; }
.bento-item p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.5rem; flex-grow: 1; }
.read-more { color: var(--color-3); font-weight: 600; font-size: 0.9rem; }

/* Blog Post Detail */
.back-link { color: var(--text-secondary); text-decoration: none; display: inline-block; margin-bottom: 1rem; transition: color 0.2s; }
.back-link:hover { color: white; }
.article-container { padding: 3rem; }
.article-content { line-height: 1.8; font-size: 1.05rem; color: rgba(255,255,255,0.85); margin-top: 2rem; }
.article-content img { max-width: 100%; border-radius: 12px; margin: 1.5rem 0; }
.article-content h2 { color: white; margin: 2rem 0 1rem; }

/* Modal */
.modal {
    display: none; position: fixed; z-index: 1000; padding-top: 60px;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9); backdrop-filter: blur(10px);
}
.modal-content {
    margin: auto; display: block; max-width: 90%; max-height: 80vh; border-radius: 12px;
    animation: zoom 0.3s;
}
.close-modal {
    position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer;
}
@keyframes zoom { from {transform:scale(0.9); opacity: 0;} to {transform:scale(1); opacity: 1;} }

/* Footer */
.footer {
    text-align: center; padding: 2rem; border-radius: 0;
    border-top: 1px solid var(--glass-border); border-left: none; border-right: none; border-bottom: none;
}
.footer .socials { margin-top: 1rem; }
.footer .socials a { color: var(--text-secondary); font-size: 1.2rem; margin: 0 10px; transition: color 0.3s; }
.footer .socials a:hover { color: var(--color-2); }

/* Animations */
.fade-in-up {
    animation: fade-in-up 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: flex; list-style: none; align-items: center; }
    .menu-toggle { display: block; }
    .masonry-grid { column-count: 2; }
    .bento-grid { grid-template-columns: 1fr; }
    .home-view h1 { font-size: 3rem; }
    .section-padding { padding-top: 100px; padding-left: 20px; padding-right: 20px; }
    .story-container, .article-container { padding: 1.5rem; }
}
@media (max-width: 480px) {
    .masonry-grid { column-count: 1; }
}
/* =========================================
   About Page - Cinematic Magazine Style
   ========================================= */
.cinematic-about {
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.about-hero {
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 50px;
}

.about-hero-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.4;
    filter: grayscale(100%) contrast(1.5);
}

.about-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 80%);
    z-index: 2;
}

.about-hero-title {
    position: relative;
    z-index: 3;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: 5px;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 100px;
}

.intro-left p, .intro-right p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #a1a1aa;
    margin-bottom: 15px;
    text-align: justify;
}

.intro-left strong { color: #fff; }

.intro-center {
    display: flex;
    justify-content: center;
}

.intro-avatar {
    width: 100%;
    max-width: 300px;
    transform: rotate(5deg);
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    filter: grayscale(50%) contrast(1.2);
}

.intro-right h2 {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 20px;
}

.quote {
    font-style: italic;
    border-left: 3px solid var(--color-2);
    padding-left: 15px;
    color: #fff !important;
}

.huge-title {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    letter-spacing: -2px;
    opacity: 0.8;
    display: none;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.right-align { text-align: right; }

.phase-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 60px;
}

.phase-row {
    display: flex;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
    border-bottom: none;
}

.phase-row:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
}

.phase-row:nth-child(even) .phase-year {
    text-align: right;
}

.phase-row:last-child {
    border-bottom: none;
}

.phase-year {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    width: 350px;
    flex-shrink: 0;
    color: var(--color-2);
    text-transform: uppercase;
    line-height: 1;
}

.time-prefix {
    font-size: 1.5rem;
    font-weight: 500;
    color: #a1a1aa;
    letter-spacing: 2px;
}

.phase-details h4 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.phase-details p {
    font-size: 1rem;
    color: #a1a1aa;
    line-height: 1.6;
    margin-bottom: 0;
}

.huge-stats {
    display: flex;
    gap: 20px; justify-content: space-between; flex-wrap: wrap;
    margin-bottom: 100px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-num {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #a1a1aa;
    line-height: 1.2;
}

.about-skills-section {
    position: relative;
    padding: 100px 0;
}



.skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: right;
    background: rgba(0,0,0,0.5);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.skill-row span {
    font-size: 1rem;
    color: #a1a1aa;
    margin-right: 15px;
}

.skill-row strong {
    font-size: 3rem;
    font-weight: 900;
}

.skills-image-bg {
    position: absolute;
    top: 50%; left: 10%;
    transform: translateY(-50%);
    width: 500px;
    z-index: 1;
    opacity: 0.2;
}
.skills-image-bg img {
    width: 100%;
    filter: blur(5px) grayscale(100%);
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
}

.conclusion {
    text-align: center;
    max-width: 600px;
    margin: 100px auto 50px;
}
.conclusion p { font-size: 1.1rem; color: #a1a1aa; margin-bottom: 20px; }
.conclusion .quote { border: none; font-size: 1.5rem; color: #fff !important; font-weight: 700; }

@media (max-width: 900px) {
    .about-intro { grid-template-columns: 1fr; text-align: center; }
    .intro-right h2 { font-size: 2.5rem; }
    .quote { border-left: none; border-top: 3px solid var(--color-2); padding-top: 15px; padding-left: 0; }
    .phase-row, .phase-row:nth-child(even) { flex-direction: column; gap: 15px; align-items: flex-start; text-align: left; padding: 40px 0; }
    .phase-row:nth-child(even) .phase-year { text-align: left; }
    .phase-year { font-size: 2.5rem; width: 100%; }
    .huge-stats { flex-direction: column; gap: 20px; align-items: center; }
    
    .skills-list { text-align: center; }
    .skill-row { display: flex; flex-direction: column; }
    .skill-row span { margin-right: 0; margin-bottom: 5px; }
}
@media (max-width: 600px) {
    .huge-title { text-align: center; }
}
.float-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 2;
    filter: blur(8px);
}
.shape-1 {
    width: 150px; height: 150px;
    background: linear-gradient(45deg, #792CA2, #443199);
    top: 20%; left: 10%;
    opacity: 0.6;
}
.shape-2 {
    width: 80px; height: 80px;
    background: linear-gradient(45deg, #C13383, #E05454);
    bottom: 10%; right: 20%;
    opacity: 0.8;
    display: none;
}
.shape-3 {
    width: 250px; height: 250px;
    background: linear-gradient(45deg, #2a165c, #000000);
    top: 40%; right: -5%;
    opacity: 0.5;
}
.marquee-container {
    width: 100vw;
    overflow: hidden;
    white-space: nowrap;
    padding: 15px 0;
    background: transparent;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    transform: none;
    margin: 100px 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    z-index: 10;
}
.marquee-content {
    display: inline-flex;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: marquee 35s linear infinite;
}
.marquee-content span {
    padding: 0;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.cursor-img {
    position: fixed;
    top: 0; left: 0;
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.cursor-img.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.outline-fill {
    color: transparent;
    -webkit-text-stroke: 2px rgba(255,255,255,0.3);
    background: linear-gradient(to right, var(--color-2) 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
}
/* =========================================
   CINEMATIC AWWWARDS EFFECTS
   ========================================= */

/* Hide native cursor globally on desktop */
@media (pointer: fine) {
    body, a, button, .cursor-hover-target {
        cursor: none !important;
    }
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 6px; height: 6px;
    background-color: var(--color-2); /* Neon glowing dot */
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
}

.custom-cursor-follower {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
}

/* Hover state for cursor follower */
.custom-cursor-follower.hover-active {
    width: 80px; height: 80px;
    background-color: #fff;
    border-color: #fff;
}
.custom-cursor-follower.hover-active::after {
    content: "VIEW"; /* Default text */
}
.custom-cursor-follower.hover-magnetic {
    width: 60px; height: 60px;
    background-color: transparent;
    border-color: var(--color-2);
}

/* Film Grain Overlay */
.film-grain {
    position: fixed;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    pointer-events: none;
    z-index: 9990;
    background-image: url('data:image/svg+xml,%3Csvg viewBox=\"0 0 200 200\" xmlns=\"http://www.w3.org/2000/svg\"%3E%3Cfilter id=\"noiseFilter\"%3E%3CfeTurbulence type=\"fractalNoise\" baseFrequency=\"0.65\" numOctaves=\"3\" stitchTiles=\"stitch\"/%3E%3C/filter%3E%3Crect width=\"100%25\" height=\"100%25\" filter=\"url(%23noiseFilter)\" opacity=\"0.05\"/%3E%3C/svg%3E');
    animation: grainScroll 1s steps(2) infinite;
    opacity: 0.8;
    display: none;
}

@keyframes grainScroll {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
    100% { transform: translate(0, 0); }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: #050505;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform-origin: top;
}

.preloader-counter {
    font-size: 8rem;
    font-weight: 900;
    color: var(--color-2);
    margin-bottom: 20px;
    font-variant-numeric: tabular-nums;
}

.preloader-name {
    font-size: 1.5rem;
    letter-spacing: 10px;
    text-transform: uppercase;
    font-weight: 300;
    color: #fff;
    opacity: 0.5;
}

/* Page Transition Overlay */
.page-transition {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: var(--color-2);
    z-index: 9995;
    transform: translateY(100%); /* Hidden by default */
}

/* Magnetic Items */
.magnetic {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* SVG Displacement Target */
.image-ripple {
    filter: url(#ripple);
}
.phase-image {
    flex: 1.5;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.phase-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/5;
    transform: scale(1.1);
}
/* Editorial Phase Gallery */
.phase-gallery {
    flex: 2;
    position: relative;
    height: 600px;
    width: 100%;
}
.phase-gallery img {
    position: absolute;
    border-radius: 5px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    object-fit: cover;
}
.phase-gallery .img-main {
    width: 60%;
    height: 70%;
    top: 15%;
    left: 20%;
    z-index: 2;
}
.phase-gallery .img-sub {
    width: 45%;
    height: 55%;
    z-index: 1;
    filter: brightness(0.7);
    transition: filter 0.3s, z-index 0s;
}
.phase-gallery .img-sub:hover {
    filter: brightness(1.1);
    z-index: 10;
}
.phase-gallery .img-offset-1 { top: 0; left: 0; }
.phase-gallery .img-offset-2 { bottom: -10%; right: 5%; }
.phase-gallery .img-offset-3 { top: 30%; right: -5%; }
.phase-gallery.reverse .img-main { left: 10%; top: 10%; }
.phase-gallery.reverse .img-offset-1 { top: -5%; right: 0; }
.phase-gallery.reverse .img-offset-2 { bottom: 0; left: -10%; }

/* Skills Section Redesign */
.about-skills-new {
    padding: 150px 0;
}



.skill-number {
    font-size: 1.2rem;
    color: var(--color-2);
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
    letter-spacing: 2px;
}
.skill-box h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: -1px;
}
.skill-box p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}
﻿/* Spotlight Cards Effect */
.skills-grid {
    perspective: 1000px;
}
.skill-box {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    padding: 40px 30px;
    transform-style: preserve-3d;
    cursor: crosshair; /* Adds to the tech/developer feel */
    box-shadow: 0 0 0 rgba(0,0,0,0);
    transition: border-color 0.4s, box-shadow 0.4s;
    /* We handle scale/opacity via GSAP now */
}
.skill-box:hover {
    border-color: rgba(255,255,255,0.15);
}

/* Base static radial gradient for a subtle tint */
.skill-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(138, 43, 226, 0.05), transparent 60%);
    pointer-events: none;
    z-index: 1;
}

/* Hover glow that tracks mouse */
.skill-box .glow {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.12), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 2;
}
.skill-box:hover .glow {
    opacity: 1;
}

/* Shimmer sweep effect */
.skill-box::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease-out;
    pointer-events: none;
    z-index: 3;
}
.skill-box:hover::after {
    left: 200%;
}

/* Make sure text stays above effects */
.skill-box .skill-number,
.skill-box h3,
.skill-box p {
    position: relative;
    z-index: 10;
}
/* Blog Carousel / Kokonut UI style */
.carousel-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.carousel-controls {
    display: flex;
    gap: 10px;
}
.carousel-controls .nav-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.carousel-controls .nav-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 30px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
    margin: 0 -20px;
    padding: 0 20px;
}
.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-card {
    flex: 0 0 320px; 
    scroll-snap-align: start;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.15);
}
.carousel-card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.carousel-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.carousel-card:hover .carousel-card-img-wrapper img {
    transform: scale(1.05);
}
.carousel-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.9);
    color: #000;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.carousel-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.carousel-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}
.carousel-card-excerpt {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    flex: 1;
}
.carousel-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 15px;
}
/* Dynamic Greeting Text */
.dynamic-greeting-container {
    height: 60px;
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 5px;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text);
    overflow: hidden;
}
.greeting-item {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
}
.greeting-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-2);
    border-radius: 50%;
}

/* Ensure the cinematic hero content stays above the background */
.home-view-cinematic .hero-image-wrapper,
.home-view-cinematic .hero-overlay-content {
    z-index: 2;
}
.home-view-cinematic .hero-image-wrapper {
    mix-blend-mode: screen;
}

/* Beams Background CSS */
.beams-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    filter: blur(35px);
    transform: translateZ(0); /* force GPU acceleration */
}
.beams-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: rgba(10, 10, 10, 0.2);
    
    -webkit-
}

/* Morphic Navbar */
.morphic-nav {
    display: flex;
    list-style: none;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.morphic-nav > li {
    display: block;
}
.morphic-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* fallback */
    padding: 8px 18px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 0;
    margin: 0;
    text-decoration: none;
}
.morphic-nav > li:not(:last-child) .morphic-link {
    border-right: 1px solid rgba(255,255,255,0.05); /* subtle divider when flat */
}
.morphic-link.active-morphic {
    background: #fff;
    color: #000;
    margin: 0 6px;
    border-radius: 12px;
    font-weight: 600;
    border: none !important;
}
.morphic-link.active-morphic:hover {
    color: #000 !important;
}
.morphic-link.morphic-rounded-l {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}
.morphic-link.morphic-rounded-r {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    border-right: none !important; /* no divider if rounded */
}
/* Ensure hover doesn't break morphic layout */
.morphic-link:not(.active-morphic):hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
/* Make sure dropdown doesn't clip */
.morphic-nav .dropdown-content {
    top: 120%;
}
