:root {
    --primary-color: #00d4ff;
    --secondary-color: #7c3aed;
    --accent-color: #10b981;
    --dark-bg: #0a0a0f;
    --dark-card: #12121a;
    --dark-lighter: #1a1a25;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --gradient-1: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-2: linear-gradient(135deg, #7c3aed 0%, #10b981 100%);
    --gradient-3: linear-gradient(45deg, #00d4ff, #7c3aed, #10b981, #00d4ff);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: auto;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.cursor {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.5;
}

.navbar {
    padding: 1rem 0;
    background: transparent;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.brand-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    margin: 0 0.8rem;
    position: relative;
    transition: all 0.3s ease;
}

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

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

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0d0d1a 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float 15s infinite;
    opacity: 0.5;
    will-change: transform, opacity;
    contain: strict;
}

@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    50% { transform: translate3d(50px, -100vh, 0); }
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--primary-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-title .gradient-text {
    color: #ffffff !important;
    background: linear-gradient(135deg, #00e5ff 0%, #a855f7 100%);
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
}

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

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

.btn-primary-custom {
    background: var(--gradient-1);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--primary-color);
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.hero-image {
    position: relative;
    opacity: 0;
    animation: fadeInRight 1s ease forwards 1s;
}

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

.hero-shape {
    width: 400px;
    height: 400px;
    position: relative;
}

.shape-circle {
    position: absolute;
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
    --parallax-x: 0px;
    --parallax-y: 0px;
    transform: translate(var(--parallax-x), var(--parallax-y));
}

@keyframes pulse {
    0%, 100% { scale: 1; }
    50% { scale: 1.05; }
}

.shape-1 {
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    opacity: 0.3;
}

.shape-2 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border: 2px solid var(--secondary-color);
    opacity: 0.5;
    animation-delay: 0.5s;
}

.shape-3 {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    background: var(--gradient-1);
    opacity: 0.1;
    animation-delay: 1s;
}

.code-icon {
    position: absolute;
    font-size: 3rem;
    color: var(--primary-color);
    animation: floatIcon 6s ease-in-out infinite;
}

.code-icon:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.code-icon:nth-child(2) { top: 20%; right: 10%; animation-delay: 1s; }
.code-icon:nth-child(3) { bottom: 20%; left: 20%; animation-delay: 2s; }
.code-icon:nth-child(4) { bottom: 10%; right: 20%; animation-delay: 3s; }
.code-icon:nth-child(5) { top: 50%; left: 5%; animation-delay: 4s; }

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

section {
    padding: 100px 0;
}

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

.section-subtitle {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title .gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    margin: 0 auto;
    border-radius: 2px;
}

#services {
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-card) 100%);
}

.service-card {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    will-change: transform;
    backface-visibility: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

.service-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

#skills {
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.skills-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
}

.skill-category {
    margin-bottom: 3rem;
}

.skill-category h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.skill-item {
    margin-bottom: 1.5rem;
}

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

.skill-name {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-name i {
    color: var(--primary-color);
}

.skill-percentage {
    color: var(--primary-color);
    font-weight: 600;
}

.skill-bar {
    height: 10px;
    background: var(--dark-lighter);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 5px;
    width: 0;
    transition: width 1.5s ease;
    position: relative;
}

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

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

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.tech-icon {
    width: 80px;
    height: 80px;
    background: var(--dark-card);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-icon:hover {
    transform: translateY(-10px) scale(1.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

#portfolio {
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-card) 100%);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

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

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
}

.portfolio-item {
    margin-bottom: 2rem;
}

.portfolio-card {
    background: var(--dark-card);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    will-change: transform;
    backface-visibility: hidden;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.15);
}

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

.portfolio-image i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-links a {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.portfolio-links a:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.portfolio-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.portfolio-link-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-link-icon:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-category {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.portfolio-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-tech {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

#about {
    background: var(--dark-bg);
}

.about-image {
    position: relative;
}

.about-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.about-img-wrapper img {
    width: 100%;
    border-radius: 20px;
}

.about-img-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    z-index: -1;
}

.about-placeholder {
    width: 100%;
    height: 400px;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-placeholder i {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.3);
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

#contact {
    background: linear-gradient(180deg, var(--dark-card) 0%, var(--dark-bg) 100%);
}

.contact-info {
    padding-right: 3rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

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

.contact-details h5 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

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

.contact-form {
    background: var(--dark-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-control {
    background: var(--dark-lighter);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: var(--dark-lighter);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

textarea.form-control {
    min-height: 150px;
    resize: none;
}

.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--gradient-1);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
}

.footer {
    background: var(--dark-card);
    padding: 5rem 0 2rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--dark-lighter);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-5px);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

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

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 3px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 3rem 0 1.5rem;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
    color: white;
}

.alert {
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-shape {
        width: 300px;
        height: 300px;
    }
    
    .about-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .navbar-nav {
        padding: 1rem 0;
        text-align: center;
    }
    
    .nav-link {
        margin: 0.5rem 0;
        display: block;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .portfolio-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .cursor, .cursor-follower {
        display: none;
    }
    
    body {
        cursor: auto;
    }
    
    #hero {
        overflow: visible;
    }
    
    .hero-content {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 1.8rem;
        word-wrap: break-word;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 2px;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .hero-description {
        font-size: 0.9rem;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .navbar-brand {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .gradient-text {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .skill-category {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .skill-category h4 {
        font-size: 1.1rem;
    }
    
    .portfolio-filters {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .portfolio-image {
        height: 180px;
    }
    
    .portfolio-content {
        padding: 1rem;
    }
    
    .portfolio-title {
        font-size: 1.1rem;
    }
    
    .about-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
    }
    
    .stat-item {
        flex: 0 0 calc(50% - 1rem);
        text-align: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .contact-info {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .hero-image {
        margin-top: 3rem;
    }
    
    .footer .row > div {
        margin-bottom: 2rem;
    }
    
    .footer-title {
        margin-bottom: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .tech-icons {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .tech-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .about-img-wrapper::before,
    .about-img-wrapper::after {
        display: none;
    }
    
    .about-placeholder {
        height: 250px;
    }
    
    .about-placeholder i {
        font-size: 4rem;
    }
}

@media (max-width: 576px) {
    #hero {
        overflow: visible;
        padding: 0;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
        padding-right: 10px;
    }
    
    .hero-subtitle {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
    
    .hero-description {
        font-size: 0.85rem;
        padding-right: 10px;
    }
    
    .section-title {
        font-size: 1.4rem;
        word-wrap: break-word;
    }
    
    section {
        padding: 40px 0;
        overflow-x: hidden;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
        padding: 0 10px;
    }
    
    .container {
        padding-left: 12px;
        padding-right: 12px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1rem;
        max-width: 150px;
    }
    
    .navbar-brand img {
        max-height: 30px;
    }
    
    .brand-text {
        font-size: 1rem;
    }
    
    .service-card h4 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
    }
    
    .portfolio-image {
        height: 160px;
    }
    
    .portfolio-links {
        gap: 0.5rem;
    }
    
    .portfolio-link-icon,
    .portfolio-links a {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .stat-item {
        flex: 0 0 100%;
    }
    
    .about-content h2 {
        font-size: 1.5rem;
    }
    
    .about-content p {
        font-size: 0.9rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }
    
    .btn-submit {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .footer-brand {
        font-size: 1.3rem;
    }
    
    .footer-description {
        font-size: 0.85rem;
    }
    
    .footer-links li a,
    .footer-contact li {
        font-size: 0.85rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        right: 15px;
        bottom: 15px;
    }
    
    .filter-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .skill-item {
        margin-bottom: 1rem;
    }
    
    .skill-name {
        font-size: 0.85rem;
    }
    
    .skill-percentage {
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.3rem;
    }
    
    .hero-subtitle {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .hero-buttons .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .portfolio-image {
        height: 140px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-icon i {
        font-size: 1.2rem;
    }
    
    .navbar-brand {
        max-width: 120px;
        font-size: 0.9rem;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 3px solid var(--dark-lighter);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.3s infinite linear alternate-reverse;
    color: #ff00ff;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.3s infinite linear alternate-reverse;
    color: #00ffff;
    z-index: -2;
}

@keyframes glitch-1 {
    0% { clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%); transform: translate(-3px, 0); }
    100% { clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%); transform: translate(3px, 0); }
}

@keyframes glitch-2 {
    0% { clip-path: polygon(0 35%, 100% 35%, 100% 65%, 0 65%); transform: translate(3px, 0); }
    100% { clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%); transform: translate(-3px, 0); }
}

.typing-text {
    border-right: 2px solid var(--primary-color);
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient-1);
    z-index: 100000;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    opacity: 0.03;
    animation: floatShape 20s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 200px;
    height: 200px;
    background: var(--secondary-color);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

.floating-shape:nth-child(3) {
    width: 150px;
    height: 150px;
    background: var(--accent-color);
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    bottom: 20%;
    left: 15%;
    animation-delay: -10s;
}

.floating-shape:nth-child(4) {
    width: 250px;
    height: 250px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    top: 30%;
    right: 20%;
    animation-delay: -7s;
    background: transparent;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(0, -50px) rotate(180deg) scale(1);
    }
    75% {
        transform: translate(-30px, -20px) rotate(270deg) scale(0.9);
    }
}

.btn-primary-custom,
.btn-outline-custom,
.btn-submit {
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::after,
.btn-submit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary-custom:active::after,
.btn-submit:active::after {
    width: 300px;
    height: 300px;
}

.btn-glow {
    animation: buttonGlow 2s ease-in-out infinite;
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 0 5px var(--primary-color),
                    0 0 10px var(--primary-color),
                    0 0 15px var(--primary-color);
    }
    50% {
        box-shadow: 0 0 10px var(--primary-color),
                    0 0 20px var(--primary-color),
                    0 0 30px var(--primary-color),
                    0 0 40px var(--primary-color);
    }
}

.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    animation: textReveal 0.8s ease forwards;
}

.text-reveal span:nth-child(1) { animation-delay: 0.1s; }
.text-reveal span:nth-child(2) { animation-delay: 0.2s; }
.text-reveal span:nth-child(3) { animation-delay: 0.3s; }
.text-reveal span:nth-child(4) { animation-delay: 0.4s; }
.text-reveal span:nth-child(5) { animation-delay: 0.5s; }

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

.aurora-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    animation: auroraMove 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes auroraMove {
    0%, 100% {
        opacity: 1;
        filter: hue-rotate(0deg);
    }
    50% {
        opacity: 0.8;
        filter: hue-rotate(30deg);
    }
}

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

.neon-border {
    position: relative;
}

.neon-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-3);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: neonBorder 3s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.neon-border:hover::before {
    opacity: 1;
}

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

.service-card.neon-border::before,
.portfolio-card.neon-border::before {
    border-radius: 20px;
}

.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    animation: sparkleAnim 0.8s ease forwards;
}

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

.hero-content .hero-title {
    animation: heroTitleAnim 1s ease forwards;
}

@keyframes heroTitleAnim {
    0% {
        opacity: 0;
        transform: translateY(50px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-subtitle {
    animation: heroSubtitleAnim 1s ease forwards 0.3s;
    opacity: 0;
}

@keyframes heroSubtitleAnim {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-description {
    animation: heroDescAnim 1s ease forwards 0.6s;
    opacity: 0;
}

@keyframes heroDescAnim {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    animation: heroButtonsAnim 1s ease forwards 0.9s;
    opacity: 0;
}

@keyframes heroButtonsAnim {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    position: relative;
}

.section-line {
    position: relative;
    overflow: hidden;
}

.section-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: lineShimmer 3s ease infinite;
}

@keyframes lineShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.contact-icon {
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.footer-brand {
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-brand:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.social-links a {
    position: relative;
    overflow: hidden;
}

.social-links a::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.5s ease;
}

.social-links a:hover::before {
    left: 100%;
}

.parallax-element {
    will-change: transform;
}

.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }
    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
