/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #666666;
    --accent-primary: #00d4ff;
    --accent-secondary: #ff6b6b;
    --accent-tertiary: #4ecdc4;
    --accent-gold: #ffd700;
    --border-color: #333333;
    --shadow-color: rgba(0, 212, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, #00d4ff, #4ecdc4);
    --gradient-secondary: linear-gradient(135deg, #ff6b6b, #ffd700);
    --gradient-tertiary: linear-gradient(135deg, #667eea, #764ba2);
    
    /* Light Theme Colors */
    --bg-primary-light: #ffffff;
    --bg-secondary-light: #f8f9fa;
    --bg-tertiary-light: #e9ecef;
    --bg-card-light: #ffffff;
    --text-primary-light: #212529;
    --text-secondary-light: #495057;
    --text-muted-light: #6c757d;
    --border-color-light: #dee2e6;
    --shadow-color-light: rgba(0, 0, 0, 0.1);
}

/* Light Theme */
.light-theme {
    --bg-primary: var(--bg-primary-light);
    --bg-secondary: var(--bg-secondary-light);
    --bg-tertiary: var(--bg-tertiary-light);
    --bg-card: var(--bg-card-light);
    --text-primary: var(--text-primary-light);
    --text-secondary: var(--text-secondary-light);
    --text-muted: var(--text-muted-light);
    --border-color: var(--border-color-light);
    --shadow-color: var(--shadow-color-light);
}

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

/* Smooth transitions for all elements */
* {
    transition: all 0.3s ease;
}

/* Ensure smooth animations */
.hero-title,
.hero-subtitle,
.hero-buttons,
.exp-card,
.showcase-item,
.project-card,
.skill-category,
.experience-card,
.article-card,
.contact-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    background: var(--bg-card);
    color: var(--accent-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px var(--shadow-color);
}

.theme-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-primary);
    background: var(--accent-primary);
    color: white;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 2000;
    transition: all 0.3s ease;
}

/* Global overflow safety */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure containers don't overflow on mobile */
.container, .nav-container {
    width: 100%;
    box-sizing: border-box;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
}

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-greeting {
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.greeting-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-right: 10px;
}

.name-highlight {
    display: inline-block;
    position: relative;
}

.name-text {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.name-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: expandWidth 1s ease 0.5s forwards;
    transform: scaleX(0);
    transform-origin: left;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    min-height: 120px;
    display: flex;
    align-items: center;
}

.fade-text {
    animation: slideInUp 0.8s ease 0.5s forwards;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1.5s ease-in-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
    line-height: 1.6;
}

.highlight-text {
    color: var(--accent-primary);
    font-weight: 600;
    position: relative;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 1s forwards;
    opacity: 0;
}

.hero-stats .stat-item {
    text-align: center;
}

.hero-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 5px;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s ease 1.2s forwards;
    opacity: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

/* Floating Boxes */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.floating-boxes {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-box {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: all 0.4s ease;
    overflow: hidden;
    min-width: 200px;
    animation: floatRandom 8s ease-in-out infinite;
}

.floating-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.floating-box:hover::before {
    opacity: 0.1;
}

.floating-box:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 25px 60px var(--shadow-color);
    border-color: var(--accent-primary);
    animation-play-state: paused;
    filter: none !important;
    opacity: 1 !important;
}

.floating-box:hover .box-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px var(--shadow-color);
}

.floating-box:hover .box-number {
    color: var(--accent-secondary);
    transform: scale(1.05);
}

.box-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 25px var(--shadow-color);
    transition: all 0.3s ease;
}

.box-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 17px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.floating-box:hover .box-icon::before {
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.box-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 1;
}

.box-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
}

.box-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Floating Box Positions and Animations */
.box-1 {
    top: 10%;
    left: 0%;
    animation: boxFadeCycle 20s ease-in-out infinite;
    animation-delay: 0s;
}

.box-2 {
    top: 35%;
    right: 30%;
    animation: boxFadeCycle 20s ease-in-out infinite;
    animation-delay: 4s;
}

.box-3 {
    top: 70%;
    left: 5%;
    animation: boxFadeCycle 20s ease-in-out infinite;
    animation-delay: 8s;
}

.box-4 {
    top: 0%;
    left: 50%;
    animation: boxFadeCycle 20s ease-in-out infinite;
    animation-delay: 12s;
}

.box-5 {
    bottom: 15%;
    right: 5%;
    animation: boxFadeCycle 20s ease-in-out infinite;
    animation-delay: 16s;
}

/* Blur effect for non-hovered boxes */
.floating-boxes:hover .floating-box:not(:hover) {
    filter: blur(3px);
    opacity: 0.6;
    transform: scale(0.95);
}

/* Box fade in/out animation */
@keyframes boxFadeCycle {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    10% {
        opacity: 1;
        transform: scale(1);
    }
    90% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Stars Background */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
    opacity: 0;
}

.star:nth-child(odd) {
    animation-delay: 0s;
}

.star:nth-child(even) {
    animation-delay: 1.5s;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 45%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
    animation: fadeInUp 1s ease 2s forwards;
    opacity: 0;
}

.scroll-arrow {
    width: 50px;
    height: 50px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: bounce 2s infinite;
}

.scroll-arrow i {
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.scroll-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Mouse Trail Effect */
.mouse-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.trail-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    animation: trailFade 0.6s ease-out forwards;
    box-shadow: 0 0 10px var(--accent-primary);
}

.trail-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-secondary);
    border-radius: 50%;
    pointer-events: none;
    animation: sparkleFade 0.8s ease-out forwards;
    box-shadow: 0 0 8px var(--accent-secondary);
}

/* Background Elements */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: var(--gradient-secondary);
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.orb-3 {
    width: 150px;
    height: 150px;
    background: var(--gradient-tertiary);
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

/* Section Styles */
section {
    padding: 100px 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.about-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    justify-items: center;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--accent-primary);
    position: relative;
    z-index: 2;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit:cover;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
    transition: all 1.9s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: var(--accent-primary);
}

.image-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 2s ease-in-out infinite;
}

/* Experience Section */
.experience {
    background: var(--bg-secondary);
}

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

.experience-grid .experience-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 400px;
}

/* Mobile Experience Grid */
@media (max-width: 768px) {
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .experience-grid .experience-card:last-child:nth-child(odd) {
        grid-column: 1;
        max-width: 100%;
    }
    
    .experience-card {
        padding: 20px;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .experience-date {
        align-self: flex-start;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .experience-title {
        font-size: 1.2rem;
    }
    
    .experience-company {
        font-size: 1rem;
    }
    
    .experience-details li {
        font-size: 0.9rem;
        margin-bottom: 10px;
        padding-left: 20px;
    }
}

@media (max-width: 480px) {
    .experience-grid {
        gap: 15px;
    }
    
    .experience-card {
        padding: 15px;
    }
    
    .experience-title {
        font-size: 1.1rem;
    }
    
    .experience-company {
        font-size: 0.95rem;
    }
    
    .experience-details li {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

.experience-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.experience-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px var(--shadow-color);
}

.experience-card:hover::before {
    background: var(--gradient-secondary);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.experience-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.experience-company {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.experience-date {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.experience-details {
    list-style: none;
}

.experience-details li {
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.experience-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-size: 1rem;
    font-weight: bold;
}

.experience-card:nth-child(1) {
    animation: slideInLeft 0.8s ease forwards;
}

.experience-card:nth-child(2) {
    animation: slideInRight 0.8s ease 0.2s forwards;
}

.experience-card:nth-child(3) {
    animation: slideInLeft 0.8s ease 0.4s forwards;
}

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

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

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Mobile Skills Container */
@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .skill-category {
        padding: 25px;
    }
    
    .category-header {
        margin-bottom: 20px;
    }
    
    .category-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .category-title {
        font-size: 1.2rem;
    }
    
    .skill-items {
        gap: 20px;
    }
    
    .skill-item {
        padding: 15px;
    }
    
    .skill-name {
        font-size: 0.95rem;
    }
    
    .skill-bar {
        height: 10px;
    }
}

@media (max-width: 480px) {
    .skills-container {
        gap: 15px;
    }
    
    .skill-category {
        padding: 20px;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .category-title {
        font-size: 1.1rem;
    }
    
    .skill-items {
        gap: 15px;
    }
    
    .skill-item {
        padding: 12px;
    }
    
    .skill-name {
        font-size: 0.9rem;
    }
    
    .skill-bar {
        height: 8px;
    }
}

.skill-category {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.skill-category:hover::before {
    opacity: 0.05;
}

.skill-category:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px var(--shadow-color);
    border-color: var(--accent-primary);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 25px var(--shadow-color);
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin: 0;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    z-index: 1;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: var(--bg-secondary);
    transform: translateX(10px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.skill-percentage {
    font-weight: 700;
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.skill-bar {
    height: 12px;
    background: var(--bg-primary);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 6px;
    transition: width 1.5s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

.skill-category:nth-child(1) {
    animation: slideInUp 0.8s ease forwards;
}

.skill-category:nth-child(2) {
    animation: slideInUp 0.8s ease 0.2s forwards;
}

.skill-category:nth-child(3) {
    animation: slideInUp 0.8s ease 0.4s forwards;
}

.skill-category:nth-child(4) {
    animation: slideInUp 0.8s ease 0.6s forwards;
}

.skill-category:nth-child(5) {
    animation: slideInUp 0.8s ease 0.8s forwards;
}

.skill-category:nth-child(6) {
    animation: slideInUp 0.8s ease 1s forwards;
}

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

/* Projects Section */
.projects {
    background: var(--bg-secondary);
    overflow: hidden;
}

.projects-container {
    position: relative;
    padding: 20px 0;
}

.projects-carousel {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    flex: 1;
    min-height: 300px;
}

/* Mobile Projects Section */
@media (max-width: 768px) {
    .projects-container {
        padding: 15px 0;
    }
    
    .projects-carousel {
        flex-direction: column;
        gap: 15px;
        max-width: 100%;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: unset;
        width: 100%;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .project-card {
        min-height: 200px;
    }
    
    .project-image {
        height: 140px;
    }
    
    .project-content {
        padding: 18px;
    }
    
    .project-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .project-description {
        font-size: 0.9rem;
        margin-bottom: 12px;
        line-height: 1.5;
    }
    
    .tech-tag {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
    
    .carousel-indicators {
        margin-top: 25px;
    }
}

@media (max-width: 480px) {
    .projects-container {
        padding: 10px 0;
    }
    
    .projects-carousel {
        gap: 12px;
    }
    
    .projects-grid {
        gap: 15px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .project-card {
        min-height: 180px;
    }
    
    .project-image {
        height: 120px;
    }
    
    .project-content {
        padding: 15px;
    }
    
    .project-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .project-description {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .tech-tag {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
    
    .carousel-indicators {
        margin-top: 20px;
    }
}

.carousel-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
    pointer-events: auto;
}

.carousel-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--accent-primary);
    transform: scale(1.2);
}

.projects-grid::-webkit-scrollbar {
    display: none;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .container { padding: 0 24px; }
    .projects-carousel { max-width: 900px; }
}

@media (max-width: 992px) {
    .navbar .nav-menu { gap: 16px; }
    .hero-title { font-size: 2.2rem; }
    .projects-carousel { max-width: 800px; }
    .projects-grid { grid-template-columns: repeat(1, 1fr); gap: 20px; }
    .about-main { grid-template-columns: 1fr; gap: 30px; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
}


.project-card {
    background: var(--bg-card, #1a1a1a);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    cursor: grab;
    user-select: none;
    min-height: 150px;
    color: white;
}

.project-card:active {
    cursor: grabbing;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px var(--shadow-color);
}

.project-card.dragging {
    transform: rotate(5deg) scale(1.05);
    z-index: 1000;
    box-shadow: 0 25px 60px rgba(0, 212, 255, 0.3);
}

.project-image {
    height: 120px;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--accent-primary);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: scale(1.1);
    background: var(--accent-secondary);
}

.project-content {
    padding: 15px;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 0.9rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Articles Section */
.articles {
    background: var(--bg-secondary);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Mobile Articles Grid */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
    }
    
    .article-card {
        margin: 0 10px;
    }
    
    .article-image {
        height: 180px;
    }
    
    .article-placeholder {
        font-size: 2.5rem;
    }
    
    .article-content {
        padding: 25px;
    }
    
    .article-date {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .article-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .article-excerpt {
        font-size: 0.9rem;
        margin-bottom: 15px;
        line-height: 1.5;
    }
    
    .article-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .articles-grid {
        gap: 15px;
    }
    
    .article-card {
        margin: 0 5px;
    }
    
    .article-image {
        height: 160px;
    }
    
    .article-placeholder {
        font-size: 2rem;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-date {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .article-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .article-excerpt {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .article-link {
        font-size: 0.85rem;
    }
}

.article-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px var(--shadow-color);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow-color);
}

.article-image {
    height: 200px;
    position: relative;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-placeholder {
    font-size: 3rem;
    color: white;
    opacity: 0.8;
}

.article-content {
    padding: 30px;
}

.article-date {
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.article-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-excerpt {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.article-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.article-link:hover {
    color: var(--accent-secondary);
    transform: translateX(5px);
}

/* Contact Section */
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.contact-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Prevent contact section overflow */
.contact-content, .contact-main, .contact-card, .contact-links {
    max-width: 100%;
    box-sizing: border-box;
}

.contact-card, .contact-link-item { word-wrap: break-word; overflow-wrap: break-word; }

.contact-text {
    animation: slideInLeft 0.8s ease forwards;
}

.contact-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.contact-cta {
    margin-top: 30px;
    text-align: center;
}

.contact-btn {
    display: block;
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: 20px;
    padding: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: 0;
}

.contact-btn:hover::before {
    left: 0;
}

.contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.contact-btn i:first-child {
    font-size: 2rem;
    color: var(--accent-primary);
    transition: color 0.3s ease;
}

.contact-btn:hover i:first-child {
    color: white;
}

.btn-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.btn-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.btn-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.contact-btn:hover .btn-title,
.contact-btn:hover .btn-subtitle {
    color: white;
}

.contact-btn i:last-child {
    font-size: 1.2rem;
    color: var(--accent-primary);
    transition: all 0.3s ease;
    margin-left: auto;
}

.contact-btn:hover i:last-child {
    color: white;
    transform: translateX(5px);
}

.contact-visual {
    animation: slideInRight 0.8s ease forwards;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 40px var(--shadow-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px var(--shadow-color);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.card-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 25px var(--shadow-color);
    overflow: hidden;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.card-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.card-info p {
    color: var(--text-secondary);
    margin: 0;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.card-message {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid var(--accent-primary);
}

.card-message p {
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
    line-height: 1.6;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Mobile Contact Section */
@media (max-width: 768px) {
    .contact-main {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-text {
        order: 1;
        width: 100%;
        max-width: 100%;
    }
    
    .contact-visual {
        order: 2;
        width: 100%;
        max-width: 100%;
    }
    
    .contact-subtitle {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .contact-description {
        font-size: 1rem;
        margin-bottom: 30px;
        line-height: 1.6;
    }
    
    .contact-card {
        padding: 25px;
        margin-bottom: 20px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .card-status {
        align-self: flex-start;
        margin-left: 0;
    }
    
    .card-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .card-info h4 {
        font-size: 1.2rem;
    }
    
    .card-message {
        padding: 15px;
    }
    
    .contact-btn {
        padding: 20px;
    }
    
    .btn-content {
        gap: 15px;
    }
    
    .contact-btn i:first-child {
        font-size: 1.8rem;
    }
    
    .btn-title {
        font-size: 1.1rem;
    }
    
    .btn-subtitle {
        font-size: 0.85rem;
    }
    
    .contact-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-link-item {
        padding: 25px;
    }
    
    .link-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .link-content h4 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .link-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .link-btn {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .contact-main {
        gap: 30px;
    }
    
    .contact-subtitle {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .contact-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .contact-card {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .card-header {
        gap: 12px;
    }
    
    .card-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .card-info h4 {
        font-size: 1.1rem;
    }
    
    .card-message {
        padding: 12px;
    }
    
    .card-message p {
        font-size: 0.9rem;
    }
    
    .contact-btn {
        padding: 18px;
    }
    
    .btn-content {
        gap: 12px;
    }
    
    .contact-btn i:first-child {
        font-size: 1.6rem;
    }
    
    .btn-title {
        font-size: 1rem;
    }
    
    .btn-subtitle {
        font-size: 0.8rem;
    }
    
    .contact-links {
        gap: 15px;
    }
    
    .contact-link-item {
        padding: 20px;
    }
    
    .link-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .link-content h4 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .link-content p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .link-btn {
        font-size: 0.85rem;
    }
}

.contact-link-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.contact-link-item:hover::before {
    opacity: 0.05;
}

.contact-link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-color);
    border-color: var(--accent-primary);
}

.link-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 25px var(--shadow-color);
}

.link-content {
    position: relative;
    z-index: 1;
}

.link-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.link-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.link-btn:hover {
    color: var(--accent-secondary);
    transform: translateX(5px);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 10px;
}

.footer-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-list a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.footer-copyright {
    color: var(--text-muted);
}

/* Animations */
@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.05);
    }
}

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

@keyframes expandWidth {
    to {
        transform: scaleX(1);
    }
}


@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

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

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

@keyframes twinkle {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
}

@keyframes trailFade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}

@keyframes sparkleFade {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.1) rotate(180deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        min-height: 80px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .hero-stats {
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .hero-stats .stat-number {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 12px 25px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .about-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .image-container {
        width: 250px;
        height: 250px;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        margin-bottom: 30px;
    }

    .scroll-indicator { bottom: 25px; left: 38%; }
    .scroll-arrow { width: 40px; height: 40px; }
    .scroll-arrow i { font-size: 1rem; }
    .scroll-text { font-size: 0.8rem; }
    .floating-boxes { display: none; }
    .hero-visual { display: none; }
    .hero-title {justify-content: center;}
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        min-height: 60px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero-stats {
        gap: 20px;
        margin-bottom: 25px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-stats .stat-number {
        font-size: 1.8rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .about-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .image-container {
        width: 200px;
        height: 200px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .nav-container {
        padding: 0 12px;
    }
    
    .nav-logo {
        font-size: 20px;
    }
    
    .logo-image {
        width: 35px;
        height: 35px;
    }
    
    .theme-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        margin-bottom: 25px;
    }
    
    .footer-logo {
        font-size: 20px;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
}
