:root {
    --primary-color: #00aeef;
    --secondary-color: #2e3192;
    --accent-color: #6366f1;
    --neon-cyan: #00f5ff;
    --neon-purple: #a855f7;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --light-bg: #f8fafc;
    --text-color: #334155;
    --text-light: #94a3b8;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-vibrant: linear-gradient(135deg, #00aeef, #6366f1, #2e3192);
    --gradient-neon: linear-gradient(135deg, #00f5ff, #a855f7, #6366f1);
    --gradient-glow: linear-gradient(135deg, rgba(0, 174, 239, 0.3), rgba(46, 49, 146, 0.3));
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 40px -10px rgba(0, 174, 239, 0.3);
    --shadow-glow: 0 0 30px rgba(0, 174, 239, 0.2);
    --shadow-neon: 0 0 40px rgba(0, 245, 255, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* ============================================
   PRELOADER STYLES
   ============================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-bg), var(--darker-bg));
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    margin-bottom: 30px;
    animation: pulse-glow 2s ease-in-out infinite;
}

.loader-logo img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 174, 239, 0.5));
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(0, 174, 239, 0.5));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 40px rgba(0, 245, 255, 0.8));
    }
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 20px;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--gradient-neon);
    border-radius: 10px;
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.loader-text {
    color: var(--text-light);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
    width: 12px;
    height: 12px;
    background: var(--gradient-neon);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transition: transform 0.1s;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99997;
    transition: transform 0.3s ease-out, opacity 0.3s;
    opacity: 0.5;
}

@media (max-width: 768px) {

    .cursor,
    .cursor-follower {
        display: none;
    }
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-bg);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.bg-light {
    background-color: var(--light-bg);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-color);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-bg);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(to bottom, #f0f9ff, #ffffff);
    overflow: hidden;
    position: relative;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.hero-content .subtitle {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-bg);
}

.hero-content .highlight {
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.social-hero {
    display: flex;
    gap: 20px;
}

.social-hero a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    color: var(--text-color);
}

.social-hero a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.img-box {
    position: relative;
    z-index: 2;
    max-width: 450px;
    margin: 0 auto;
}

.img-box img {
    max-width: 100%;
    border-radius: 30px 30px 30px 30px;
    box-shadow: 0 0 30px rgba(0, 174, 239, 0.3),
        0 0 60px rgba(46, 49, 146, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.img-box:hover img {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(0, 174, 239, 0.5),
        0 0 80px rgba(46, 49, 146, 0.3);
}

.shape-1 {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: var(--secondary-color);
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
}

.shape-2 {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-bg);
}

.about-info p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.stat-item .counter {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
}

.stat-item .text {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 35px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 174, 239, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-vibrant);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.1), rgba(99, 102, 241, 0.1));
    color: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.service-card:hover .icon {
    background: var(--gradient-vibrant);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(0, 174, 239, 0.3);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--dark-bg);
    background: var(--gradient-neon);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skill-bar {
    margin-bottom: 25px;
}

.skill-bar .info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
}

.skill-bar .info span:first-child {
    color: var(--text-color);
}

.skill-percent {
    color: var(--primary-color);
    font-weight: 700;
    min-width: 40px;
    text-align: left;
}

.skill-bar .bar {
    height: 12px;
    background: rgba(0, 174, 239, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-bar .bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--gradient-neon);
    border-radius: 10px;
    transition: width 1.5s ease-out;
    position: relative;
    overflow: hidden;
}

.skill-bar .bar span::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

/* Portfolio Section */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 25px;
    border: none;
    background: var(--white);
    color: var(--text-color);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.portfolio-item .content {
    text-align: center;
    color: var(--white);
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-item:hover .content {
    transform: translateY(0);
}

.portfolio-item h4 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.portfolio-item p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #cbd5e1;
}

.link-btn {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 40px;
    overflow: hidden;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.info-item h4 {
    font-size: 1.1rem;
    color: var(--dark-bg);
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    background: var(--white);
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-logo p {
    color: #94a3b8;
}

.footer-links h3,
.footer-newsletter h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #94a3b8;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.footer-newsletter form {
    display: flex;
    gap: 10px;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px;
    border-radius: 5px;
    border: none;
    outline: none;
}

.footer-newsletter button {
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.footer-newsletter button:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 991px) {
    .container {
        padding: 0 30px;
    }

    #hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .hero-btns,
    .social-hero {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-img {
        order: -1;
        text-align: center;
    }

    .about-img img {
        max-width: 400px;
    }

    .hero-image .img-box {
        max-width: 250px;
        margin: 0 auto;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-newsletter form {
        max-width: 400px;
        margin: 0 auto;
    }

    #hero {
        height: auto;
        padding-top: 100px;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .header-actions .btn {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Fixes for Mobile Layout & Visibility */
.hero-content,
.hero-image {
    position: relative;
    z-index: 10;
}

.hero-content .highlight {
    color: var(--primary-color);
    /* Fallback */
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {

    #hero-canvas,
    .shape-1,
    .shape-2 {
        display: none !important;
    }

    .hero-content {
        z-index: 20;
        /* Ensure text is always on top */
    }
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #20BA56;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Adjust for mobile */
@media (max-width: 768px) {
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 28px;
        bottom: 20px;
        left: 20px;
    }
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

.slider-container {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 174, 239, 0.3),
        0 0 40px rgba(46, 49, 146, 0.2);
}

.slides {
    position: relative;
    width: 100%;
    height: 350px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    right: 15px;
}

.next-btn {
    left: 15px;
}

.slider-dots {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.slider-dot.active {
    background: var(--primary-color);
    border-color: #fff;
    transform: scale(1.2);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Slider Responsive */
@media (max-width: 991px) {
    .hero-slider {
        max-width: 400px;
        margin-bottom: 30px;
    }

    .slides {
        height: 280px;
    }

    .slide-caption {
        font-size: 1rem;
        padding: 15px;
    }

    .slider-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .slider-dots {
        bottom: 55px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 600px) {
    .hero-slider {
        max-width: 100%;
    }

    .slides {
        height: 220px;
    }

    .slider-btn {
        width: 32px;
        height: 32px;
    }

    .prev-btn {
        right: 10px;
    }

    .next-btn {
        left: 10px;
    }
}

/* ============================================
   ENHANCED UI ANIMATIONS & EFFECTS
   ============================================ */

/* Animated Gradient Text */
.hero-content .highlight {
    background: var(--gradient-vibrant);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Floating Animation for elements */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-slider {
    animation: float 4s ease-in-out infinite;
}

/* Glow effect for buttons */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: var(--gradient-vibrant);
    background-size: 200% 200%;
}

.btn-primary::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: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    animation: gradientShift 1s ease infinite;
    box-shadow: 0 10px 30px rgba(0, 174, 239, 0.4), 0 0 30px rgba(99, 102, 241, 0.3);
}

/* Portfolio item enhanced hover */
.portfolio-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Stats counter animation */
.stat-item {
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-vibrant);
    transform: scaleX(0);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

/* Smooth scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-15px);
    }

    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

/* Contact form enhanced */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.1);
    background: var(--white);
}

/* Link hover effects */
.nav-links a {
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-vibrant);
    transition: var(--transition);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
}

/* Section title enhanced */
.section-title h2::after {
    background: var(--gradient-vibrant);
    height: 4px;
    border-radius: 4px;
}

/* Skills bar enhanced animation */
.skill-bar .bar span {
    background: var(--gradient-vibrant);
    position: relative;
    overflow: hidden;
}

.skill-bar .bar span::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

/* Footer enhanced */
footer {
    background: linear-gradient(135deg, var(--dark-bg), #1e293b);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-vibrant);
}

/* Social links hover effect */
.social-hero a:hover,
.social-links a:hover {
    background: var(--gradient-vibrant);
    color: var(--white);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 20px rgba(0, 174, 239, 0.3);
}

/* Logo animation */
.logo img {
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(0, 174, 239, 0.3));
}

/* ============================================
   PREMIUM 3D CARD EFFECTS
   ============================================ */
.service-card,
.portfolio-item {
    perspective: 1000px;
}

.service-card:hover {
    transform: translateY(-15px) rotateX(5deg);
}

/* Glowing border effect */
.portfolio-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-neon);
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover::before {
    opacity: 1;
    animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ============================================
   ANIMATED BACKGROUND SHAPES
   ============================================ */
#hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBubble 6s ease-in-out infinite;
    pointer-events: none;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBubble 8s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes floatBubble {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* ============================================
   TYPING ANIMATION FOR SUBTITLE
   ============================================ */
.hero-content .subtitle {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(168, 85, 247, 0.1));
    color: var(--neon-cyan);
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 245, 255, 0.2);
    animation: subtitleGlow 3s ease-in-out infinite;
}

@keyframes subtitleGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 245, 255, 0.4);
    }
}

/* ============================================
   SECTION REVEAL ANIMATIONS
   ============================================ */
.section {
    opacity: 1;
}

.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title h2::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: var(--gradient-neon);
    opacity: 0.1;
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.2;
    }
}

/* ============================================
   ENHANCED BUTTONS
   ============================================ */
.btn-primary {
    position: relative;
    background: var(--gradient-neon);
    background-size: 300% 300%;
    animation: gradientFlow 4s ease infinite;
    border: none;
    color: white;
    font-weight: 700;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 245, 255, 0.4);
}

.btn-outline {
    border: 2px solid transparent;
    background: linear-gradient(var(--white), var(--white)) padding-box,
        var(--gradient-neon) border-box;
    color: var(--primary-color);
    font-weight: 700;
}

.btn-outline:hover {
    background: var(--gradient-neon);
    color: var(--white);
    border-color: transparent;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-neon);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-vibrant);
}

/* ============================================
   TEXT SELECTION STYLING
   ============================================ */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

/* ============================================
   LINK UNDERLINE ANIMATION
   ============================================ */
.footer-links ul li a {
    position: relative;
    display: inline-block;
}

.footer-links ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-neon);
    transition: var(--transition);
}

.footer-links ul li a:hover::after {
    width: 100%;
}

/* ============================================
   CONTACT FORM GLOW
   ============================================ */
.contact-container {
    border: 1px solid rgba(0, 174, 239, 0.1);
    position: relative;
}

.contact-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: var(--gradient-neon);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
}

.contact-container:hover::before {
    opacity: 0.3;
}

/* ============================================
   STATS COUNTER GLOW
   ============================================ */
.stat-item .counter {
    background: var(--gradient-neon);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem;
}

/* ============================================
   DARK MODE TOGGLE BUTTON
   ============================================ */
.theme-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(168, 85, 247, 0.1));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid rgba(0, 174, 239, 0.2);
}

.theme-toggle:hover {
    background: var(--gradient-neon);
    border-color: transparent;
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.4);
}

.theme-toggle i {
    position: absolute;
    font-size: 1.2rem;
    transition: var(--transition);
}

.theme-toggle .fa-moon {
    color: var(--primary-color);
    opacity: 1;
    transform: rotate(0deg);
}

.theme-toggle .fa-sun {
    color: #fbbf24;
    opacity: 0;
    transform: rotate(-180deg);
}

.theme-toggle:hover .fa-moon,
.theme-toggle:hover .fa-sun {
    color: var(--white);
}

/* ============================================
   DARK MODE STYLES
   ============================================ */
[data-theme="dark"] {
    --dark-bg: #020617;
    --light-bg: #0f172a;
    --text-color: #e2e8f0;
    --text-light: #94a3b8;
    --white: #1e293b;
    --glass-bg: rgba(15, 23, 42, 0.9);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Toggle Button in Dark Mode */
[data-theme="dark"] .theme-toggle .fa-moon {
    opacity: 0;
    transform: rotate(180deg);
}

[data-theme="dark"] .theme-toggle .fa-sun {
    opacity: 1;
    transform: rotate(0deg);
}

/* Body Background */
[data-theme="dark"] body {
    background-color: #020617;
    color: #e2e8f0;
}

/* Header */
[data-theme="dark"] header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* Navigation Links */
[data-theme="dark"] .nav-links a {
    color: #e2e8f0;
}

/* Hero Section */
[data-theme="dark"] #hero {
    background: linear-gradient(to bottom, #0f172a, #020617);
}

/* Cards and Containers */
[data-theme="dark"] .service-card,
[data-theme="dark"] .stat-item,
[data-theme="dark"] .contact-container {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .service-card h3,
[data-theme="dark"] .about-info h3,
[data-theme="dark"] .section-title h2 {
    color: #f1f5f9;
}

[data-theme="dark"] .service-card p,
[data-theme="dark"] .about-info p {
    color: #94a3b8;
}

/* Skill Category */
[data-theme="dark"] .skill-category h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .skill-bar .bar {
    background: #334155;
}

/* Portfolio */
[data-theme="dark"] #portfolio {
    background: #0f172a;
}

[data-theme="dark"] .filter-btn {
    background: #1e293b;
    color: #e2e8f0;
}

/* About Section */
[data-theme="dark"] #about {
    background: #020617;
}

[data-theme="dark"] .about-img img {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Services Section */
[data-theme="dark"] #services {
    background: #0f172a;
}

/* Skills Section */
[data-theme="dark"] #skills {
    background: #020617;
}

/* Contact Section */
[data-theme="dark"] #contact {
    background: #020617;
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .contact-form input::placeholder,
[data-theme="dark"] .contact-form textarea::placeholder {
    color: #64748b;
}

[data-theme="dark"] .contact-form input:focus,
[data-theme="dark"] .contact-form textarea:focus {
    background: #1e293b;
    border-color: var(--primary-color);
}

/* Info Items */
[data-theme="dark"] .info-item h4 {
    color: #f1f5f9;
}

/* Social Links */
[data-theme="dark"] .social-links a,
[data-theme="dark"] .social-hero a {
    background: #334155;
    color: #e2e8f0;
}

/* Buttons */
[data-theme="dark"] .btn-outline {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="dark"] .btn-outline:hover {
    background: var(--gradient-neon);
    color: #fff;
}

/* Hamburger */
[data-theme="dark"] .hamburger {
    color: #e2e8f0;
}

/* Hero Subtitle */
[data-theme="dark"] .hero-content .subtitle {
    color: var(--neon-cyan);
}

/* Hero Content */
[data-theme="dark"] .hero-content h1 {
    color: #f1f5f9;
}

[data-theme="dark"] .hero-content p {
    color: #94a3b8;
}

/* Slider */
[data-theme="dark"] .slider-container {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .slider-btn {
    background: rgba(30, 41, 59, 0.95);
    color: var(--neon-cyan);
}

/* Portfolio Item Overlay */
[data-theme="dark"] .portfolio-item .overlay {
    background: rgba(2, 6, 23, 0.9);
}

/* Scrollbar */
[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #020617;
}

/* Footer - Keep dark in both modes */
[data-theme="dark"] footer {
    background: linear-gradient(135deg, #020617, #0f172a);
}

/* Preloader */
[data-theme="dark"] #preloader {
    background: linear-gradient(135deg, #020617, #0f172a);
}

/* Mobile Navigation */
[data-theme="dark"] .nav-links {
    background: #0f172a;
}

/* Selection */
[data-theme="dark"] ::selection {
    background: var(--neon-cyan);
    color: #020617;
}

/* Smooth transition for theme change */
body,
header,
.service-card,
.stat-item,
.contact-container,
.nav-links,
.btn,
input,
textarea {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* ============================================
   TYPEWRITER EFFECT
   ============================================ */
.typewriter-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    min-height: 4.5rem;
}

#typewriter-text {
    display: inline;
}

#typewriter-text .highlight {
    background: var(--gradient-neon);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

.typewriter-cursor {
    display: inline-block;
    color: var(--neon-cyan);
    font-weight: 100;
    animation: blink 0.8s infinite;
    margin-right: 5px;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Responsive typewriter */
@media (max-width: 768px) {
    .typewriter-container {
        min-height: 3.5rem;
        justify-content: center;
    }
}