:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-muted: #cccccc;
    --accent-color: #ffffff;
    --accent-hover: #eeeeee;
    --cursor-size: 20px;
    --cursor-x: 50%;
    --cursor-y: 50%;
    
    /* Font Families */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Font Sizes */
    --text-xs: 0.65rem;
    --text-sm: 0.8rem;
    --text-base: 0.85rem;
    --text-lg: 0.95rem;
    --text-xl: 1.1rem;
    --text-2xl: 1.3rem;
    --text-3xl: 1.7rem;
    --text-4xl: 2rem;
    --text-5xl: 2.6rem;
}

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

html,
body {
    width: 100%;
    background-color: #000000;
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 17px;
    line-height: 1.6;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
    html, body {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    html, body {
        font-size: 15px;
    }
}

body {
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
    height: 100vh;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: all;
}

.loader-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 5rem);
    color: white;
    overflow: hidden;
    display: flex;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.letter {
    display: inline-block;
    transform-origin: center;
    opacity: 0;
}

/* Custom Cursor */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--cursor-size);
    height: var(--cursor-size);
    border: 1px solid white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

#cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    filter: url('#goo');
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

#cursor.hidden,
#cursor-follower.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Hide cursor on mobile devices */
@media (max-width: 768px) {
    #cursor,
    #cursor-follower {
        display: none !important;
    }
}

#cursor.active {
    background-color: white;
    mix-blend-mode: difference;
    border: none;
    transform: translate(-50%, -50%) scale(2.5);
}

/* WebGL - Move to z-index 0 so it's above the body bg but behind content */
#webgl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    /* Allow clicks to pass through to content */
    /* Removed opacity: 0.6 so the light effect is more visible */
}

/* Content Wrapper - Move to z-index 1 */
main {
    position: relative;
    z-index: 1;
}

/* Typography */
h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h3 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    letter-spacing: -0.01em;
}

h4 {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 500;
}

p {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

strong {
    color: var(--text-color);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Sections */
section {
    width: 100%;
    min-height: 100vh;
    padding: 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.section-header p {
    text-align: center;
    margin-bottom: 3rem;
}

/* Hero */
.hero {
    align-items: flex-start;
}

.hero .outline {
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.5);
    color: transparent;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* Marquee */
.marquee-section {
    padding: 10rem 0;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    min-height: 40vh;
}

.marquee-track {
    white-space: nowrap;
    will-change: transform;
}

.marquee-content h1 {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 4vw, 3rem);
    padding-right: 2vw;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    opacity: 0.7;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Hidden Content / Flashlight */
.hidden-content {
    background-color: #000;
    color: #333;
    /* Dark text normally, revealed to be bright? Or just hidden */
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hidden-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hidden-wrapper h2 {
    color: #fff;
    opacity: 0.1;
    /* Dim when not lit */
}

/* Overlay that hides things */
.flashlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 200px at var(--cursor-x) var(--cursor-y), transparent 0%, rgba(0, 0, 0, 0.98) 100%);
    z-index: 2;
    pointer-events: none;
    /* Let clicks pass through */
    transition: background 0.05s ease-out;
}

/* Mobile touch-friendly overlay */
@media (max-width: 768px) {
    .flashlight-overlay {
        background: radial-gradient(circle 120px at var(--cursor-x) var(--cursor-y), transparent 0%, rgba(0, 0, 0, 0.98) 100%);
    }
}

/* The secret text is only fully visible when the hole is over it */
.secret-text {
    margin-top: 2rem;
    color: var(--accent-color);
}

/* About Section */
.about {
    min-height: auto;
    padding: 10vw 5vw;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s;
}

.about-image:hover img {
    filter: grayscale(0%);
}

/* Skills Section - FIXED VISIBILITY */
.skills {
    align-items: center;
    padding: 10vw 0;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-bubble {
    width: 120px;
    height: 120px;
    /* Much brighter border and visible background */
    background: rgba(20, 20, 20, 0.8);
    /* Dark but opaque enough to hide potential background noise, with a lighter border */
    border: 2px solid rgba(255, 255, 255, 0.6);
    /* High contrast border */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    /* Glow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
    z-index: 10;
    /* Ensure on top */
}

.skill-bubble:nth-child(even) {
    animation-duration: 7s;
    animation-delay: 1s;
}

.skill-bubble:nth-child(3n) {
    animation-duration: 5s;
    animation-delay: 2s;
}

.skill-bubble span {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0;
    color: #ffffff;
    z-index: 2;
    transition: transform 0.3s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.skill-bubble:hover {
    width: 180px;
    height: 180px;
    border-radius: 20px;
    /* Square with rounded corners */
    background: rgba(255, 255, 255, 0.95);
    /* Bright white on hover */
    border-color: #ffffff;
    transform: scale(1.1);
    z-index: 20;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
}

.skill-bubble:hover span {
    color: #000000;
    /* Invert text color on bright background */
    transform: translateY(-25px);
    text-shadow: none;
}

.skill-bubble::after {
    content: attr(data-desc);
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333333;
    /* Dark text for description */
    padding: 0 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s 0.1s;
}

.skill-bubble:hover::after {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Projects - Swiper Updated */
.projects {
    overflow: hidden;
    perspective: 1000px;
}

.swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

/* Swiper Slide as Anchor */
.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    height: 480px;
    /* Taller for stars */
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    display: block;
    /* Important for anchor */
    text-decoration: none;
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-image {
    width: 100%;
    height: 100%;
    /* Fill slide */
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.swiper-slide:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    transform: translateY(100%);
    transition: transform 0.3s;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.swiper-slide:hover .card-content {
    transform: translateY(0);
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    color: white;
    margin: 0;
}

.stars {
    color: #ffd700;
    font-size: var(--text-base);
    letter-spacing: 2px;
}

.card-content p {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    color: #ccc;
    margin: 0;
}

/* Cursor Arrow State */
#cursor.arrow {
    background-color: transparent;
    border: none;
    mix-blend-mode: normal;
}

#cursor.arrow::after {
    content: '->';
    /* Hide dot */
}

#cursor-follower {
    /* Base follower styles need transition for smooth morphing */
    transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1),
        height 0.4s cubic-bezier(0.19, 1, 0.22, 1),
        background-color 0.4s ease,
        border-radius 0.4s ease;
}

#cursor-follower.arrow {
    width: 80px;
    height: 80px;
    background-color: var(--accent-color);
    border: 2px solid var(--accent-color);
    mix-blend-mode: normal;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: center;
    /* JS handles translation, CSS handles size */
}

#cursor-follower.arrow::after {
    content: 'Visit';
    color: white;
    font-size: 1rem;
    font-weight: bold;
    opacity: 0;
    transform: scale(0) rotate(45deg);
    animation: arrowPop 0.4s forwards 0.1s;
}

@keyframes arrowPop {
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Contact */
.contact {
    background-color: #050505;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: var(--text-lg);
    font-family: var(--font-primary);
}

.hover-link {
    transition: padding-left 0.3s, color 0.3s;
    cursor: pointer;
    display: inline-block;
}

.hover-link:hover {
    padding-left: 20px;
    color: var(--accent-color);
}

footer {
    margin-top: auto;
    font-family: var(--font-primary);
    font-size: var(--text-xs);
    opacity: 0.5;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    padding-top: 2rem;
    text-align: center;
}

/* Animations Helpers */
.reveal-text {
    opacity: 0;
    transform: translateY(50px);
}

/* Navigation Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 5vw;
    transition: background-color 0.3s, padding 0.3s;
}

.main-header.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 5vw;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    font-family: var(--font-primary);
    color: var(--text-muted);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #fff;
}

.nav-cta {
    background: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: #000000 !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary {
    font-family: var(--font-primary);
    background: #ffffff;
    color: #000000;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: var(--text-sm);
    transition: all 0.3s;
    border: 2px solid #ffffff;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    background: #000000;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-secondary {
    font-family: var(--font-primary);
    background: transparent;
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: var(--text-sm);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
    letter-spacing: 0.02em;
}

.btn-secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

.hero .highlight {
    color: var(--accent-color);
}

/* About Section Enhancements */
.about-info {
    margin-top: 2rem;
}

.info-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.info-list li {
    font-family: var(--font-primary);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.info-list strong {
    color: #fff;
    font-weight: 600;
}

.download-cv {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Experience & Education Timeline */
.experience, .education {
    padding: 8vw 5vw;
    min-height: auto;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-color);
}

.timeline-date {
    font-family: var(--font-mono);
    color: #ffffff;
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: #fff;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.timeline-content h4 {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 0.8rem;
}

.timeline-content p {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

/* Services Section */
.services {
    padding: 8vw 5vw;
    min-height: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s;
}

.service-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: #fff;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.service-card p {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

/* Blog Section */
.blog {
    padding: 8vw 5vw;
    min-height: auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.blog-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
}

.blog-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.blog-content h3 {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    color: #fff;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    font-weight: 600;
}

.blog-content p {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

/* Contact Section Enhancements */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 3rem auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 2rem;
    color: var(--accent-color);
}

.contact-item h4 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: var(--text-base);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.contact-item a, .contact-item p {
    font-family: var(--font-primary);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.contact-item a:hover {
    color: #ffffff;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    transition: border-color 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffffff;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    font-size: 1.5rem;
    margin-top: 2rem;
}

.contact-links .hover-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.contact-links .hover-link i {
    font-size: 1.5rem;
}

/* Skill Bubble Size Adjustment for more items */
.skill-bubble {
    width: 100px;
    height: 100px;
}

.skill-bubble span {
    font-size: 0.85rem;
    text-align: center;
    padding: 0 5px;
}

.skill-bubble:hover {
    width: 140px;
    height: 140px;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s;
    }

    .nav-menu.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .info-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 300px;
    }

    .loader-title {
        font-size: 12vw;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta a {
        width: 100%;
        text-align: center;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 15vw;
    }

    h2 {
        font-size: 8vw;
    }

    .timeline::before {
        left: 5px;
    }

    .timeline-item {
        padding-left: 35px;
    }

    .timeline-item::before {
        left: 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-container {
        gap: 1.5rem;
    }
    
    .skill-bubble {
        width: 80px;
        height: 80px;
    }
    
    .skill-bubble span {
        font-size: 0.75rem;
    }
    
    .scroll-indicator {
        bottom: 1rem;
        right: 1rem;
        font-size: 0.7rem;
    }
    
    section {
        padding: 8vw 6vw;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-links .hover-link {
        font-size: 1.1rem;
    }
    
    /* Mobile flashlight is already handled above */
}

@media (max-width: 480px) {
    html, body {
        font-size: 15px;
    }
    
    .main-header {
        padding: 0.8rem 4vw;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .skill-bubble {
        width: 70px;
        height: 70px;
    }
    
    .skill-bubble span {
        font-size: 0.7rem;
    }
    
    .skill-bubble:hover {
        width: 100px;
        height: 100px;
    }
    
    .swiper-slide {
        width: 250px;
        height: 400px;
    }
    
    .about-image {
        height: 250px;
    }
    
    section {
        padding: 10vw 5vw;
    }
    
    /* Improve mobile flashlight section */
    .hidden-content {
        min-height: 80vh;
    }
    
    .flashlight-overlay {
        background: radial-gradient(circle 80px at var(--cursor-x) var(--cursor-y), transparent 0%, rgba(0, 0, 0, 0.98) 100%) !important;
    }
    
    .hidden-wrapper p {
        font-size: var(--text-sm);
        margin-bottom: 1.5rem;
    }
    
    .secret-text {
        margin-top: 1.5rem;
    }
    
    .secret-text h3 {
        font-size: var(--text-lg);
        margin-bottom: 0.5rem;
    }
}

/* Blog Post Pages */
.blog-article {
    padding: 8vw 5vw 6vw;
    max-width: 900px;
    margin: 0 auto;
}

.blog-article header {
    margin-bottom: 2rem;
}

.blog-article .meta {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.blog-article h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.blog-article img {
    width: 100%;
    border-radius: 16px;
    margin: 2rem 0;
    object-fit: cover;
}

.blog-article p {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 1rem;
}

.back-link:hover {
    color: var(--accent-hover);
}