/**
 * Kent Carlo B. Amante Portfolio Styles
 * 
 * Main stylesheet for my personal portfolio website
 * Built with modern CSS and responsive design principles
 */

/* CSS Variables */
:root {
    --primary: #1E3D59;
    --primary-dark: #152C40;
    --secondary: #2B2B2B;
    --accent: #17A2B8;
    --bg-primary: #F5F5F5;
    --bg-secondary: #E8F1F5;
    --bg-card: #FFFFFF;
    --text-primary: #2B2B2B;
    --text-secondary: #4B5563;
    --gradient: linear-gradient(135deg, #1E3D59 0%, #17A2B8 100%);
    --primary-rgb: 30, 61, 89;
    --accent-rgb: 23, 162, 184;
    --navbar-height: 70px;
}

/* Dark theme colors */
:root.light {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --secondary: #1F2937;
    --accent: #10B981;
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-card: #334155;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --border-color: #475569;
    --gradient: linear-gradient(135deg, #6366F1 0%, #10B981 100%);
    --primary-rgb: 99, 102, 241;
    --accent-rgb: 16, 185, 129;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
    zoom: 0.8;
    -moz-transform: scale(0.8);
    -moz-transform-origin: center top;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

/* Navigation bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    height: var(--navbar-height);
    border-bottom: 1px solid rgba(71, 85, 105, 0.2);
}

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

/* Hero section */
.hero {
    min-height: 125vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    animation: gradientShift 15s ease infinite;
    background-size: 200% 200%;
    overflow: hidden;
    padding-top: var(--navbar-height);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Page sections */
.section {
    padding: 6rem 0;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.section-inner {
    padding: 0 2rem;
}

/* Content containers */
.about-content,
.skills-grid,
.projects-grid,
.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    body {
        zoom: 1;
        -moz-transform: none;
    }

    .section {
        padding: 4rem 0;
    }

    .section-inner,
    .hero-content,
    .about-content,
    .skills-grid,
    .projects-grid,
    .contact-content,
    .footer-content {
        padding: 0 1rem;
    }
}

/* Container layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar scroll effect */
.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Light mode navbar */
.light .navbar {
    background: rgba(248, 250, 252, 0.95);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.light .navbar.scrolled {
    background: rgba(248, 250, 252, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.light .logo {
    color: #1E3D59;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.logo:hover {
    color: #1CC2DB;
}

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

.nav-links a {
    color: var(--bg-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.light .nav-links a {
    color: #35bfac;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-links a:hover,
.nav-links a.active {
    color: #f5f5f5;
}

/* Dark mode mobile navigation styles */
.light .nav-links a {
    color: #1E3D59;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.light .nav-links a:hover,
.light .nav-links a.active {
    color: #17A2B8;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--accent);
    transition: width 0.3s ease;
}

.light .nav-links a::after {
    background: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.mobile-menu span {
    width: 30px;
    height: 4px;
    background: var(--text-primary);
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.light .mobile-menu span {
    background: #1E3D59;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--bg-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.light .theme-toggle {
    color: #1E3D59;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    color: var(--accent);
}

.light .theme-toggle:hover {
    color: var(--accent);
}

/* Hero Styles */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(var(--primary-rgb), 0.05) 0%,
        rgba(var(--accent-rgb), 0.05) 100%);
    pointer-events: none;
}

#particle-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23334155" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,138.7C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') center/cover;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease-out;
    text-shadow: none;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.4s both;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.2);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.3);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent);
    position: relative;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

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

.btn-secondary:hover::before {
    transform: scaleX(1);
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    background: var(--gradient);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.floating-element:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.floating-element:nth-child(3) {
    width: 150px;
    height: 150px;
    bottom: 15%;
    left: 20%;
    animation-delay: 4s;
    clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    transform-origin: bottom right;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Section Styles */
.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* Subtle glow effect in dark mode */
.light .section-title {
    filter: drop-shadow(0 0 8px rgba(79, 209, 225, 0.3));
}

/* Ensure text is visible if gradient fails to load */
@supports not (background-clip: text) {
    .section-title {
        background: none;
        -webkit-text-fill-color: #4FD1E1;
        color: #4FD1E1;
    }
}

/* About Styles */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: var(--gradient);
    border-radius: 20px;
    z-index: -1;
}

.profile-img {
    width: 100%;
    max-width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
}

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

.about-text .btn-primary {
    margin-top: 1.5rem;
    display: inline-block;
}

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

.stat-item {
    text-align: center;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease, background 1s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: var(--gradient);
}

/* Skills grid layout */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Skill category cards */
.skill-category {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

/* Top border accent */
.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark), var(--accent));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

/* Hover overlay */
.skill-category::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, transparent 50%, rgba(var(--accent-rgb), 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Card hover effects */
.skill-category:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category:hover::after {
    opacity: 1;
}

/* Skill category headers */
.skill-category h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.skill-category h3 i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Skills list */
.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

/* Individual skill items */
.skill-item {
    background: var(--bg-primary);
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 2px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: fadeInScale 0.4s ease-out forwards;
    opacity: 0;
    transform: scale(0.8);
}

/* Shimmer effect */
.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

/* Skill item hover */
.skill-item:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    transform: scale(1.08) translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.4);
}

.skill-item:hover::before {
    left: 100%;
}

.skill-item:hover img,
.skill-item:hover i {
    filter: brightness(0) invert(1);
    transform: scale(1.1);
}

/* Skill icons */
.skill-item img,
.skill-item i {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.skill-item img {
    filter: var(--icon-filter, none);
}

.light .skill-item img {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

/* Dark mode icon visibility */
.skill-item img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* Keep colored icons as-is */
.skill-item img[alt*="HTML5"],
.skill-item img[alt*="CSS3"],
.skill-item img[alt*="JavaScript"],
.skill-item img[alt*="Python"],
.skill-item img[alt*="Java"],
.skill-item img[alt*="C++"],
.skill-item img[alt*="Arduino"],
.skill-item img[alt*="Git"],
.skill-item img[alt*="GitHub"],
.skill-item img[alt*="Autodesk"],
.skill-item img[alt*="ESP32"] {
    filter: none;
}

/* Projects Styles */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--text-primary);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.filter-btn.active {
    background: var(--primary);
    color: white;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 2rem 0;
    perspective: 1000px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.projects-carousel {
    position: relative;
    width: 100%;
    overflow: visible;
    padding: 2rem 0;
}

.projects-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0;
    will-change: transform;
}

.project-card {
    flex: 0 0 auto;
    width: calc(100% - 4rem);
    max-width: 800px;
    margin: 0 2rem;
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    opacity: 0.3;
    transform: scale(0.8) translateZ(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    will-change: transform, opacity;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.project-card.active {
    opacity: 1;
    transform: scale(1) translateZ(0);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--primary);
}

.project-card:not(.active) {
    pointer-events: none;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-button:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.carousel-button:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

.carousel-button i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.carousel-button.prev:hover i {
    transform: translateX(-2px);
}

.carousel-button.next:hover i {
    transform: translateX(2px);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-secondary);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.carousel-dot:hover {
    opacity: 0.8;
    transform: scale(1.2);
}

.carousel-dot.active {
    opacity: 1;
    background: var(--primary);
    transform: scale(1.3);
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary);
}

/* Project Card Styles */
.project-image {
    width: 100%;
    padding: 3rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 30%,
        transparent 100%
    );
    transform: rotate(45deg);
    transition: transform 0.8s ease;
}

.project-card.active .project-image::before {
    transform: rotate(45deg) translate(50%, 50%);
}

.project-image i {
    font-size: 3.5rem;
    color: var(--primary);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-card.active .project-image i {
    transform: scale(1.1);
    color: var(--accent);
}

.project-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.project-card.active .project-title {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.tech-tag {
    background: var(--bg-secondary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--primary);
}

.project-card.active .tech-tag {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.project-links {
    margin-top: 2rem;
}

.project-link {
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-link.primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.project-link.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

@media (max-width: 1024px) {
    .project-card {
        flex: 0 0 calc(100% - 2rem);
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 1rem 0;
    }

    .project-card {
        flex: 0 0 calc(100% - 1rem);
        margin: 0 0.5rem;
        padding: 1rem;
    }

    .carousel-button {
        width: 36px;
        height: 36px;
    }

    .project-image {
        padding: 2rem;
    }

    .project-image i {
        font-size: 2.5rem;
    }

    .project-title {
        font-size: 1.3rem;
    }

    .project-description {
        font-size: 1rem;
    }
}

/* Smooth scrolling for filter transitions */
.projects-track {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.projects-track.filtering {
    opacity: 0;
    transform: scale(0.98);
}

/* Loading animation for project cards */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.project-card {
    animation: cardEntrance 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Hover effect for project links */
.project-link i {
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(4px);
}

/* Contact Styles */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 15px;
    transition: transform 0.3s ease, background 1s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    background: var(--gradient);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
}

.contact-item p {
    margin: 0;
    color: var(--text-secondary);
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-dark);
}

.contact-form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--bg-secondary);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-height: 44px;
}

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

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--accent);
    background: var(--bg-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.2);
}

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

/* Style for the submit button if you have one */
.form-group button[type="submit"],
.contact-form button[type="submit"] {
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-group button[type="submit"]:hover,
.contact-form button[type="submit"]:hover {
    background: #1CC2DB;
    transform: translateY(-2px);
}

/* Footer Styles */
.footer {
    background: var(--bg-secondary);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.social-link .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

/* Visitor Counter Styles */
.visitor-counter {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    background: var(--bg-card);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.visitor-counter img {
    height: 24px;
    vertical-align: middle;
    transition: opacity 0.3s ease;
}

.visitor-counter a:hover img {
    opacity: 0.8;
}

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

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

@keyframes particleFloat {
    to {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

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

@keyframes pulse {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    50% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

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

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: fadeInScale 0.8s ease;
}

/* Mobile Styles */
@media (max-width: 768px) {
    #particle-network {
        display: none;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
        left: 0;
        opacity: 1;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
        color: var(--text-primary);
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: #f5f5f5;
    }

    .mobile-menu {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        background: none;
        border: none;
        padding: 0.5rem;
    }

    .mobile-menu span {
        width: 30px;
        height: 4px;
        background: var(--text-primary);
        margin: 4px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

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

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

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

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 4rem 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .profile-img {
        max-width: 250px;
        height: 300px;
    }

    .about-text {
        font-size: 1rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .skill-category {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .skill-category h3 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .skill-category h3 i {
        font-size: 1.5rem;
    }
    
    .skill-list {
        gap: 0.8rem;
    }
    
    .skill-item {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        border-radius: 25px;
    }
    
    .skill-item img,
    .skill-item i {
        width: 20px;
        height: 20px;
    }

    .project-card {
        max-width: 100%;
    }

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

    .contact-item h4 {
        font-size: 1rem;
    }

    .contact-item p {
        font-size: 0.9rem;
    }

    .section {
        padding: 4rem 1rem;
    }

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

    .form-group input,
    .form-group textarea {
        font-size: 1rem;
    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .visitor-counter {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .visitor-counter img {
        height: 20px;
    }

    .project-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    :root {
        --scale-factor: 1;
    }
    
    .scale-wrapper {
        transform: none;
        width: 100%;
        margin: 0;
    }
    
    .section,
    .hero,
    .footer {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .skill-category {
        padding: 1.8rem;
    }
}

/* Accessibility: Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    .hero, .project-card, .skill-item, .scroll-reveal, .btn-primary::after, .social-link .ripple, .back-to-top {
        animation: none;
        transition: none;
    }
}

/* About section specific */
.about-text h2 {
    color: var(--accent);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-text p {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Contact section specific */
.contact-content h2 {
    color: var(--accent);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
}

.skip-nav {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    z-index: 1000;
    transition: top 0.3s;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

.skip-nav:focus {
    top: 0;
}

/* Form validation styles */
.error-message {
    display: none;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    position: absolute;
    bottom: -1.25rem;
    left: 0;
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Cookie Consent Styles */
.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 1rem;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: bottom 0.3s ease;
}

.cookie-consent.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-content p {
    margin: 0;
    color: var(--text-primary);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Project Card Animation */
.project-card {
    transition: all 0.4s ease;
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Form Message Styles */
.result-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.success-message {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.error-message {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Feedback Section */
.feedback {
    background-color: var(--bg-primary);
    padding: 4rem 2rem;
    position: relative;
}

.feedback::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient);
    opacity: 0.2;
}

.feedback-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.rating-container {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 15px;
}

.stars {
    font-size: 2.5rem;
    color: var(--accent);
    cursor: pointer;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.stars i {
    transition: all 0.3s ease;
}

.stars i:hover,
.stars i.active {
    color: #ffd700;
    transform: scale(1.1);
}

.rating-text {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.feedback-form {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.recent-feedback {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 15px;
}

.recent-feedback h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.feedback-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 1rem;
}

.feedback-list::-webkit-scrollbar {
    width: 8px;
}

.feedback-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.feedback-list::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.feedback-item {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.feedback-item:hover {
    transform: translateY(-2px);
}

.feedback-item:last-child {
    margin-bottom: 0;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

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

.feedback-rating {
    color: #ffd700;
    letter-spacing: 2px;
}

.feedback-message {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.feedback-date {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-top: 1rem;
    text-align: right;
}

@media (max-width: 768px) {
    .feedback-content {
        padding: 1.5rem;
    }

    .stars {
        font-size: 2rem;
        gap: 0.5rem;
    }

    .feedback-form,
    .recent-feedback {
        padding: 1.5rem;
    }

    .feedback-list {
        max-height: 300px;
    }

    .feedback-item {
        padding: 1rem;
    }
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(150%);
    transition: transform 0.3s ease-in-out;
    font-weight: 500;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification i {
    font-size: 1.2rem;
}

.toast-notification.success {
    background: #2ecc71;
}

.toast-notification.error {
    background: #e74c3c;
}

/* Dark mode adjustments */
[data-theme="dark"] .toast-notification {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Feedback Modal */
.feedback-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 500px;
    height: 130vh;
    background: var(--bg-primary);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}

.feedback-modal.active {
    right: 0;
}

.feedback-modal-content {
    padding: 1rem;
    position: relative;
    height: 100%;
    overflow-y: auto;
    z-index: 1001;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-secondary);
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 12px;
    z-index: 1002;
}

.close-modal:hover {
    background: var(--bg-secondary);
    color: var(--accent);
    transform: rotate(90deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feedback-modal .section-title {
    font-size: 1.8rem;
    margin: 0.5rem 0 1.5rem;
    padding-right: 2rem;
}

.feedback-modal .feedback-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.feedback-modal .rating-container {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    transform: translateY(0);
    opacity: 1;
}

.feedback-modal .feedback-form {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.feedback-modal .recent-feedback {
    padding: 1.5rem;
}

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

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feedback-modal {
        max-width: 100%;
    }
}

/* Update existing feedback styles */
.feedback-content {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.feedback-form {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.recent-feedback {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 15px;
}

.feedback-list {
    max-height: 300px;
}

.no-feedback {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    font-style: italic;
    background: var(--bg-secondary);
    border-radius: 10px;
    margin: 1rem 0;
}

@media (max-width: 768px) {
    :root {
        --scale-factor: 1;
    }
    
    body {
        width: 100%;
    }
}

@media (min-width: 2000px) {
    :root {
        --scale-factor: 0.9;
    }
}

@media (min-width: 2500px) {
    :root {
        --scale-factor: 1;
    }
}

/* About section specific */
#about {
    background: var(--bg-primary);
    padding-top: calc(var(--navbar-height) + 2rem);
    margin-top: 0;
    position: relative;
    z-index: 2;
}

/* Add touch-specific styles for mobile */
@media (max-width: 768px) {
    .close-modal {
        width: 56px;
        height: 56px;
        padding: 16px;
        top: 1.5rem;
        right: 1.5rem;
    }
}

/* Skill category animations */
.skill-category {
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.skill-category:nth-child(1) { animation-delay: 0.1s; }
.skill-category:nth-child(2) { animation-delay: 0.2s; }
.skill-category:nth-child(3) { animation-delay: 0.3s; }
.skill-category:nth-child(4) { animation-delay: 0.4s; }

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

/* Skill item animations */
.skill-item {
    animation: fadeInScale 0.4s ease-out forwards;
    opacity: 0;
    transform: scale(0.8);
}

.skill-item:nth-child(1) { animation-delay: 0.2s; }
.skill-item:nth-child(2) { animation-delay: 0.3s; }
.skill-item:nth-child(3) { animation-delay: 0.4s; }
.skill-item:nth-child(4) { animation-delay: 0.5s; }
.skill-item:nth-child(5) { animation-delay: 0.6s; }
.skill-item:nth-child(6) { animation-delay: 0.7s; }

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