:root {
    --bg: #081120;
    --primary: #2563EB;
    --secondary: #38BDF8;
    --card-bg: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --text: #FFFFFF;
    --para: #B8C5D6;
    --glow: #38BDF8;
    --card-hover-bg: rgba(255, 255, 255, 0.1);
    --gradient-1: linear-gradient(135deg, #2563EB 0%, #38BDF8 100%);
    --gradient-2: linear-gradient(135deg, #1e3a8a 0%, #0ea5e9 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.3);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg);
}

::-webkit-scrollbar {
    width: 6px;
}

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

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

body {
    font-family: 'Cairo', 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    cursor: default;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    z-index: 10000;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 12px var(--glow);
    transition: width 0.1s linear;
    width: 0%;
}

/* Mouse Glow Effect */
.mouse-glow {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(37, 99, 235, 0.05) 30%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: var(--shadow-glow);
}

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

/* Animated Background Blobs */
.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: floatBlob 18s ease-in-out infinite;
}

.bg-blob:nth-child(1) {
    width: 500px;
    height: 500px;
    background: #2563EB;
    top: -10%;
    left: -15%;
    animation-delay: 0s;
}

.bg-blob:nth-child(2) {
    width: 400px;
    height: 400px;
    background: #38BDF8;
    bottom: -10%;
    right: -10%;
    animation-delay: -6s;
    animation-duration: 20s;
}

.bg-blob:nth-child(3) {
    width: 350px;
    height: 350px;
    background: #7c3aed;
    top: 50%;
    left: 40%;
    animation-delay: -12s;
    animation-duration: 22s;
}

.bg-blob:nth-child(4) {
    width: 300px;
    height: 300px;
    background: #0ea5e9;
    top: 30%;
    right: 20%;
    animation-delay: -3s;
    animation-duration: 16s;
}

@keyframes floatBlob {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(80px, -60px) scale(1.15);
    }

    50% {
        transform: translate(-40px, 70px) scale(0.9);
    }

    75% {
        transform: translate(-70px, -40px) scale(1.1);
    }
}

/* Grid overlay subtle pattern */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.03;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 60px 60px;
}

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

/* Section spacing */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-title .subtitle {
    color: var(--para);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    padding: 16px 0;
    transition: all var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(8, 17, 32, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: var(--para);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-cv-btn {
    background: var(--gradient-1) !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 10px 22px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    transition: all var(--transition-bounce) !important;
}

.nav-cv-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.6) !important;
    background: var(--gradient-2) !important;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 100;
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(8, 17, 32, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid var(--border);
    z-index: 9999;
    padding: 80px 30px 30px;
    transition: right var(--transition-smooth);
    flex-direction: column;
    gap: 12px;
    list-style: none;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    display: block;
    transition: all var(--transition-fast);
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mobile-menu .nav-cv-btn {
    text-align: center;
    margin-top: 10px;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9997;
    cursor: pointer;
}

.mobile-overlay.active {
    display: block;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    z-index: 1;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    flex: 0 0 auto;
    width: 340px;
    height: 340px;
    position: relative;
}

.hero-image-frame {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    position: relative;
    z-index: 2;
    animation: floatHero 5s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes floatHero {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-18px);
    }
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-2);
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-xl);
}

.hero-orbiting-circles {
    position: absolute;
    inset: -30px;
    z-index: 1;
    border-radius: 50%;
    animation: rotateOrbit 20s linear infinite;
}

.hero-orbiting-circles .circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
    animation: pulseCircle 3s ease-in-out infinite;
}

.hero-orbiting-circles .circle:nth-child(1) {
    width: 30px;
    height: 30px;
    top: 5%;
    left: 10%;
    animation-delay: 0s;
}

.hero-orbiting-circles .circle:nth-child(2) {
    width: 20px;
    height: 20px;
    top: 70%;
    right: 5%;
    animation-delay: -1s;
}

.hero-orbiting-circles .circle:nth-child(3) {
    width: 25px;
    height: 25px;
    bottom: 10%;
    left: 15%;
    animation-delay: -2s;
}

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

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseCircle {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

.hero-content {
    flex: 1 1 400px;
    min-width: 280px;
}

.hero-content .greeting {
    font-size: 1.1rem;
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.hero-content h1 .highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .role {
    font-size: 1.3rem;
    color: var(--para);
    font-weight: 500;
    margin-bottom: 10px;
}

.hero-content .typed-wrapper {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    min-height: 2.2em;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.typed-cursor {
    color: var(--secondary);
    animation: blink 0.8s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-content .description {
    color: var(--para);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-bounce);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(37, 99, 235, 0.65);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--secondary);
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.25);
    transform: translateY(-3px);
}

/* Button Ripple */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

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

/* About Section */
.about-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-smooth);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-card:hover {
    box-shadow: var(--shadow-lg), 0 0 40px rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
}

.about-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-card p {
    color: var(--para);
    font-size: 1.1rem;
    line-height: 1.9;
}

/* Counters */
.counters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.counter-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 35px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
}

.counter-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
}

.counter-card .counter-number {
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.counter-card .counter-label {
    color: var(--para);
    font-size: 0.95rem;
    margin-top: 8px;
    font-weight: 500;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.skill-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.35);
}

.skill-card .skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.skill-card .skill-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
}

.skill-card .skill-percent {
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.9rem;
}

.skill-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 20px;
    width: 0%;
    transition: width 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 35px rgba(56, 189, 248, 0.22);
    border-color: rgba(56, 189, 248, 0.5);
    background: var(--card-hover-bg);
}

.service-card .service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(37, 99, 235, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--secondary);
    transition: all var(--transition-smooth);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
    transform: scale(1.08);
}

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

.service-card p {
    color: var(--para);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 35px rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
}

.project-card-image {
    height: 200px;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.6);
}

.project-card-body {
    padding: 28px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card-body h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.project-card-body p {
    color: var(--para);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tag {
    background: rgba(37, 99, 235, 0.2);
    color: var(--secondary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

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

.project-links .btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition-bounce);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-github {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-github:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary);
}

.btn-demo {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
}

.btn-demo:hover {
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.55);
    transform: translateY(-2px);
}

/* Contact */
.contact-wrapper {
    max-width: 650px;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    box-shadow: var(--shadow-lg);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--para);
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-fast);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.form-group textarea {
    min-height: 140px;
}

.submit-btn {
    background: var(--gradient-1);
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all var(--transition-bounce);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
    letter-spacing: 0.02em;
    align-self: flex-start;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(37, 99, 235, 0.6);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0 30px;
    text-align: center;
    position: relative;
    z-index: 1;
    background: rgba(8, 17, 32, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.footer .footer-role {
    color: var(--para);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.footer-socials a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--para);
    font-size: 1.2rem;
    transition: all var(--transition-bounce);
    text-decoration: none;
}

.footer-socials a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
    transform: translateY(-3px);
}

.footer .copyright {
    color: var(--para);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 9996;
    font-size: 1.2rem;
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-smooth);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(37, 99, 235, 0.7);
}

/* Scroll Reveal Base */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-zoom {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-image-wrapper {
        width: 260px;
        height: 260px;
    }

    .hero-content h1 {
        font-size: 2.6rem;
    }

    .hero-content .description {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .section {
        padding: 70px 0;
    }

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

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content .typed-wrapper {
        font-size: 1.2rem;
    }

    .hero-image-wrapper {
        width: 220px;
        height: 220px;
    }

    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .counter-card .counter-number {
        font-size: 2.2rem;
    }

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

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

    .contact-wrapper {
        padding: 30px 20px;
    }

    .footer-socials {
        gap: 10px;
    }

    .back-to-top {
        left: 16px;
        bottom: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 425px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content .typed-wrapper {
        font-size: 1rem;
    }

    .hero-image-wrapper {
        width: 180px;
        height: 180px;
    }

    .btn {
        padding: 12px 22px;
        font-size: 0.9rem;
    }

    .counters-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .counter-card {
        padding: 20px 12px;
    }

    .counter-card .counter-number {
        font-size: 1.8rem;
    }

    .about-card {
        padding: 30px 20px;
    }

    .project-card-body {
        padding: 20px 16px;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 320px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-image-wrapper {
        width: 150px;
        height: 150px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}