@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --primary: #0ef;
    --primary-dark: #00b8d4;
    --bg-dark: #081b29;
    --bg-darker: #061520;
    --bg-section: #0a1f30;
    --text-light: #ededed;
    --text-muted: #b0b0b0;
    --purple: #a855f7;
    --purple-dark: #7c3aed;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-light);
    background: var(--bg-dark);
    overflow-x: hidden;
    cursor: none;
}

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

.cursor-follower {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
    opacity: 0.6;
}

.cursor-follower.hover {
    width: 55px;
    height: 55px;
    border-color: var(--purple);
    opacity: 0.4;
}

/* Particle Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 27, 41, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
    width: 250px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-text {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
    text-shadow: 0 0 15px rgba(0, 238, 255, 0.3);
    z-index: 2;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.3s ease;
}

.loader-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.loader-ring.fade-out {
    opacity: 0.15;
    transform: scale(1.3);
}

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--purple));
    border-radius: 10px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: rgba(8, 27, 41, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all .3s ease;
    border-bottom: 1px solid rgba(0, 238, 255, 0.1);
}

.header.sticky {
    background: rgba(8, 27, 41, 0.95);
    box-shadow: 0 5px 30px rgba(0, 238, 255, 0.1);
    padding: 15px 10%;
}

.logo {
    position: relative;
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    cursor: none;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}

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

#menu-icon {
    font-size: 36px;
    color: var(--primary);
    cursor: none;
    display: none;
    transition: transform 0.3s ease;
}

#menu-icon:hover {
    transform: scale(1.1);
}

.navbar a {
    display: inline-block;
    font-size: 17px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    transition: all .3s ease;
    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
    position: relative;
    cursor: none;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.navbar a:hover,
.navbar a.active {
    color: var(--primary);
}

/* Home Section */
.home {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(8, 27, 41, 0.95), rgba(10, 31, 48, 0.9));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 70px 10% 0;
    z-index: 1;
}

.home-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.home-content h3 {
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: .7s;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 30px;
    animation: slideTop 1s ease forwards;
    animation-delay: .7s;
}

.home-content h3 span {
    color: var(--primary);
}

.home-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin: -3px 0;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-content p {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
    color: var(--text-muted);
}

.home-img {
    position: relative;
    z-index: 1;
}

.img-box {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark), var(--primary), #06b6d4);
    padding: 5px;
    box-shadow:
        0 0 30px rgba(168, 85, 247, 0.4),
        0 0 60px rgba(168, 85, 247, 0.2),
        0 0 30px rgba(0, 238, 255, 0.4),
        0 0 60px rgba(0, 238, 255, 0.2);
    opacity: 0;
}

.img-box.floating {
    animation: borderGlow 3s ease-in-out infinite alternate, floatAnimation 6s ease-in-out infinite;
    animation-delay: 0s, 0.2s;
}

.img-box::before {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: var(--bg-dark);
    z-index: 0;
}

.img-box::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark), var(--primary), #06b6d4);
    z-index: -1;
    filter: blur(15px);
    opacity: 0.6;
    animation: borderGlow 3s ease-in-out infinite alternate;
}

.img-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 238, 255, 0.15), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseGlow 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulseGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.2; }
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1); }
}

.profile-img {
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.img-box:hover .profile-img {
    transform: scale(1.1);
}

@keyframes borderGlow {
    0% {
        box-shadow:
            0 0 30px rgba(168, 85, 247, 0.5),
            0 0 60px rgba(168, 85, 247, 0.3),
            0 0 30px rgba(0, 238, 255, 0.3),
            0 0 60px rgba(0, 238, 255, 0.1);
    }
    100% {
        box-shadow:
            0 0 40px rgba(0, 238, 255, 0.5),
            0 0 80px rgba(0, 238, 255, 0.3),
            0 0 40px rgba(168, 85, 247, 0.3),
            0 0 80px rgba(168, 85, 247, 0.1);
    }
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 50%;
    font-size: 20px;
    color: var(--primary);
    text-decoration: none;
    transition: all .5s ease;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
    margin: 30px 15px 30px 0;
    cursor: none;
    position: relative;
    overflow: hidden;
}

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

.home-sci a:hover::before {
    top: 0;
}

.home-sci a:hover {
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--primary), 0 0 40px rgba(0, 238, 255, 0.3);
    transform: translateY(-3px);
}

.btn-box {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    border-radius: 40px;
    font-size: 16px;
    color: var(--bg-dark);
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
    box-shadow: 0 0 5px var(--primary), 0 0 25px var(--primary);
    border: none;
    cursor: none;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.btn-box:hover {
    box-shadow: 0 0 5px cyan, 0 0 25px cyan, 0 0 50px cyan, 0 0 100px cyan;
    transform: translateY(-3px) scale(1.02);
}

/* About Section */
.about {
    padding: 100px 10%;
    background: var(--bg-dark);
    position: relative;
    z-index: 1;
}

.heading {
    text-align: center;
    font-size: 45px;
    margin-bottom: 60px;
}

.heading span {
    color: var(--primary);
    position: relative;
}

.heading span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    border-radius: 2px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.about-card {
    background: rgba(0, 238, 255, 0.03);
    border: 1px solid rgba(0, 238, 255, 0.15);
    border-radius: 15px;
    padding: 30px;
    transition: all .4s ease;
    position: relative;
    overflow: hidden;
    cursor: none;
}

.card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        135deg,
        transparent 40%,
        rgba(0, 238, 255, 0.05) 50%,
        transparent 60%
    );
    transform: rotate(0deg);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.about-card:hover .card-shine {
    transform: rotate(180deg);
}

.about-card:hover {
    background: rgba(0, 238, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 238, 255, 0.15);
}

.about-card i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.about-card:hover i {
    transform: scale(1.2) rotate(-5deg);
}

.about-card h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 10px;
}

.about-card p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Skills Section */
.skills {
    padding: 100px 10%;
    background: var(--bg-section);
    position: relative;
    z-index: 1;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.skill-category {
    background: rgba(8, 27, 41, 0.8);
    border: 1px solid rgba(0, 238, 255, 0.15);
    border-radius: 15px;
    padding: 30px;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transition: left 0.6s ease;
}

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

.skill-category:hover {
    border-color: rgba(0, 238, 255, 0.4);
    box-shadow: 0 5px 25px rgba(0, 238, 255, 0.08);
    transform: translateY(-3px);
}

.skill-category h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category h3 i {
    font-size: 24px;
}

.skill-item {
    margin-bottom: 20px;
}

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

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-info span {
    font-size: 14px;
    color: #ccc;
}

.skill-percent {
    color: var(--primary) !important;
    font-weight: 600;
}

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

.skill-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark), var(--purple));
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    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%); }
}

/* Portfolio Section */
.portfolio {
    padding: 100px 10%;
    background: var(--bg-dark);
    position: relative;
    z-index: 1;
}

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

.portfolio-card {
    background: rgba(0, 238, 255, 0.03);
    border: 1px solid rgba(0, 238, 255, 0.15);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    transition: all .4s ease;
    position: relative;
    overflow: hidden;
    cursor: none;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, transparent, transparent, var(--primary));
    animation: rotate 6s linear infinite;
    opacity: 0;
    transition: opacity .4s ease;
}

.portfolio-card:hover::before {
    opacity: 0.1;
}

.portfolio-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 19px;
    background: rgba(8, 27, 41, 0.95);
    z-index: 0;
}

.portfolio-card > * {
    position: relative;
    z-index: 1;
}

.portfolio-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(0, 238, 255, 0.15);
}

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

.portfolio-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(0, 238, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 238, 255, 0.3);
    transition: all 0.4s ease;
}

.portfolio-card:hover .portfolio-icon {
    background: rgba(0, 238, 255, 0.2);
    border-color: var(--primary);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.3);
}

.portfolio-icon i {
    font-size: 36px;
    color: var(--primary);
}

.portfolio-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #fff;
}

.portfolio-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.portfolio-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 30px;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all .3s ease;
    cursor: none;
    position: relative;
    overflow: hidden;
}

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

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

.portfolio-btn:hover {
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.4);
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    padding: 100px 10%;
    background: var(--bg-section);
    position: relative;
    z-index: 1;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(0, 238, 255, 0.03);
    border: 1px solid rgba(0, 238, 255, 0.15);
    border-radius: 12px;
    transition: all .3s ease;
    cursor: none;
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: 0 5px 20px rgba(0, 238, 255, 0.1);
}

.contact-item i {
    font-size: 30px;
    color: var(--primary);
    min-width: 40px;
}

.contact-item h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 3px;
}

.contact-item p {
    font-size: 14px;
    color: var(--text-muted);
}

.contact-social {
    padding: 25px;
    background: rgba(0, 238, 255, 0.03);
    border: 1px solid rgba(0, 238, 255, 0.15);
    border-radius: 12px;
}

.contact-social h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 15px;
}

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

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: rgba(0, 238, 255, 0.1);
    border: 2px solid rgba(0, 238, 255, 0.3);
    border-radius: 50%;
    font-size: 22px;
    color: var(--primary);
    text-decoration: none;
    transition: all .4s ease;
    cursor: none;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.social-links a:hover::before {
    transform: scale(1);
}

.social-links a:hover {
    color: var(--bg-dark);
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(0, 238, 255, 0.5);
    transform: translateY(-5px) rotate(360deg);
}

/* Contact Form */
.contact-form {
    background: rgba(0, 238, 255, 0.03);
    border: 1px solid rgba(0, 238, 255, 0.15);
    border-radius: 15px;
    padding: 35px;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--purple), var(--primary));
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.contact-form h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form h3 i {
    color: var(--primary);
    font-size: 24px;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.input-wrapper.full-width {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 18px 16px 45px;
    background: rgba(0, 238, 255, 0.03);
    border: 1px solid rgba(0, 238, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all .3s ease;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 238, 255, 0.15);
    background: rgba(0, 238, 255, 0.05);
}

.input-wrapper label {
    position: absolute;
    left: 45px;
    top: 16px;
    color: #777;
    font-size: 14px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.contact-form input:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:focus + label,
.contact-form textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 15px;
    font-size: 12px;
    color: var(--primary);
    background: var(--bg-section);
    padding: 0 8px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 16px;
    color: rgba(0, 238, 255, 0.4);
    font-size: 18px;
    transition: color 0.3s ease;
}

.contact-form input:focus ~ .input-icon,
.contact-form textarea:focus ~ .input-icon {
    color: var(--primary);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 16px;
}

.submit-btn {
    opacity: 1;
    animation: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.submit-btn .btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: var(--bg-dark);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.submit-btn.loading .btn-text,
.submit-btn.loading i {
    display: none;
}

.submit-btn.loading .btn-loader {
    display: block;
}

.form-status {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
    align-items: center;
    gap: 8px;
    animation: slideTop 0.3s ease forwards;
}

.form-status.success {
    display: flex;
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid rgba(0, 200, 83, 0.3);
    color: #00c853;
}

.form-status.error {
    display: flex;
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: #ff5252;
}

/* Footer */
.footer {
    padding: 40px 10%;
    background: var(--bg-darker);
    border-top: 1px solid rgba(0, 238, 255, 0.1);
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo a {
    font-size: 28px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    cursor: none;
}

.footer-logo a span {
    color: var(--primary);
}

.footer-content p {
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
}

.footer-social {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1px solid rgba(0, 238, 255, 0.3);
    border-radius: 50%;
    font-size: 18px;
    color: var(--primary);
    text-decoration: none;
    transition: all .3s ease;
    cursor: none;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 238, 255, 0.3);
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    text-decoration: none;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    box-shadow: 0 0 15px rgba(0, 238, 255, 0.4);
    cursor: none;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    box-shadow: 0 0 30px rgba(0, 238, 255, 0.7);
    transform: translateY(-5px) scale(1.1);
}

/* Section Animations */
.about,
.skills,
.portfolio,
.contact {
    scroll-margin-top: 80px;
}

/* Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Keyframes */
@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

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

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

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

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

/* Responsive Design */
@media (max-width: 1200px) {
    .home {
        padding: 70px 5% 0;
    }
    
    .about, .skills, .portfolio, .contact {
        padding: 80px 5%;
    }

    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 992px) {
    /* Hide custom cursor on tablets */
    .cursor, .cursor-follower {
        display: none;
    }
    
    body {
        cursor: auto;
    }

    a, button, .btn-box, .portfolio-btn, .social-links a, .home-sci a {
        cursor: pointer;
    }

    .header {
        padding: 15px 5%;
    }

    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 15px 5%;
        background: rgba(8, 27, 41, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-top: 1px solid rgba(0, 238, 255, 0.1);
        display: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .navbar.active {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .navbar a {
        display: block;
        margin: 15px 0;
        font-size: 18px;
    }

    .navbar a::after {
        bottom: -3px;
    }

    .home {
        flex-direction: column-reverse;
        text-align: center;
        padding: 100px 5% 50px;
        gap: 30px;
    }

    .home-content {
        max-width: 100%;
    }

    .home-sci {
        justify-content: center;
    }

    .img-box {
        width: 250px;
        height: 250px;
        margin-bottom: 20px;
    }

    .img-glow {
        width: 280px;
        height: 280px;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cursor, .cursor-follower {
        display: none;
    }
    
    body {
        cursor: auto;
    }

    a, button, .btn-box, .portfolio-btn, .social-links a, .home-sci a {
        cursor: pointer;
    }

    .home-content h1 {
        font-size: 38px;
    }

    .home-content h3 {
        font-size: 22px;
    }

    .home-content p {
        font-size: 14px;
    }

    .heading {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-container {
        grid-template-columns: 1fr;
    }

    .form-group {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 25px;
    }

    .img-box {
        width: 200px;
        height: 200px;
    }

    .img-glow {
        width: 230px;
        height: 230px;
    }

    .about-card {
        padding: 20px;
    }

    .portfolio-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .cursor, .cursor-follower {
        display: none;
    }
    
    body {
        cursor: auto;
    }

    a, button, .btn-box, .portfolio-btn, .social-links a, .home-sci a {
        cursor: pointer;
    }

    .home-content h1 {
        font-size: 30px;
    }

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

    .heading {
        font-size: 26px;
    }

    .header {
        padding: 12px 4%;
    }

    .logo {
        font-size: 20px;
    }

    .home {
        padding: 90px 4% 40px;
    }

    .about, .skills, .portfolio, .contact {
        padding: 60px 4%;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .skill-category {
        padding: 20px;
    }

    .img-box {
        width: 180px;
        height: 180px;
    }

    .img-glow {
        width: 210px;
        height: 210px;
    }

    .home-sci a {
        width: 35px;
        height: 35px;
        font-size: 16px;
        margin: 20px 8px 20px 0;
    }

    .btn-box {
        padding: 10px 22px;
        font-size: 14px;
    }

    .contact-form h3 {
        font-size: 18px;
    }

    .footer {
        padding: 30px 4%;
    }

    .scroll-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
}

/* Touch device improvements */
@media (hover: none) {
    .cursor, .cursor-follower {
        display: none !important;
    }
    
    body {
        cursor: auto !important;
    }

    * {
        cursor: auto !important;
    }

    a, button {
        cursor: pointer !important;
    }

    .about-card:hover {
        transform: none;
    }

    .portfolio-card:hover {
        transform: translateY(-5px);
    }

    .contact-item:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .header, .scroll-top, .cursor, .cursor-follower, #particles-canvas, .preloader {
        display: none !important;
    }
}
