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

:root {
    --primary-color: #00d2ff;
    --secondary-color: #1e88e5;
    --accent-blue: #00d2ff;
    --accent-green: #00e676;
    --accent-red: #ff5252;
    --accent-purple: #7c4dff;
    --dark-bg: #0a0e27;
    --light-bg: #1a1f3a;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --accent: #00d2ff;
    --anime-blue: #00d2ff;
    --anime-green: #00e676;
    --anime-red: #ff5252;
    --anime-purple: #7c4dff;
    --anime-cyan: #00d2ff;
}

/* Light Theme Variables */
body.light-theme {
    --dark-bg: #f5f7fa;
    --light-bg: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --primary-color: #0066cc;
    --secondary-color: #0052a3;
    --accent-blue: #0066cc;
    --accent-green: #00a86b;
    --accent-red: #e53e3e;
    --accent-purple: #6b46c1;
    --anime-blue: #0066cc;
    --anime-green: #00a86b;
    --anime-red: #e53e3e;
    --anime-purple: #6b46c1;
    --anime-cyan: #0066cc;
}

body.light-theme {
    background: var(--dark-bg);
    color: var(--text-primary);
}

body.light-theme .navbar-custom {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.light-theme .navbar-brand-text {
    color: var(--text-primary) !important;
}

body.light-theme .navbar-custom .navbar-nav .nav-link {
    color: var(--text-primary) !important;
}

body.light-theme .navbar-custom .navbar-nav .nav-link:hover {
    color: var(--anime-blue) !important;
    background: rgba(0, 102, 204, 0.1) !important;
}

body.light-theme .navbar-custom .navbar-nav .nav-link.active {
    color: var(--anime-blue) !important;
    background: rgba(0, 102, 204, 0.1) !important;
}

body.light-theme .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26, 26, 26, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body.light-theme .navbar-toggler {
    border-color: rgba(0, 102, 204, 0.3);
}

@media (max-width: 991px) {
    body.light-theme .navbar-custom .navbar-collapse {
        background: rgba(255, 255, 255, 0.98) !important;
    }
}

body.light-theme .page-loader {
    background: var(--dark-bg);
}

body.light-theme .hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 25%, #d4e1e8 50%, #e8ecf1 75%, #f5f7fa 100%);
}

body.light-theme .hero-image-layer {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 25%, #d4e1e8 50%, #e8ecf1 75%, #f5f7fa 100%);
}

body.light-theme .hero-text-layer {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 50%, #ffffff 100%);
    border-top: 2px solid rgba(0, 102, 204, 0.2);
}

body.light-theme .skill-category,
body.light-theme .sample-app-card,
body.light-theme .accordion-item,
body.light-theme .contact-item,
body.light-theme .gallery-item {
    background: var(--light-bg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

body.light-theme .about-image-wrapper,
body.light-theme .about-mini-image {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body.light-theme section {
    background: var(--dark-bg);
}

body.light-theme footer {
    background: var(--light-bg);
    color: var(--text-primary);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .accordion-button {
    background: var(--light-bg);
    color: var(--text-primary);
}

body.light-theme .accordion-button:not(.collapsed) {
    background: var(--light-bg);
    color: var(--primary-color);
}

body.light-theme .accordion-body {
    background: var(--light-bg);
    color: var(--text-secondary);
}

body.light-theme .gallery-overlay {
    background: rgba(255, 255, 255, 0.9);
}

body.light-theme .gallery-content h4 {
    color: var(--text-primary);
}

body.light-theme .gallery-content p {
    color: var(--text-secondary);
}

body.light-theme .demo-link {
    background: var(--primary-color);
    color: var(--light-bg);
}

body.light-theme .demo-link:hover {
    background: var(--secondary-color);
    color: var(--light-bg);
}

body.light-theme .nav-cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-bg);
}

body.light-theme .tech-logo-text {
    color: var(--anime-blue);
    text-shadow: 0 0 10px rgba(0, 102, 204, 0.3);
}

body.light-theme .tech-logo-item:hover .tech-logo-text {
    color: var(--anime-green);
    text-shadow: 0 0 15px rgba(0, 168, 107, 0.5);
}

/* Theme Toggle Button - Fixed Bottom Right */
/* Theme Toggle Button - Desktop Fixed Position */
.theme-toggle-btn-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--light-bg);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    font-size: 1.3rem;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.theme-toggle-btn-fixed:hover {
    background: var(--primary-color);
    color: var(--text-primary);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.6);
}

body.light-theme .theme-toggle-btn-fixed {
    background: var(--light-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.light-theme .theme-toggle-btn-fixed:hover {
    background: var(--primary-color);
    color: var(--text-primary);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

/* Navbar Right Controls Container */
.navbar-right-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

/* Theme Toggle Button - Navbar Position */
.theme-toggle-btn-navbar {
    background: var(--light-bg);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 1.1rem;
    padding: 0;
    border: 2px solid var(--primary-color);
}

.theme-toggle-btn-navbar:hover {
    background: var(--primary-color);
    color: var(--text-primary);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.6);
}

body.light-theme .theme-toggle-btn-navbar {
    background: var(--light-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

body.light-theme .theme-toggle-btn-navbar:hover {
    background: var(--primary-color);
    color: var(--text-primary);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
}

/* Mobile: Show navbar toggle in right corner, hide fixed toggle */
@media (max-width: 991px) {
    .theme-toggle-btn-fixed {
        display: none !important;
    }
    
    .navbar-toggler {
        display: none !important;
    }
    
    .navbar-right-controls {
        margin-left: auto;
    }
    
    .theme-toggle-btn-navbar {
        display: flex;
    }
}

/* Desktop: Hide navbar toggle button, show fixed version at bottom right */
@media (min-width: 992px) {
    .theme-toggle-btn-navbar {
        display: none !important;
    }
    
    .theme-toggle-btn-fixed {
        display: flex !important;
    }
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Custom Thin Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

body.light-theme ::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

body.light-theme ::-webkit-scrollbar-thumb {
    background: var(--primary-color);
}

body.light-theme ::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--dark-bg);
}

body.light-theme * {
    scrollbar-color: var(--primary-color) var(--dark-bg);
}

body {
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-logo {
    animation: logoPulse 2s ease-in-out infinite;
}

.loader-logo-img {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(142, 88, 238, 0.5));
}

.loader-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
    animation: textFade 1.5s ease-in-out infinite;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes textFade {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Navigation */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-custom .container-fluid {
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-custom .container-fluid.px-3 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

.navbar-custom .navbar-brand {
    font-size: 1.5rem;
    color: var(--anime-blue) !important;
    font-weight: 700;
    margin-right: 2rem;
    display: flex;
    align-items: center;
    padding: 0;
    gap: 0.75rem;
}

.navbar-custom .navbar-brand:hover {
    opacity: 0.8;
}

.navbar-logo {
    height: 35px;
    width: auto;
    transition: transform 0.3s, opacity 0.3s;
}

.navbar-logo:hover {
    transform: scale(1.1);
}

.navbar-brand-text {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

@media (max-width: 991px) {
    .navbar-logo {
        height: 30px;
    }
    
    .navbar-brand-text {
        font-size: 1.3rem;
    }
}

.navbar-custom .navbar-nav {
    align-items: center;
    margin-left: auto;
}

.navbar-custom .navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    transition: color 0.3s, background 0.3s;
    padding: 0.5rem 1rem !important;
    border-radius: 5px;
    margin: 0 0.25rem;
    white-space: nowrap;
}

.navbar-custom .navbar-nav .nav-link:hover {
    color: var(--anime-blue) !important;
    background: rgba(0, 210, 255, 0.1);
}

.nav-cta-button {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-primary) !important;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.nav-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    color: var(--text-primary) !important;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.navbar-toggler {
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(241, 245, 249, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Bottom Tab Bar */
.mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
        background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    justify-content: space-around;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-bottom-nav::-webkit-scrollbar {
    display: none;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 60px;
    flex-shrink: 0;
    position: relative;
}

.mobile-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.mobile-nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    }
    
.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--primary-color);
}

.mobile-nav-item.active i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.mobile-nav-item:hover i {
    color: var(--anime-blue);
    transform: scale(1.1);
    }
    
.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 0 0 3px 3px;
}

body.light-theme .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .mobile-nav-item {
    color: var(--text-secondary);
}

body.light-theme .mobile-nav-item:hover,
body.light-theme .mobile-nav-item.active {
    color: var(--primary-color);
}

@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none !important;
    }
    
    .navbar-custom {
        display: block !important;
    }
}

/* Add padding to body on mobile to account for bottom nav */
@media (max-width: 991px) {
    body {
        padding-bottom: 70px;
    }
}

/* Ensure Bootstrap containers don't cause overflow */
.container,
.container-fluid {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

@media (max-width: 576px) {
    section {
        padding: 3rem 1rem;
    }
    
    .container,
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Hero Divider Line - Bottom Only */
.hero-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--anime-blue) 20%, 
        var(--anime-green) 50%, 
        var(--anime-red) 80%, 
        transparent 100%);
    position: relative;
    z-index: 100;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5), 0 0 20px rgba(0, 230, 118, 0.3);
}

/* Hero Section - Full Screen with Marquee */
.hero {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    margin: 0;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 25%, #2d1b3d 50%, #1a1f3a 75%, #0a0e27 100%);
    background-size: 400% 400%;
    animation: animeGradient 15s ease infinite;
    position: relative;
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 100vh;
        padding-bottom: 1.5rem;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 210, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 230, 118, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 82, 82, 0.1) 0%, transparent 50%);
    z-index: 0;
    animation: animePulse 8s ease-in-out infinite;
}

@keyframes animeGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes animePulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* Technology Marquee Background - Inside Hero, Behind Image - Script-like Animation */
.tech-marquee-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    overflow: hidden;
    background: transparent;
    pointer-events: none;
}

/* Script-like Marquee Animation */
.tech-marquee-script {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tech-marquee-script .tech-logo-item {
    position: absolute;
    opacity: 0;
    animation: scriptPath 24s linear infinite;
    transform-origin: center;
}

/* Script-like Path Animation - Flowing organic path, moved down on Y-axis */
@keyframes scriptPath {
    0% {
        transform: translate(-600px, 0px) scale(0.5) rotate(-20deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
        transform: translate(-400px, 50px) scale(0.7) rotate(-15deg);
    }
    15% {
        transform: translate(-200px, 100px) scale(0.9) rotate(-10deg);
        opacity: 1;
    }
    25% {
        transform: translate(0px, 150px) scale(1) rotate(-5deg);
        opacity: 1;
        z-index: 4;
    }
    35% {
        transform: translate(200px, 170px) scale(1.1) rotate(0deg);
        opacity: 1;
        z-index: 4;
    }
    45% {
        transform: translate(400px, 200px) scale(1) rotate(5deg);
        opacity: 1;
        z-index: 4;
    }
    55% {
        transform: translate(500px, 250px) scale(0.9) rotate(10deg);
        opacity: 0.8;
        z-index: 3;
    }
    65% {
        transform: translate(600px, 300px) scale(0.7) rotate(15deg);
        opacity: 0.5;
        z-index: 2;
    }
    75% {
        transform: translate(700px, 350px) scale(0.5) rotate(20deg);
        opacity: 0.3;
        z-index: 2;
    }
    85% {
        transform: translate(800px, 400px) scale(0.3) rotate(25deg);
        opacity: 0;
    }
    100% {
        transform: translate(1000px, 450px) scale(0) rotate(30deg);
        opacity: 0;
    }
}

/* Individual logo delays for sequential script effect */
.tech-marquee-script .tech-logo-item:nth-child(1) {
    animation-delay: 0s;
}

.tech-marquee-script .tech-logo-item:nth-child(2) {
    animation-delay: 2s;
}

.tech-marquee-script .tech-logo-item:nth-child(3) {
    animation-delay: 4s;
}

.tech-marquee-script .tech-logo-item:nth-child(4) {
    animation-delay: 6s;
}

.tech-marquee-script .tech-logo-item:nth-child(5) {
    animation-delay: 8s;
}

.tech-marquee-script .tech-logo-item:nth-child(6) {
    animation-delay: 10s;
}

.tech-marquee-script .tech-logo-item:nth-child(7) {
    animation-delay: 12s;
}

.tech-marquee-script .tech-logo-item:nth-child(8) {
    animation-delay: 14s;
}

.tech-marquee-script .tech-logo-item:nth-child(9) {
    animation-delay: 16s;
}

.tech-marquee-script .tech-logo-item:nth-child(10) {
    animation-delay: 18s;
}

.tech-marquee-script .tech-logo-item:nth-child(11) {
    animation-delay: 20s;
}

.tech-marquee-script .tech-logo-item:nth-child(12) {
    animation-delay: 22s;
}

.tech-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 120px;
    padding: 1rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--anime-blue) 15%, transparent), color-mix(in srgb, var(--anime-green) 15%, transparent));
    border-radius: 15px;
    border: 2px solid color-mix(in srgb, var(--anime-blue) 30%, transparent);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--anime-blue) 20%, transparent);
}

.tech-logo-item:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--anime-blue) 30%, transparent), color-mix(in srgb, var(--anime-green) 30%, transparent));
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--anime-blue) 50%, transparent), 0 0 20px color-mix(in srgb, var(--anime-red) 30%, transparent);
    border-color: color-mix(in srgb, var(--anime-blue) 60%, transparent);
}

.tech-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.6));
    transition: all 0.3s ease;
    opacity: 0.9;
}

.tech-logo-item:hover .tech-logo-img {
    filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.9)) drop-shadow(0 0 10px rgba(0, 230, 118, 0.6));
    transform: scale(1.1);
    opacity: 1;
}

.tech-logo-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--anime-blue), var(--anime-green), var(--anime-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.5));
}

.tech-logo-item:hover .tech-logo-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.8));
}

.tech-logo-text {
    font-size: 0.85rem;
    color: var(--anime-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.tech-logo-item:hover .tech-logo-text {
    color: var(--anime-green);
    text-shadow: 0 0 15px rgba(0, 230, 118, 0.8);
    transform: scale(1.05);
}


/* Hero Content - Base */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Image Layer - Full Width Screen */
.hero-image-layer {
    width: 100%;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 25%, #2d1b3d 50%, #1a1f3a 75%, #0a0e27 100%);
    background-size: 400% 400%;
    animation: animeGradient 15s ease infinite;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1;
}

.hero-image-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 210, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 230, 118, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 82, 82, 0.1) 0%, transparent 50%);
    z-index: 0;
    animation: animePulse 8s ease-in-out infinite;
}

/* Hero Text Layer - Bottom Section with Different Background */
.hero-text-layer {
    min-height: auto;
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a1f3a 0%, #2d1b3d 50%, #1a1f3a 100%);
    position: relative;
    z-index: 3;
    border-top: 2px solid rgba(0, 210, 255, 0.3);
}

@media (max-width: 768px) {
    .hero-text-layer {
    padding: 2rem 0;
    }
}

@media (max-width: 576px) {
    .hero-text-layer {
        padding: 1.5rem 0;
    }
}

.hero-text-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(0, 210, 255, 0.05) 0%, 
        rgba(0, 230, 118, 0.05) 50%, 
        rgba(255, 82, 82, 0.05) 100%);
    z-index: -1;
}

.hero-content .container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
}


/* Transparent Photo Container - Bottom Aligned */
.hero-photo-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    padding: 0;
    margin: 0;
    position: relative;
    min-height: auto;
    gap: 3rem;
    z-index: 1;
}

/* Message Bubble Images - Right of Hero Image */
.hero-name-handwritten {
    position: absolute;
    right: 49%;
    top: -4%;
    z-index: 7;
    pointer-events: none;
}

.hero-name-handwritten img {
    max-width: 200px;
    width: auto;
    height: auto;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0s ease, visibility 0s ease;
}

/* Default Bubble Image - Visible by default */
.hero-bubble-default {
    visibility: visible;
    opacity: 1;
    z-index: 8;
    transition: opacity 0s ease, visibility 0s ease;
}

/* Hover Bubble Image - Hidden by default */
.hero-bubble-hover {
    visibility: hidden;
    opacity: 0;
    z-index: 9;
    transition: opacity 0s ease, visibility 0s ease;
}


.hero-name-hover > div:first-child {
    font-size: 4rem;
    }

.hero-name-hover > div:last-child {
    font-size: 4.5rem;
}

/* Hover Effect - Show Full Stack Developer bubble when showing me image */
.hero-image-wrapper:hover ~ .hero-name-handwritten .hero-bubble-default {
    visibility: hidden;
    opacity: 0;
}

.hero-image-wrapper:hover ~ .hero-name-handwritten .hero-bubble-hover {
    visibility: visible;
    opacity: 1;
}

@keyframes nameFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}





/* Hero Image Wrapper for Hover Animation */
.hero-image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 500px;
}


.hero-transparent-photo {
    width: 500px;
    height: 600px;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 20px 60px rgba(0, 210, 255, 0.6)) drop-shadow(0 0 40px rgba(0, 210, 255, 0.4));
    transition: opacity 0s ease, visibility 0s ease;
    will-change: transform, opacity;
    z-index: 5;
    position: relative;
    display: block;
    border: none;
    outline: none;
    margin: 0;
    padding: 0;
}

/* Default Image (anime-me.png) - Visible by default */
.hero-image-default {
    visibility: visible;
    opacity: 1;
    transition: opacity 0s ease, visibility 0s ease;
    width: 500px;
    height: 600px;
}

/* Hover Image (me.svg) - Hidden by default with visibility: hidden */
.hero-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 500px;
    height: 600px;
    visibility: hidden;
    opacity: 0;
    z-index: 6;
    cursor: pointer;
    transition: opacity 0s ease, visibility 0s ease;
    object-fit: contain;
    object-position: center bottom;
    border: none;
    outline: none;
    margin: 0;
    padding: 0;
}

/* Hover Effect - Show anime image on hover, hide default with visibility */
.hero-image-wrapper {
    cursor: pointer;
    position: relative;
}

.hero-image-wrapper:hover .hero-image-default {
    visibility: hidden;
    opacity: 0;
}

.hero-image-wrapper:hover .hero-image-hover {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 992px) {
    .hero-photo-container {
        padding-top: 0;
        gap: 2rem;
        overflow: visible;
    }
    
    .hero-image-wrapper,
    .hero-transparent-photo {
        width: 400px;
        height: 480px;
    }
    
    .hero-image-default,
    .hero-image-hover {
        width: 400px;
        height: 480px;
    }
    
    .hero-name-handwritten {
        right: 49%;
        top: -4%;
    }
    
    .hero-name-handwritten img {
        max-width: 160px;
    }
    
}

@media (max-width: 768px) {
    .hero-photo-container {
        padding-top: 0;
        gap: 1rem;
        flex-direction: column;
        align-items: center;
        overflow: visible;
        margin-bottom: 0.5rem;
    }
    
    .hero-image-wrapper,
    .hero-transparent-photo {
        width: 420px;
        height: 500px;
    }
    
    .hero-image-default,
    .hero-image-hover {
        width: 420px;
        height: 500px;
    }
    
    .hero-name-handwritten {
        position: absolute;
        right: 49%;
        top: -4%;
    }
    
    .hero-name-handwritten img {
        max-width: 145px;
        position: absolute;
    }
    
}

@media (max-width: 576px) {
    .hero-photo-container {
        padding-top: 0;
        gap: 0.5rem;
        overflow: visible;
        margin-bottom: 0.5rem;
    }
    
    .hero-image-wrapper,
    .hero-transparent-photo {
        width: 350px;
        height: 420px;
}

    .hero-image-default,
    .hero-image-hover {
        width: 350px;
        height: 420px;
}

    .hero-name-handwritten {
        position: absolute;
        right: 49%;
        top: -4%;
}

    .hero-name-handwritten img {
        max-width: 120px;
        position: absolute;
    }

}

/* Hero Text Content - Below Photo */
.hero-text-content {
        text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 2rem 1rem;
    z-index: 10;
    position: relative;
}

@media (max-width: 768px) {
    .hero-text-content {
        padding: 1rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-text-content {
        padding: 0.75rem 1rem;
    }
}


.hero-text-content h1,
.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--anime-blue), var(--anime-green), var(--anime-red));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    will-change: transform, opacity;
    animation: animeTextGradient 3s ease infinite;
    text-shadow: 0 0 30px rgba(0, 210, 255, 0.5);
}

.hero-text-content .subtitle,
.hero .subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.hero-text-content .experience,
.hero .experience {
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 2.5rem;
    font-weight: 600;
}

@media (max-width: 992px) {
    .hero-text-content h1,
    .hero h1 {
        font-size: 3rem;
    }
    .hero-text-content .subtitle,
    .hero .subtitle {
        font-size: 1.5rem;
    }
    .hero-text-content .experience,
    .hero .experience {
        font-size: 1.2rem;
    }
    
    .tech-logo-item {
        min-width: 100px;
        padding: 0.75rem;
    }
    
    .tech-logo-img {
        width: 50px;
        height: 50px;
    }
    
    .tech-logo-icon {
        font-size: 2.5rem;
    }
    
}

@media (max-width: 768px) {
    .hero-text-content h1,
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-text-content .subtitle,
    .hero .subtitle {
        font-size: 1.3rem;
    }
    .hero-text-content .experience,
    .hero .experience {
        font-size: 1.1rem;
    }
    
    .tech-logo-item {
        min-width: 80px;
        padding: 0.5rem;
        gap: 0.25rem;
    }
    
    .tech-logo-img {
        width: 40px;
        height: 40px;
    }
    
    .tech-logo-icon {
        font-size: 2rem;
    }
    
    .tech-logo-text {
        font-size: 0.7rem;
    }
    
    .tech-marquee-script .tech-logo-item {
        animation: scriptPath 20s linear infinite;
    }
}

@media (max-width: 576px) {
    .hero-text-content h1,
    .hero h1 {
        font-size: 2rem;
    }
    .hero-text-content .subtitle,
    .hero .subtitle {
        font-size: 1.1rem;
    }
    .hero-text-content .experience,
    .hero .experience {
        font-size: 1rem;
    }
    
    .tech-logo-item {
        min-width: 70px;
        padding: 0.5rem;
    }
    
    .tech-logo-img {
        width: 35px;
        height: 35px;
    }
    
    .tech-logo-icon {
        font-size: 1.5rem;
    }
    
    .tech-logo-text {
        font-size: 0.65rem;
    }
    
    .tech-marquee-script .tech-logo-item {
        animation: scriptPath 18s linear infinite;
    }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--anime-blue), var(--anime-green), var(--anime-red));
    background-size: 200% 200%;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
    margin-top: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.4), 0 0 30px rgba(0, 230, 118, 0.3);
    animation: animeButtonGradient 3s ease infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 210, 255, 0.6), 0 0 50px rgba(255, 82, 82, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
}

@keyframes animeButtonGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Section Styles */
section {
    padding: 5rem 2rem;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

#hobbies {
    padding-top: 3rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* About Section */
.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.about-image-wrapper:hover {
    transform: translateY(-5px);
}

.about-main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    object-fit: cover;
}

.about-content-simple {
    padding: 2rem 0;
}

.about-content-simple h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.about-experience {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-education-inline {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    font-style: italic;
}

.about-education {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.about-education h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.education-info {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.about-images-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.about-mini-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1;
}

.about-mini-image:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.about-mini-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .about-content-simple {
        padding: 1.5rem 1rem;
        text-align: center;
    }
    
    .about-content-simple h3 {
        font-size: 2rem;
    }
    
    .about-experience {
        font-size: 1.1rem;
    }
    
    .about-description {
        font-size: 1rem;
    }
    
    .about-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

/* Skills Section - Overlapping Chips Animation */
#skills {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

#skills .container-fluid {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

#skills .section-title {
    padding: 0 2rem;
}

.skills-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    margin: 1.5rem 0 1rem 0;
    padding: 1rem 1rem;
    justify-content: center;
    align-items: center;
}

.skill-chip {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.skill-chip:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.6);
}

body.light-theme .skill-chip {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

body.light-theme .skill-chip:hover {
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.5);
}

@media (max-width: 768px) {
    .skill-chip {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 576px) {
    .skill-chip {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
}

/* Experience Section - Marquee with 3 Cards in Row */
#experience {
    overflow: hidden;
    position: relative;
    padding: 5rem 0 1.5rem 0;
}

.experience-marquee-wrapper {
    display: flex;
    animation: experienceMarquee 50s linear infinite;
    gap: 0;
    width: fit-content;
    will-change: transform;
}

.experience-marquee-wrapper:hover {
    animation-play-state: paused;
}

@keyframes experienceMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.experience-marquee-container {
    display: flex;
    gap: 2rem;
    width: max-content;
    flex-shrink: 0;
}

.experience-marquee-container:last-child {
    margin-left: 2rem;
}


.experience-card-item {
    width: 320px;
    height: 320px;
    flex-shrink: 0;
}

@media (max-width: 1400px) {
    .experience-card-item {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 1200px) {
    .experience-card-item {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .experience-card-item {
        width: 260px;
        height: 260px;
    }
}

@media (max-width: 576px) {
    .experience-card-item {
        width: 240px;
        height: 240px;
    }
}

.experience-card {
    background: var(--light-bg);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}


.company-logo-overlap {
    width: 40%;
    max-width: 120px;
    aspect-ratio: 1;
    margin: 0 auto 1.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}

.company-name-tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.company-name-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--primary-color);
}

.company-logo-overlap:hover .company-name-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -45px;
}

.company-logo-overlap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0.5rem;
    box-sizing: border-box;
}

.company-logo-placeholder {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 2.5rem;
}

.experience-content {
    flex: 1;
    width: 100%;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.experience-content h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.exp-period {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0;
    font-weight: 600;
}

.exp-duties {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.exp-duties li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    font-size: 0.9rem;
}

.exp-duties li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}


body.light-theme .experience-card {
    background: var(--light-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-theme .company-logo-overlap {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .experience-card {
        padding: 1.5rem 1rem;
}

    .company-logo-overlap {
        width: 35%;
        max-width: 80px;
        margin: 0 auto 1rem;
        padding: 0.5rem;
    }
    
    .company-logo-placeholder {
        font-size: 2rem;
}

    .experience-content h3 {
        font-size: 1rem;
    }
    
    .exp-period {
        font-size: 0.8rem;
    }
    
    .exp-card-header {
        height: 70px;
        padding: 0.75rem;
    }
    
    .exp-card-header h4 {
        font-size: 1.1rem;
    }
    
    .experience-content {
        padding: 0 1.25rem 1.25rem;
    }
    
    .experience-content h3 {
        font-size: 1.1rem;
    }
    
    .exp-period {
        font-size: 0.85rem;
    }
    
    .exp-duties li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
        padding-left: 1.25rem;
    }
    
    .experience-content h3 {
        font-size: 1.5rem;
    }
    
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236366f1'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

.exp-header-content {
    width: 100%;
    text-align: left;
}

.exp-header-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.exp-company {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.exp-period {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.accordion-body {
    background: var(--light-bg);
    color: var(--text-secondary);
    padding: 1.5rem;
}

.exp-duties {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exp-duties li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.8;
}

.exp-duties li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.exp-duties li:not(:last-child) {
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

/* Contact Section */
.contact {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem;
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-item {
    padding: 1.5rem 2rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: relative;
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    max-width: 100%;
    vertical-align: middle;
    position: relative;
}

/* Desktop: ellipsis with hover tooltip */
@media (min-width: 769px) {
    .contact-item a {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: calc(100% - 20px);
    }
    
    .contact-item a:hover {
        color: var(--primary-color);
    }
    
    /* Tooltip on hover for truncated text */
    .contact-item a[title]:hover::after {
        content: attr(title);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: var(--dark-bg);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 5px;
        white-space: nowrap;
        z-index: 1000;
        margin-bottom: 5px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        font-size: 0.9rem;
    }
    
    .contact-item a[title]:hover::before {
        content: '';
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 5px solid transparent;
        border-top-color: var(--dark-bg);
        z-index: 1000;
        margin-bottom: -5px;
    }
}

/* Mobile responsive for contact section */
@media (max-width: 768px) {
    .contact {
        padding: 2rem 1.5rem !important;
        margin: 1rem 0.5rem !important;
    }
    
    .contact-item {
        padding: 1.5rem 1.5rem !important;
        min-height: auto;
        font-size: 0.95rem;
    }
    
    .contact-item strong {
        display: block;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
    
    .contact-item a {
        display: block;
        width: 100%;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-overflow: clip;
        line-height: 1.5;
    }
    
    .contact-item i {
        margin-right: 0.5rem;
    }
}

@media (max-width: 576px) {
    .contact {
        padding: 1.5rem 1rem !important;
        margin: 0.5rem !important;
    }
    
    .contact-item {
        padding: 1.25rem 1rem !important;
        font-size: 0.9rem;
    }
    
    .contact-item strong {
        font-size: 0.85rem;
    }
}

/* Projects Section */
/* Project Cards with Flip Effect */
.project-card {
    perspective: 1000px;
    height: 100%;
    min-height: 300px;
}

.project-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.project-card:hover .project-card-inner {
    transform: rotateY(180deg);
}

.project-card-front,
.project-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: var(--light-bg);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

.project-card-front {
    overflow: hidden;
}

.project-card-back {
    transform: rotateY(180deg);
    justify-content: flex-start;
    padding-top: 1.5rem;
    overflow: hidden;
}

body.light-theme .project-card-front,
body.light-theme .project-card-back {
    background: var(--light-bg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: none;
}

.project-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

.project-card:hover .project-icon {
    transform: scale(1.1);
}

.project-card-front h3,
.project-card-back h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-card-front p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

.project-card-back h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.project-card-back ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.project-card-back ul li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.project-card-back ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .project-card {
        min-height: 280px;
    }
    
    .project-card-front,
    .project-card-back {
        padding: 1.5rem;
    }
    
    .project-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .project-card-front h3,
    .project-card-back h3 {
        font-size: 1.3rem;
    }
}

/* Education Section */
.education-item {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    box-sizing: border-box;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.education-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.education-header {
    text-align: left;
}

.education-header h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.education-institution {
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.education-location {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.education-location i {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .education-item {
        padding: 2rem 1.5rem;
        margin: 1rem 0;
    }
    
    .education-header {
        text-align: center;
    }
    
    .education-header h3 {
        font-size: 1.5rem;
    }
    
    .education-institution {
        font-size: 1.1rem;
    }
}

/* Hobbies Section */
.hobby-item {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--primary-color);
}

.hobby-gaming {
    background: #a0c0ff !important;
    opacity: 0.8 !important;
}

.hobby-traveling {
    background: #ffffff !important;
    opacity: 0.8 !important;
}

body.light-theme .hobby-gaming,
body.light-theme .hobby-traveling {
    opacity: 1 !important;
}

/* Dark mode text color for hobby cards */
body:not(.light-theme) .hobby-gaming h3,
body:not(.light-theme) .hobby-gaming p,
body:not(.light-theme) .hobby-traveling h3,
body:not(.light-theme) .hobby-traveling p {
    color: black !important;
}

.hobby-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.hobby-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

.hobby-svg-icon {
    width: 400px;
    height: 200px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
}

.hobby-svg-icon svg {
    width: 400px;
    height: 200px;
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .hobby-svg-icon {
        width: 100%;
        max-width: 350px;
        height: auto;
    }
    
    .hobby-svg-icon svg {
        width: 100%;
        height: auto;
    }
}

.hobby-item:hover .hobby-icon {
    transform: scale(1.2) rotate(5deg);
}

.hobby-item:hover .hobby-svg-icon {
    transform: scale(1.1);
}

.hobby-image-icon {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
}

.hobby-gif-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.hobby-item:hover .hobby-image-icon {
    transform: scale(1.1);
}

.hobby-item h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hobby-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 768px) {
    .hobby-item {
        padding: 2rem 1.5rem;
        margin: 0.5rem 0;
    }
    
    .hobby-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hobby-item h3 {
        font-size: 1.5rem;
    }
}

/* Sample Applications Section */
.sample-app-card {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sample-app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.sample-app-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.sample-app-card:hover .sample-app-icon {
    transform: scale(1.2) rotate(5deg);
}

.sample-app-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.sample-app-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.demo-link {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.demo-link:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.5);
    color: white;
}

.deployment-info {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    background: color-mix(in srgb, var(--primary-color) 20%, transparent);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    margin-top: auto;
    font-size: 0.95rem;
    border: 2px solid var(--primary-color);
}

.deployment-info i {
    color: var(--primary-color);
}

body.light-theme .deployment-info {
    background: color-mix(in srgb, var(--primary-color) 15%, transparent);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Gallery Section */
.gallery-container {
    width: 100%;
    min-height: 200px;
    display: block;
    visibility: visible;
}

#animated-thumbnails-gallery {
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: block;
    text-decoration: none;
    padding: 5px;
    opacity: 1;
    visibility: visible;
    width: 24%;
    margin-bottom: 15px;
    float: left;
}

@media (max-width: 992px) {
    .gallery-item {
        width: 48%;
    }
}

@media (max-width: 576px) {
    .gallery-item {
        width: 100%;
    }
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

a.gallery-item {
    text-decoration: none;
    display: block;
    opacity: 1;
    visibility: visible;
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 15px;
    object-fit: cover;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom Image Popup */
.image-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 2rem;
    box-sizing: border-box;
}

.image-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10001;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.popup-close:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.popup-image-wrapper {
    max-width: 100%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.popup-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.popup-info {
    text-align: center;
    color: white;
    max-width: 600px;
}

.popup-info h4 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.popup-info p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

body.light-theme .image-popup {
    background: rgba(0, 0, 0, 0.9);
}

body.light-theme .popup-info h4 {
    color: var(--primary-color);
}

body.light-theme .popup-info p {
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .image-popup {
        padding: 1rem;
    }
    
    .popup-close {
        top: -35px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .popup-image {
        max-height: 70vh;
    }
    
    .popup-info h4 {
        font-size: 1.4rem;
    }
    
    .popup-info p {
        font-size: 0.9rem;
    }
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    color: white;
    text-align: left;
}

.gallery-expand-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-expand-icon {
    opacity: 1;
    transform: scale(1.1);
}

.gallery-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gallery-content p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

/* Responsive Styles for Sample Apps and Gallery */
@media (max-width: 768px) {
    .sample-app-card {
        padding: 2rem 1.5rem;
    }
    
    .sample-app-icon {
        font-size: 3rem;
    }
    
    .sample-app-card h3 {
        font-size: 1.5rem;
    }
    
    .gallery-content h4 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .sample-app-card {
        padding: 1.5rem;
    }
    
    .sample-app-icon {
        font-size: 2.5rem;
    }
    
    .sample-app-card h3 {
        font-size: 1.3rem;
    }
    
    .demo-link {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    color: var(--text-secondary);
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Additional Responsive Styles */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-button {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Animations */
/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Text Animation */
.animate-text {
    animation: textReveal 0.8s ease-out forwards;
    opacity: 0;
}

.animate-text-delay-1 {
    animation: textReveal 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

.animate-text-delay-2 {
    animation: textReveal 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.animate-text-delay-3 {
    animation: textReveal 0.8s ease-out 0.9s forwards;
    opacity: 0;
}

/* Image Animation */
.animate-image {
    animation: slideInRight 1s ease-out 0.5s forwards;
    opacity: 0;
}

/* Section Animations */
.animate-fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure blog cards are visible even without JS */
.blog-card.animate-fade-in.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Ensure blog section and cards are visible */
#blogs {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.blog-card-wrapper {
    display: block !important;
    visibility: visible !important;
}

.blog-card-wrapper.hidden {
    display: none !important;
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Animation for Cards */
.animate-stagger {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-stagger.visible {
    opacity: 1;
    transform: translateY(0);
}


