* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    /* Remove tap highlight on iOS */
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE10+/Edge */
    user-select: none;
    /* Standard */
}

/* Disable text selection on images and key content */
img,
canvas,
.profile-image,
.project-card,
.hero-content {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: auto;
}

/* Hide scrollbar for all browsers while keeping scroll functionality */
*::-webkit-scrollbar {
    display: none;
}

* {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

:root {
    --neon-yellow: #CDFF00;
    --dark-bg: #1a1a1a;
    --darker-bg: #0d0d0d;
    --white: #ffffff;
}

html {
    -webkit-text-size-adjust: 100%;
    /* Prevent text size adjustment on iOS */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden !important;
    /* Disable horizontal scroll */
    overflow-y: scroll !important;
    /* Force scrolling always enabled */
    scroll-behavior: auto;
    /* Instant scroll for faster response */
    height: 100%;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    max-width: 100vw;
    /* Prevent content from exceeding viewport width */
}

html::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

body {
    font-family: 'Oswald', sans-serif;
    background-color: var(--neon-yellow);
    color: var(--white);
    overflow-x: hidden !important;
    /* Disable horizontal scroll */
    overflow-y: scroll !important;
    /* Force scrolling always enabled */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
    position: relative;
    min-height: 100vh;
    height: 100%;
    max-width: 100vw;
    /* Prevent content from exceeding viewport width */
    width: 100%;
}

body::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    overflow: hidden;
}

.preloader::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(205, 255, 0, 0.05) 0%, transparent 70%);
}

.preloader-content {
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preloader-logo {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    width: 100%;
}

.logo-letters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    position: relative;
}

.letter-t,
.letter-w {
    font-size: 120px;
    font-weight: 700;
    color: var(--neon-yellow);
    opacity: 0;
    position: relative;
    font-family: 'Oswald', sans-serif;
    line-height: 1;
}

.letter-t {
    animation: letterFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.letter-w {
    animation: letterFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

@keyframes letterFadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Geometric Shape Behind Letters */
.logo-letters::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--neon-yellow);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    opacity: 0;
    animation: squareExpand 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
    z-index: -1;
}

@keyframes squareExpand {
    0% {
        transform: translate(-50%, -50%) rotate(45deg) scale(0);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
        opacity: 0.15;
    }
}

.preloader-tagline {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 6px;
    color: var(--white);
    text-transform: uppercase;
    opacity: 0;
    position: relative;
    animation: taglineFadeIn 0.8s ease-out 1.4s forwards;
    width: 100%;
    text-align: center;
}

@keyframes taglineFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 0.7;
        transform: translateY(0);
    }
}

/* Animated Dots */
.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    opacity: 0;
    animation: dotsFadeIn 0.6s ease-out 1.8s forwards;
    width: 100%;
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--neon-yellow);
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotsFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes dotBounce {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Loading Percentage - Hidden by default */
.loading-bar-container,
.loading-bar,
.loading-percentage {
    display: none;
}

/* Hide scrollbar for navigation elements but keep functionality */
.left-nav,
.right-social {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.left-nav::-webkit-scrollbar,
.right-social::-webkit-scrollbar {
    display: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10002;
    /* Above mobile menu */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: linear-gradient(180deg, rgba(205, 255, 0, 0.95) 0%, rgba(205, 255, 0, 0.85) 100%);
    backdrop-filter: blur(10px);
}

.logo h1 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--darker-bg);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-right button {
    opacity: 1;
}

.store-btn {
    background-color: var(--darker-bg);
    color: var(--white);
    border: 2px solid var(--darker-bg);
    padding: 12px 24px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    z-index: 10;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.store-btn svg {
    fill: var(--white);
}

.store-btn:hover {
    background-color: var(--white);
    color: var(--darker-bg);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.store-btn:hover svg {
    fill: var(--darker-bg);
}

.hamburger {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    z-index: 10001;
    /* Always on top */
    position: relative;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--darker-bg);
    transition: all 0.3s ease;
    border-radius: 2px;
    pointer-events: none;
}

/* Change hamburger color when menu is open */
.mobile-menu.active~.header .hamburger span,
body.menu-open .hamburger span {
    background-color: var(--darker-bg) !important;
}

/* Force hamburger visibility when menu is open */
body.menu-open .hamburger {
    position: relative !important;
    z-index: 10001 !important;
    pointer-events: all !important;
}

body.menu-open .hamburger span {
    opacity: 1 !important;
    visibility: visible !important;
}

.hamburger:hover span {
    background-color: var(--dark-bg);
}

.hamburger:active {
    transform: scale(0.95);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height for mobile */
    background-color: var(--darker-bg);
    z-index: 10000;
    transform: translateX(100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.mobile-menu::-webkit-scrollbar {
    display: none;
}

.mobile-menu.active {
    /* Transform is handled by GSAP */
    transform: translateZ(0);
    /* Force hardware acceleration */
}

.mobile-menu-content {
    padding: 100px 40px 40px;
}

.menu-section {
    margin-bottom: 60px;
}

.menu-section h3 {
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.menu-section ul {
    list-style: none;
}

.menu-section ul li {
    margin-bottom: 15px;
}

.menu-section ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 8px 0;
    /* Larger touch target */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.menu-section ul li a:hover,
.menu-section ul li a.highlight {
    color: var(--neon-yellow);
    text-shadow: 0 0 20px rgba(205, 255, 0, 0.5);
}

.menu-section ul li a:active {
    color: var(--neon-yellow);
    transform: scale(0.98);
}

/* Main Content */
.main-content {
    position: relative;
    min-height: 100vh;
    display: flex;
    padding-top: 80px;
}

/* Left Navigation */
.left-nav {
    position: absolute;
    left: 40px;
    top: 200px;
    z-index: 100;
    text-align: left;
}

.nav-label,
.social-label {
    font-size: 10px;
    color: var(--darker-bg);
    margin-bottom: 20px;
    letter-spacing: 2px;
    opacity: 0.8;
    font-weight: 600;
}

.left-nav ul {
    list-style: none;
    margin-bottom: 20px;
}

.left-nav ul li {
    margin-bottom: 12px;
}

.left-nav ul li a {
    color: var(--darker-bg);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.left-nav ul li a:hover {
    color: var(--dark-bg);
    transform: translateX(5px);
}

.left-nav ul li a.highlight {
    color: var(--darker-bg);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(205, 255, 0, 0.3);
}

.nav-divider {
    height: 2px;
    background-color: var(--darker-bg);
    margin: 20px 0;
    opacity: 0.3;
    width: 60px;
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 80px;
    margin: 0 200px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background-image: url('profile.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 1;
    border-radius: 50%;
}

.hero-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding: 80px 0 200px;
    text-align: center;
    z-index: 2;
}

.code-brackets {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 0;
}

.bracket {
    font-size: 120px;
    font-weight: 700;
    color: var(--neon-yellow);
    opacity: 0.3;
    font-family: 'Courier New', monospace;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

.profile-image-container {
    position: relative;
    width: 450px;
    height: 400px;
    margin: 0 auto 40px;
    z-index: 5;
}

.profile-image {
    width: 100%;
    height: 100%;
    position: relative;
    opacity: 0;
    cursor: pointer;
}

.profile-base {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    border: none;
    box-shadow: none;
    transition: transform 0.3s ease;
    display: block;
}

.profile-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    pointer-events: none;
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 0.01s ease;
}

.profile-reveal {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    border: none;
    filter: none;
    box-shadow: none;
    transform: scale(1.1);
}

.profile-image:hover .profile-base {
    transform: scale(1.02);
}

/* Magic Canvas for Particles */
.magic-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    border-radius: 0;
}

/* Magic Glow Effect */
.magic-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 0;
    background: transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.profile-image:hover .magic-glow {
    opacity: 1;
}

@keyframes magicPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.decorative-circle {
    position: absolute;
    right: -50px;
    top: 50%;
    width: 20px;
    height: 20px;
    border: 3px solid var(--darker-bg);
    border-radius: 50%;
    z-index: 10;
    animation: float-circle 3s ease-in-out infinite;
}

@keyframes float-circle {

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

    50% {
        transform: translateY(10px);
    }
}

.hero-subtitle {
    margin: 40px 0 50px;
    z-index: 5;
    position: relative;
    opacity: 0;
}

.hero-subtitle p {
    font-size: clamp(20px, 2.5vw, 32px);
    color: var(--darker-bg);
    font-weight: 600;
    letter-spacing: 1px;
    word-spacing: 3px;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    z-index: 5;
    position: relative;
    opacity: 0;
}

.primary-cta,
.secondary-cta {
    padding: 16px 32px;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    /* Better touch response */
    user-select: none;
}

.primary-cta {
    background-color: var(--darker-bg);
    color: var(--neon-yellow);
}

.primary-cta:hover {
    background-color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.primary-cta:active {
    transform: translateY(-1px) scale(0.98);
}

.secondary-cta {
    background-color: transparent;
    color: var(--darker-bg);
    border: 2px solid var(--darker-bg);
}

.secondary-cta:hover {
    background-color: var(--darker-bg);
    color: var(--neon-yellow);
    transform: translateY(-3px);
}

.secondary-cta:active {
    transform: translateY(-1px) scale(0.98);
}

/* Right Social Links */
.right-social {
    position: absolute;
    right: 40px;
    top: 200px;
    z-index: 100;
    text-align: right;
}

.right-social ul {
    list-style: none;
}

.right-social ul li {
    margin-bottom: 12px;
}

.right-social ul li a {
    color: var(--darker-bg);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.right-social ul li a:hover {
    color: var(--dark-bg);
    transform: translateX(-5px);
}

/* Background Pattern */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(13, 13, 13, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

/* Add text readability improvements */
.hero-title,
.hero-subtitle p,
.left-nav ul li a,
.right-social ul li a,
.footer-left p,
.footer-right a {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Marquee */
.marquee-container {
    position: relative;
    left: 0;
    right: 0;
    z-index: 50;
    overflow: hidden;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(205, 255, 0, 0.3);
    border-bottom: 2px solid rgba(205, 255, 0, 0.3);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3), 0 5px 20px rgba(0, 0, 0, 0.3);
    margin-top: 0;
}

.marquee-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-yellow), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* Projects Section */
.projects-section {
    background-color: var(--darker-bg);
    padding: 120px 40px 120px;
    position: relative;
    z-index: 10;
    margin-bottom: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: -1px;
}

.section-title .highlight {
    color: var(--neon-yellow);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(205, 255, 0, 0.1);
    border-radius: 8px;
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-yellow), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(205, 255, 0, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(205, 255, 0, 0.1);
}

.project-number {
    font-size: 14px;
    color: var(--neon-yellow);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.project-card h3 {
    font-size: 28px;
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 700;
}

.project-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 16px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.project-tags span {
    background: rgba(205, 255, 0, 0.1);
    color: var(--neon-yellow);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.project-link {
    color: var(--neon-yellow);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: translateX(10px);
    opacity: 0.8;
}

/* Marquee */

.marquee {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.marquee-content {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 80px;
    padding: 20px 0;
    will-change: transform;
}

.tech-item {
    font-size: 24px;
    font-weight: 700;
    color: var(--neon-yellow);
    white-space: nowrap;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(205, 255, 0, 0.3);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Footer */
.footer {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: linear-gradient(0deg, rgba(205, 255, 0, 0.95) 0%, rgba(205, 255, 0, 0.85) 100%);
    backdrop-filter: blur(10px);
}

.footer-left p {
    font-size: 11px;
    color: var(--darker-bg);
    opacity: 0.8;
    font-weight: 500;
}

.business-btn {
    background-color: var(--darker-bg);
    color: var(--neon-yellow);
    border: 2px solid var(--neon-yellow);
    padding: 12px 24px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.business-btn:hover {
    background-color: var(--neon-yellow);
    color: var(--darker-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(205, 255, 0, 0.4);
}

.footer-right {
    display: flex;
    gap: 30px;
}

.footer-right a {
    color: var(--darker-bg);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: var(--dark-bg);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--neon-yellow);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(205, 255, 0, 0.4);
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
    will-change: transform;
}

.scroll-to-top.visible {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.scroll-to-top:hover {
    background: var(--white);
    box-shadow: 0 6px 20px rgba(205, 255, 0, 0.5);
    transform: translateY(-3px);
}

.scroll-to-top svg {
    color: var(--darker-bg);
    pointer-events: none;
    width: 24px;
    height: 24px;
}

.scroll-to-top:active {
    transform: scale(0.9);
    transition: transform 0.1s ease;
}

/* Mobile-specific styles for scroll-to-top */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        z-index: 9998;
        box-shadow: 0 5px 20px rgba(205, 255, 0, 0.5);
    }

    .scroll-to-top svg {
        width: 26px;
        height: 26px;
    }

    .scroll-to-top:hover {
        transform: none;
        /* Remove hover effect on mobile */
        background: var(--neon-yellow);
    }

    .scroll-to-top:active {
        transform: scale(0.85);
        background: var(--white);
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }

    .scroll-to-top svg {
        width: 22px;
        height: 22px;
    }

    .scroll-to-top:hover {
        transform: none;
        /* Remove hover effect on mobile */
    }

    .scroll-to-top:active {
        transform: scale(0.9);
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }

    .scroll-to-top svg {
        width: 22px;
        height: 22px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {

    .left-nav,
    .right-social {
        display: none;
    }

    .hero {
        margin: 0 60px;
    }

    .hero-content {
        padding: 60px 0 150px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .logo h1 {
        font-size: 14px;
    }

    .store-btn {
        padding: 10px 16px;
        font-size: 12px;
    }

    .hero {
        margin: 0;
        padding: 0 20px;
    }

    .hero-content {
        padding: 40px 0 120px;
    }

    .bracket {
        font-size: 60px;
    }

    .profile-image-container {
        width: 250px;
        height: 250px;
    }

    .profile-image {
        width: 250px;
        height: 250px;
    }

    .hero-subtitle p {
        font-size: 16px;
        line-height: 1.6;
        letter-spacing: 0.5px;
        word-spacing: 2px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        gap: 15px;
    }

    .primary-cta,
    .secondary-cta {
        width: 100%;
        padding: 14px 24px;
        font-size: 14px;
    }

    .projects-section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: clamp(28px, 6vw, 48px);
        margin-bottom: 40px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project-card {
        padding: 25px;
    }

    .project-card h3 {
        font-size: 22px;
    }

    .project-card p {
        font-size: 14px;
    }

    .footer {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        text-align: center;
    }

    .business-btn {
        padding: 10px 18px;
        font-size: 12px;
    }

    .footer-right {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-right a {
        font-size: 11px;
    }

    .marquee-content {
        gap: 40px;
    }

    .tech-item {
        font-size: 16px;
    }

    .mobile-menu-content {
        padding: 80px 30px 30px;
    }

    .menu-section ul li a {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 12px;
        line-height: 1.3;
    }

    .store-btn {
        padding: 8px 12px;
        font-size: 11px;
        gap: 4px;
    }

    .store-btn svg {
        width: 12px;
        height: 12px;
    }

    .hamburger {
        padding: 8px;
    }

    .hamburger span {
        width: 24px;
        height: 2.5px;
    }

    .hero-content {
        padding: 30px 0 100px;
    }

    .bracket {
        font-size: 50px;
        top: -10px;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .hero-subtitle {
        margin: 20px 0 35px;
    }

    .hero-subtitle p {
        font-size: 13px;
        line-height: 1.8;
        letter-spacing: 0.3px;
        word-spacing: 1px;
    }

    .cta-buttons {
        gap: 12px;
    }

    .primary-cta,
    .secondary-cta {
        padding: 12px 20px;
        font-size: 13px;
    }

    .projects-section {
        padding: 50px 15px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .project-card {
        padding: 20px;
    }

    .project-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .project-card p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .project-tags {
        gap: 8px;
        margin-bottom: 20px;
    }

    .project-tags span {
        font-size: 11px;
        padding: 5px 10px;
    }

    .project-link {
        font-size: 13px;
    }

    .business-btn {
        padding: 10px 16px;
        font-size: 11px;
    }

    .business-btn svg {
        width: 16px;
        height: 16px;
    }

    .footer-left p {
        font-size: 10px;
    }

    .footer-right a {
        font-size: 10px;
    }

    .tech-item {
        font-size: 14px;
    }

    .marquee-content {
        gap: 30px;
        padding: 15px 0;
    }

    .menu-section h3 {
        font-size: 11px;
    }

    .menu-section ul li a {
        font-size: 18px;
    }
}

/* ===== COOL ANIMATIONS ===== */

/* Gradient text animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Removed duplicate .hero-title .highlight style - using simpler version above */

/* Glow pulse animation */
@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 5px var(--neon-yellow), 0 0 10px var(--neon-yellow);
    }

    50% {
        box-shadow: 0 0 20px var(--neon-yellow), 0 0 30px var(--neon-yellow), 0 0 40px var(--neon-yellow);
    }
}

.primary-cta {
    animation: glow-pulse 2s ease-in-out infinite;
}

/* 3D card effect */
.project-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Shimmer effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.secondary-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.secondary-cta:hover::before {
    left: 100%;
}

/* Typewriter effect */
@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* Bounce in animation */
@keyframes bounce-in {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Slide in from left */
@keyframes slide-in-left {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Slide in from right */
@keyframes slide-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Rotate in animation */
@keyframes rotate-in {
    from {
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }

    to {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}

/* Gradient border animation */
@keyframes gradient-border {
    0% {
        border-image-source: linear-gradient(45deg, var(--neon-yellow), var(--white));
    }

    50% {
        border-image-source: linear-gradient(45deg, var(--white), var(--neon-yellow));
    }

    100% {
        border-image-source: linear-gradient(45deg, var(--neon-yellow), var(--white));
    }
}

/* Neon glow text */
.neon-text {
    text-shadow:
        0 0 5px var(--neon-yellow),
        0 0 10px var(--neon-yellow),
        0 0 20px var(--neon-yellow),
        0 0 40px var(--neon-yellow);
}

/* Hover lift effect */
.project-card,
.primary-cta,
.secondary-cta {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover,
.primary-cta:hover,
.secondary-cta:hover {
    transform: translateY(-5px);
}

/* Infinite scroll indicator */
@keyframes scroll-indicator {

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

    50% {
        transform: translateY(10px);
        opacity: 1;
    }
}

/* Blur on scroll effect */
@keyframes blur-in {
    from {
        filter: blur(10px);
        opacity: 0;
    }

    to {
        filter: blur(0);
        opacity: 1;
    }
}

/* Color shift animation */
@keyframes color-shift {

    0%,
    100% {
        filter: hue-rotate(0deg);
    }

    50% {
        filter: hue-rotate(20deg);
    }
}

/* Tech item hover effect */
.tech-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-item:hover {
    text-shadow: 0 0 10px var(--neon-yellow), 0 0 20px var(--neon-yellow);
}

/* Decorative circle pulse */
.decorative-circle {
    animation: float-circle 3s ease-in-out infinite, glow-pulse 2s ease-in-out infinite;
}

/* Loading spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scale in animation */
@keyframes scale-in {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Fade slide up */
@keyframes fade-slide-up {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Apply animations to elements */
.animate-fade-in {
    animation: fade-slide-up 0.8s ease-out forwards;
}

.animate-bounce-in {
    animation: bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.animate-rotate-in {
    animation: rotate-in 0.8s ease-out forwards;
}

/* Smooth transitions for all interactive elements */
a,
button,
.project-card,
.tech-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== SKILLS SECTION ===== */
.skills-section {
    padding: 100px 20px;
    background-color: var(--darker-bg);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.skill-category {
    background-color: var(--dark-bg);
    padding: 30px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--neon-yellow);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(205, 255, 0, 0.2);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.category-icon {
    color: var(--neon-yellow);
}

.skill-category h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--white);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.5px;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-yellow), #ffffff);
    border-radius: 10px;
    transition: width 1s ease-out;
    width: 0;
}

/* ===== EXPERIENCE SECTION ===== */
.experience-section {
    padding: 100px 20px;
    background-color: var(--neon-yellow);
}

.experience-section .section-title {
    color: var(--darker-bg);
}

.experience-section .section-title .highlight {
    color: var(--darker-bg);
}

.timeline {
    max-width: 900px;
    margin: 60px auto 0;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--darker-bg), transparent);
}

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

.timeline-dot {
    position: absolute;
    left: -8px;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: var(--darker-bg);
    border: 3px solid var(--neon-yellow);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 20px var(--darker-bg);
}

.timeline-content {
    background-color: var(--darker-bg);
    padding: 30px;
    border-radius: 8px;
    border: 2px solid var(--darker-bg);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    border-color: var(--neon-yellow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateX(10px);
}

.timeline-date {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--neon-yellow);
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--neon-yellow);
    margin-bottom: 15px;
    opacity: 0.9;
}

.timeline-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--white);
    opacity: 0.8;
    margin-bottom: 20px;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.experience-tags span {
    background-color: var(--darker-bg);
    color: var(--neon-yellow);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===== EDUCATION SECTION ===== */
.education-section {
    padding: 100px 20px;
    background-color: var(--dark-bg);
}

.education-section .section-title {
    color: var(--white);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.education-card {
    background-color: var(--darker-bg);
    padding: 35px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-yellow), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.education-card:hover::before {
    transform: scaleX(1);
}

.education-card:hover {
    border-color: var(--neon-yellow);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(205, 255, 0, 0.2);
}

.education-card.certification {
    border-left: 4px solid var(--neon-yellow);
}

.education-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--neon-yellow), rgba(205, 255, 0, 0.6));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--darker-bg);
    transition: all 0.3s ease;
}

.education-card:hover .education-icon {
    transform: rotate(5deg) scale(1.1);
}

.cert-icon {
    background: linear-gradient(135deg, #4CAF50, #81C784);
}

.education-content {
    position: relative;
}

.education-year {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--neon-yellow);
    background-color: rgba(205, 255, 0, 0.1);
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.education-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.3;
}

.education-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--neon-yellow);
    margin-bottom: 10px;
    opacity: 0.9;
}

.education-institution {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    opacity: 0.7;
    margin-bottom: 12px;
}

.education-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--white);
    opacity: 0.7;
    margin-bottom: 20px;
}

.education-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.education-highlights span {
    background-color: var(--dark-bg);
    color: var(--neon-yellow);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(205, 255, 0, 0.3);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 100px 20px;
    background-color: var(--darker-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--neon-yellow);
    margin-bottom: 20px;
    line-height: 1.3;
}

.contact-info p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--white);
    opacity: 0.8;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--dark-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-yellow);
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--neon-yellow);
    margin-bottom: 5px;
}

.contact-details a {
    font-size: 16px;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--neon-yellow);
}

.contact-details p {
    font-size: 16px;
    color: var(--white);
    opacity: 0.8;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background-color: var(--dark-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--neon-yellow);
    color: var(--darker-bg);
    transform: translateY(-3px);
}

.contact-form {
    background-color: var(--dark-bg);
    padding: 40px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.contact-form:hover {
    border-color: var(--neon-yellow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--darker-bg);
    border: 2px solid transparent;
    border-radius: 4px;
    color: var(--white);
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-yellow);
    background-color: var(--dark-bg);
}

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

.submit-btn {
    width: 100%;
    padding: 15px 30px;
    background-color: var(--neon-yellow);
    color: var(--darker-bg);
    border: none;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(205, 255, 0, 0.4);
}

.submit-btn svg {
    transition: transform 0.3s ease;
}

.submit-btn:hover svg {
    transform: translateX(5px);
}

.submit-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

.submit-btn .spinner {
    animation: form-spinner 1s linear infinite;
}

@keyframes form-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Form Status Messages */
.form-status {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    display: none;
}

.form-status.success {
    background-color: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-status.error {
    background-color: rgba(244, 67, 54, 0.15);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* hCaptcha Container */
.h-captcha-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.h-captcha {
    transform-origin: center;
}

/* Prevent hCaptcha elements from triggering scroll behavior */
.h-captcha *,
.h-captcha iframe,
.h-captcha-container * {
    scroll-behavior: auto !important;
}

/* Ensure hCaptcha challenge popup appears above everything */
div[style*="z-index: 2147483647"],
iframe[src*="hcaptcha"] {
    position: fixed !important;
}

/* ===== RESPONSIVE STYLES FOR NEW SECTIONS ===== */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .skill-category {
        padding: 25px;
    }

    .education-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .education-card {
        padding: 25px;
    }

    .education-icon {
        width: 60px;
        height: 60px;
    }

    .education-content h3 {
        font-size: 18px;
    }

    .timeline {
        padding-left: 30px;
    }

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

    .timeline-content {
        padding: 20px;
    }

    .timeline-content h3 {
        font-size: 18px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info h3 {
        font-size: 22px;
    }

    .contact-form {
        padding: 30px;
    }
}

@media (max-width: 480px) {

    .skills-section,
    .education-section,
    .experience-section,
    .contact-section {
        padding: 60px 20px;
    }

    .skills-grid,
    .education-grid {
        margin-top: 40px;
    }

    .education-card {
        padding: 20px;
    }

    .education-icon {
        width: 50px;
        height: 50px;
    }

    .education-content h3 {
        font-size: 16px;
    }

    .education-highlights {
        flex-direction: column;
    }

    .timeline {
        margin-top: 40px;
    }

    .contact-methods {
        gap: 20px;
    }

    .contact-method {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Preloader responsive */
    .preloader-content {
        padding: 0 30px;
    }

    .logo-letters {
        gap: 20px;
    }

    .letter-t,
    .letter-w {
        font-size: 80px;
    }

    .logo-letters::after {
        width: 140px;
        height: 140px;
        border-width: 2px;
    }

    .preloader-tagline {
        font-size: 10px;
        letter-spacing: 4px;
    }

    .loading-dots {
        margin-top: 40px;
        gap: 8px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }
}

/* ===== ADDITIONAL MOBILE RESPONSIVENESS FIXES ===== */
@media (max-width: 768px) {

    /* Ensure body doesn't overflow horizontally but can scroll vertically */
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    /* Fix hero background image */
    .hero::before {
        width: 250px;
        height: 250px;
        opacity: 0.1;
    }

    /* Fix profile image container */
    .profile-image-container {
        width: 220px !important;
        height: 220px !important;
        margin-bottom: 30px;
    }

    .profile-image {
        width: 220px !important;
        height: 220px !important;
    }

    /* Fix CTA buttons wrapping */
    .primary-cta,
    .secondary-cta {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Fix section titles */
    .section-title {
        font-size: clamp(24px, 6vw, 36px) !important;
    }

    /* Fix project cards */
    .project-card {
        margin-bottom: 0;
    }

    /* Fix tech tags wrapping */
    .project-tags,
    .tech-tags {
        flex-wrap: wrap;
    }

    /* Fix scroll to top button */
    #scrollToTop {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    #scrollToTop svg {
        width: 18px;
        height: 18px;
    }

    /* Fix mobile menu width */
    .mobile-menu {
        max-width: 100% !important;
    }

    /* Fix navigation sections */
    .left-nav,
    .right-social {
        display: none;
    }
}

@media (max-width: 480px) {

    /* Ultra-small screen fixes */
    .header {
        padding: 12px 15px !important;
    }

    .logo h1 {
        font-size: 10px !important;
    }

    .store-btn {
        padding: 7px 12px !important;
        font-size: 10px !important;
    }

    /* Hero ultra-compact */
    .hero {
        padding: 0 15px !important;
    }

    .hero::before {
        width: 200px;
        height: 200px;
    }

    .hero-content {
        padding: 25px 0 80px !important;
    }

    .profile-image-container {
        width: 180px !important;
        height: 180px !important;
        margin-bottom: 25px;
    }

    .profile-image {
        width: 180px !important;
        height: 180px !important;
        margin-bottom: 25px;
    }

    .hero-subtitle p {
        font-size: 12px !important;
        padding: 0 5px;
    }

    .cta-buttons {
        max-width: 260px;
    }

    .primary-cta,
    .secondary-cta {
        font-size: 12px !important;
        padding: 12px 18px !important;
    }

    /* Projects ultra-compact */
    .projects-section {
        padding: 50px 15px !important;
    }

    .section-title {
        font-size: 22px !important;
    }

    .project-card {
        padding: 18px !important;
    }

    .project-card h3 {
        font-size: 18px !important;
    }

    .project-card p {
        font-size: 12px !important;
    }

    .project-tags span,
    .tech-tag {
        font-size: 9px !important;
        padding: 4px 8px !important;
    }

    /* Footer ultra-compact */
    .footer {
        padding: 20px 15px !important;
    }

    /* Scroll to top ultra-compact */
    #scrollToTop {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }

    #scrollToTop svg {
        width: 16px;
        height: 16px;
    }

    /* Preloader ultra-compact */
    .preloader-content {
        padding: 0 20px;
    }

    .logo-letters {
        gap: 15px;
    }

    .letter-t,
    .letter-w {
        font-size: 64px;
    }

    .logo-letters::after {
        width: 120px;
        height: 120px;
        border-width: 2px;
    }

    .preloader-tagline {
        font-size: 9px;
        letter-spacing: 3px;
    }

    .loading-dots {
        margin-top: 35px;
        gap: 7px;
    }

    .dot {
        width: 7px;
        height: 7px;
    }
}

/* ===== FIX HORIZONTAL OVERFLOW ===== */
@media (max-width: 1024px) {

    /* Prevent horizontal scroll on tablets and mobile */
    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    * {
        max-width: 100%;
    }

    /* Fix any oversized containers */
    .hero,
    .projects-section,
    .footer {
        max-width: 100vw;
        box-sizing: border-box;
    }
}