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

body {
    background: #03030a;
    font-family: 'Inter', sans-serif;
    color: #eef2ff;
    overflow-x: hidden;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 5;
}

/* ==================== NAVBAR ==================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(3, 3, 10, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    z-index: 100;
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    cursor: pointer;
    transition: 0.3s;
}

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

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #cbd5e6;
    font-weight: 500;
    transition: 0.3s;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #a855f7);
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

.nav-links a:hover {
    color: #3b82f6;
}

/* ==================== HAMBURGER MENU (Mobile) ==================== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #cbd5e6;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* Mobile Menu Overlay (Blur Effect) */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Mobile Menu - Premium Design */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a12, #03030a);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: flex;
    flex-direction: column;
    padding: 0;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(59, 130, 246, 0.3);
}

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

/* Mobile Menu Header (Logo left, Close right) */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 25px 20px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    flex-shrink: 0;
}

.mobile-menu-logo h3 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

/* Close Button */
.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-menu-close i {
    font-size: 1.3rem;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: rotate(90deg);
}

.mobile-menu-close:hover i {
    color: #3b82f6;
}

/* Mobile Nav Links - Premium Style */
.mobile-nav-links {
    list-style: none;
    padding: 0 25px;
    margin: 20px 0 0 0;
    flex: 0 1 auto;
    overflow-y: auto;
}

.mobile-nav-links li {
    margin-bottom: 20px;
    transform: translateX(30px);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.active .mobile-nav-links li {
    transform: translateX(0);
    opacity: 1;
}

.mobile-menu.active .mobile-nav-links li:nth-child(1) {
    transition-delay: 0.05s;
}

.mobile-menu.active .mobile-nav-links li:nth-child(2) {
    transition-delay: 0.1s;
}

.mobile-menu.active .mobile-nav-links li:nth-child(3) {
    transition-delay: 0.15s;
}

.mobile-menu.active .mobile-nav-links li:nth-child(4) {
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-nav-links li:nth-child(5) {
    transition-delay: 0.25s;
}

.mobile-menu.active .mobile-nav-links li:nth-child(6) {
    transition-delay: 0.3s;
}

.mobile-menu.active .mobile-nav-links li:nth-child(7) {
    transition-delay: 0.35s;
}

.mobile-nav-links a {
    text-decoration: none;
    color: #cbd5e6;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 10px 0;
    position: relative;
}

.mobile-nav-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #a855f7);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.mobile-nav-links a:hover {
    color: #3b82f6;
    transform: translateX(8px);
}

.mobile-nav-links a:hover::before {
    width: 30px;
}

/* Contact button in mobile menu */
.mobile-nav-links .contact-btn-mobile {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    border-radius: 40px;
    color: white !important;
    text-align: center;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    width: auto;
    min-width: 140px;
}

.mobile-nav-links .contact-btn-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.mobile-nav-links .contact-btn-mobile::before {
    display: none;
}

/* Mobile Social Icons */
.mobile-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 25px calc(20px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(100, 116, 139, 0.2);
    margin-top: 30px;
    flex-shrink: 0;
}

.mobile-social a {
    width: 45px;
    height: 45px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.mobile-social a:hover {
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    color: white;
    transform: translateY(-3px) scale(1.05);
    border-color: transparent;
}

/* ==================== GLOBAL SECTIONS ==================== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title span {
    background: linear-gradient(135deg, #3b82f6, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ==================== FADE-IN ANIMATION ON SCROLL ==================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: different delays for child elements */
.fade-up.delay-1 {
    transition-delay: 0.1s;
}

.fade-up.delay-2 {
    transition-delay: 0.2s;
}

.fade-up.delay-3 {
    transition-delay: 0.3s;
}

.fade-up.delay-4 {
    transition-delay: 0.4s;
}

.fade-up.delay-5 {
    transition-delay: 0.5s;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8rem;
}

.hero-text {
    flex: 1.2;
    animation: fadeInLeft 0.8s ease;
}

.hero-badge {
    background: rgba(59, 130, 246, 0.15);
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    color: #818cf8;
    border: 1px solid rgba(129, 140, 248, 0.3);
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}

.hero-text h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rotating-roles {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0.5rem 0;
    min-height: 65px;
    color: #a5b4fc;
}

.hero-text p {
    color: #94a3b8;
    font-size: 1rem;
    max-width: 550px;
    margin: 1rem 0 1.8rem;
    line-height: 1.6;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-glow {
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: rgba(129, 140, 248, 0.08);
    border: 1px solid rgba(129, 140, 248, 0.4);
    color: #a5b4fc;
    backdrop-filter: blur(4px);
    font-size: 0.85rem;
}

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

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

.btn-glow:hover {
    background: #6366f1;
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
    border-color: transparent;
}

.btn-primary-glow {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
}

.btn-primary-glow:hover {
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.6);
}

.hero-img {
    position: relative;
    width: min(360px, 70vw);
    height: min(380px, 70vw);
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(129, 140, 248, 0.5);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
    transition: all .8s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    animation: float 4s ease-in-out infinite;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 1.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    transform: scale(1.95);
    margin-left: 9%;
    filter: brightness(0.95) contrast(1.05) saturate(1.02);
}

.hero-img:hover img {
    transform: translateY(-20px) scale(2);
}

.hero-img:hover {
    border-color: #818cf8;
    box-shadow: 0 0 45px rgba(99, 102, 241, 0.5);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== ABOUT SECTION ==================== */
.about-split {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 3rem;
    align-items: start;
}

.about-greeting {
    margin-bottom: 1rem;
}

.greeting-badge {
    background: rgba(100, 116, 139, 0.15);
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 0.8rem;
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.25);
    display: inline-block;
    backdrop-filter: blur(4px);
    letter-spacing: 0.5px;
}

.about-text-side h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.about-text-side h3 .gradient-text {
    background: linear-gradient(135deg, #a5b4fc, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
}

.badge {
    background: rgba(100, 116, 139, 0.1);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.7rem;
    color: #a5b4fc;
    border: 1px solid rgba(100, 116, 139, 0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge i {
    font-size: 0.7rem;
    color: #818cf8;
}

.badge:hover {
    border-color: #818cf8;
    transform: translateY(-2px);
    background: rgba(129, 140, 248, 0.1);
}

.about-bio p {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.about-quote {
    margin: 1.8rem 0;
    padding: 1.2rem 1.8rem;
    background: rgba(30, 30, 46, 0.4);
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    border: 1px solid rgba(100, 116, 139, 0.2);
    transition: all 0.3s ease;
}

.about-quote:hover {
    border-color: rgba(129, 140, 248, 0.4);
    transform: translateX(5px);
}

.quote-text {
    flex: 1;
}

.quote-text span {
    color: #cbd5e6;
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.5;
}

.about-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.8rem;
}

.about-cta .btn-glow {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.about-cta .btn-glow:first-child {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
}

.about-cta .btn-glow:last-child {
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.3);
    color: #a5b4fc;
}

.about-cta .btn-glow:last-child:hover {
    background: #6366f1;
    color: white;
}

.about-cta .btn-glow i {
    transition: transform 0.3s ease;
}

.about-cta .btn-glow:hover i {
    transform: translateX(5px);
}

.about-stats-side {
    display: flex;
    justify-content: center;
    height: 100%;
}

.stats-card {
    background: rgba(15, 15, 23, 0.8);
    border-radius: 32px;
    padding: 1.8rem;
    border: 1px solid rgba(100, 116, 139, 0.2);
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

.stats-card:hover {
    border-color: rgba(129, 140, 248, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 20px 35px -15px rgba(0, 0, 0, 0.3);
}

.stats-header {
    text-align: center;
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
}

.stats-title {
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.3rem;
}

.stats-subtitle {
    font-size: 0.7rem;
    color: #64748b;
    letter-spacing: 1px;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    flex: 1;
    justify-content: space-evenly;
}

.stat-item {
    width: 100%;
}

.stat-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.stat-info span:first-child {
    color: #cbd5e6;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-info span:first-child i {
    color: #818cf8;
    font-size: 0.7rem;
    width: 20px;
}

.stat-info span:last-child {
    color: #a5b4fc;
    font-weight: 500;
}

.progress-bar {
    background: rgba(100, 116, 139, 0.2);
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #818cf8, #a78bfa);
    border-radius: 10px;
    height: 100%;
    width: 0;
    transition: width 1s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    animation: fillProgress 1s ease forwards;
}

@keyframes fillProgress {
    from {
        width: 0;
    }

    to {
        width: var(--target-width, 85%);
    }
}

/* ==================== INTERNSHIPS SECTION ==================== */
.internships-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.internship-card {
    background: linear-gradient(135deg, #0f0f17, #0a0a12);
    border-radius: 32px;
    padding: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: flex;
    gap: 1.8rem;
    position: relative;
    overflow: hidden;
}

.internship-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(59, 130, 246, 0.05) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    pointer-events: none;
    border-radius: inherit;
}

.internship-card:hover::before {
    opacity: 1;
}

.internship-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #a855f7, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.internship-card:hover::after {
    transform: scaleX(1);
}

.internship-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 35px -15px rgba(59, 130, 246, 0.3);
}

.internship-icon-large {
    font-size: 3.5rem;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    width: 85px;
    height: 85px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
}

.internship-card:hover .internship-icon-large {
    transform: scale(1.05) rotate(3deg);
    color: #a855f7;
}

.internship-content {
    flex: 1;
}

.internship-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.date {
    color: #3b82f6;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.internship-content p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1rem 0 1.2rem;
}

.tech-tags span {
    background: linear-gradient(135deg, #1a1c2a, #14161c);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #8b9cc7;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.tech-tags span:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
}

.cert-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid #3b82f6;
    border-radius: 40px;
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

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

.cert-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.cert-btn:hover i {
    transform: translateX(5px);
}

/* ==================== SKILLS SECTION ==================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.skill-card {
    background: transparent;
    perspective: 1200px;
    height: 240px;
    cursor: pointer;
}

.skill-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 1s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    transform-style: preserve-3d;
}

.skill-card:hover .skill-card-inner {
    transform: rotateY(180deg);
}

.skill-card-front,
.skill-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 28px;
    padding: 1.8rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skill-card-front {
    background: linear-gradient(135deg, #0f0f17, #0a0a12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

.skill-card-front .card-icon {
    font-size: 2.8rem;
    color: #3b82f6;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
}

.skill-card:hover .skill-card-front .card-icon {
    transform: scale(1.1) rotate(5deg);
    color: #a855f7;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.skill-card-front h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.skill-card-front p {
    color: #8b9cc7;
    font-size: 0.85rem;
    line-height: 1.4;
}

.skill-card-back {
    background: linear-gradient(135deg, #1a1c2a, #0f0f17);
    border: 1px solid #3b82f6;
    transform: rotateY(180deg);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    transition: box-shadow 0.4s ease 0.2s;
}

.skill-card-back i {
    font-size: 2.2rem;
    color: #3b82f6;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-card-back {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5), 0 0 15px rgba(168, 85, 247, 0.3);
    border-color: #a855f7;
}

.skill-card:hover .skill-card-back i {
    transform: scale(1.1);
    color: #a855f7;
}

.skill-card-back p {
    color: #cbd5e6;
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
}

/* ==================== PROJECTS SECTION ==================== */
.projects-header {
    text-align: center;
    margin-bottom: 2rem;
}

.projects-subtitle {
    color: #94a3b8;
    font-size: 0.95rem;
}

.timeline-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 30px;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #3b82f6, #a855f7, #3b82f6);
    border-radius: 2px;
    z-index: 1;
}

.left-line {
    left: 6px;
}

.right-line {
    left: 50.2%;
    transform: translateX(calc(50% + 8px));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    position: relative;
}

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

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 20px;
    width: 14px;
    height: 14px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    background: #a855f7;
    box-shadow: 0 0 0 5px rgba(168, 85, 247, 0.2);
}

.timeline-content {
    width: 100%;
    height: auto;
}

.project-card {
    background: #0f0f17;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #1e1e2a;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 20px 35px -15px rgba(59, 130, 246, 0.3);
}

.project-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #1a1c2a;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
    flex: 1;
}

.project-category {
    color: #8b9cc7;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.project-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-card p {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.project-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.project-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.project-link i {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.project-link:hover {
    color: #3b82f6;
}

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

/* ==================== LEADERSHIP SECTION ==================== */
.leadership-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.leadership-card {
    background: linear-gradient(135deg, #0f0f17, #0a0a12);
    border-radius: 28px;
    padding: 2rem;
    border: 1px solid #1e1e2a;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.leadership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6, #a855f7);
    border-radius: 4px 0 0 4px;
    transition: width 0.3s ease;
}

.leadership-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 15px 30px -10px rgba(59, 130, 246, 0.3);
}

.leadership-card:hover::before {
    width: 6px;
}

.leadership-icon {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.leadership-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.leadership-date {
    color: #8b9cc7;
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: 1rem;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 20px;
}

.leadership-card p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==================== CONTACT SECTION ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    align-items: start;
}

.contact-info-side,
.contact-form-side {
    background: #0f0f17;
    border-radius: 28px;
    padding: 2rem;
    border: 1px solid #1e1e2a;
    height: 100%;
}

.contact-info-side {
    display: flex;
    flex-direction: column;
}

.contact-info-side h3 {
    margin-bottom: 0.8rem;
}

.contact-info-side>p {
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    margin-top: 15px;
}

.info-item:last-of-type {
    margin-bottom: 0;
}

.info-item h4 {
    font-size: 0.75rem;
    color: #8b9cc7;
    margin-bottom: 0.2rem;
    letter-spacing: 0.5px;
}

.info-item p,
.info-item a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.info-icon {
    width: 45px;
    height: 45px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    flex-shrink: 0;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    margin-top: 1.5rem;
}

.social-link {
    width: 42px;
    height: 42px;
    background: #1a1c2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    transition: 0.3s;
    text-decoration: none;
}

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

.form-status {
    padding: 12px 16px;
    border-radius: 16px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    text-align: center;
    display: none;
}

.form-status.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #10b981;
}

.form-status.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.form-status.loading {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid #3b82f6;
    color: #3b82f6;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    background: #1a1c2a;
    border: 1px solid #2d2f3a;
    padding: 14px 16px;
    border-radius: 16px;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #5b6e8c;
    font-weight: 400;
    transition: color 0.2s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    color: #3b82f6;
    opacity: 0.6;
}

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group textarea:-webkit-autofill,
.form-group textarea:-webkit-autofill:hover,
.form-group textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 100px #1a1c2a inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

.submit-btn {
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    border: none;
    padding: 12px;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px #3b82f6;
}

/* ==================== FOOTER ==================== */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #1e1e2a;
    color: #8b9cc7;
}

.footer-content {
    text-align: center;
}

/* ==================== SCROLL TO TOP BUTTON ==================== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
}

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








/* ==================== RESPONSIVE (FULL) ==================== */

/* Desktop Styles (769px and above) */
@media (min-width: 769px) {
    .hamburger {
        display: none;
    }

    .mobile-menu {
        display: none;
    }

    .nav-links {
        display: flex;
    }
}

/* Large Tablets & Small Desktops (992px - 1200px) */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }

    .hero-grid {
        gap: 5rem;
    }

    .about-split {
        gap: 2rem;
    }

    /* Projects - ضبط الخطوط */
    .left-line {
        left: 6px;
    }

    .right-line {
        left: calc(50% + 12px);
        transform: translateX(-50%);
    }

    .timeline-item {
        width: 100%;
    }

    /* About - CTA buttons center */
    .about-cta {
        gap: 0.8rem;
        justify-content: center;
        text-align: center;
    }

    /* Make all buttons consistent */
    .btn-glow,
    .about-cta .btn-glow,
    .btn-group .btn-glow {
        padding: 10px 20px;
        font-size: 0.85rem;
        min-width: 140px;
        text-align: center;
        white-space: nowrap;
    }
}




/* Tablets (768px - 992px) */
@media (max-width: 992px) {
    /* Projects - ضبط الخطوط للتابلت */
    .left-line {
        left: 1.5px;
    }

    .right-line {
        left: calc(50% + 1.5px);
        transform: translateX(-50%);
    }

    .timeline-item {
        width: calc(100% - 15px);
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .rotating-roles {
        font-size: 1.3rem;
    }

    .about-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text-side {
        order: 1;
    }

    .about-stats-side {
        order: 2;
        height: auto;
    }

    .stats-card {
        max-width: 500px;
        margin: 0 auto;
        height: auto;
    }

    .stats-list {
        justify-content: flex-start;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .timeline-wrapper {
        padding-left: 25px;
    }

    .projects-grid {
        gap: 1.5rem;
    }
}









/* Mobile Landscape & Small Tablets (576px - 768px) */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

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

    /* Navbar */
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px 20px;
    }

    .logo {
        font-size: 1.3rem;
        order: 1;
    }

    .hamburger {
        display: flex;
        order: 2;
    }

    .nav-links {
        display: none;
    }

    /* Mobile Menu Adjustments */
    .mobile-menu {
        width: 85%;
        max-width: 380px;
    }

    .mobile-menu-header {
        padding: 20px 20px 15px;
    }

    .mobile-menu-logo h3 {
        font-size: 1.3rem;
    }

    .mobile-nav-links {
        padding: 0 20px;
    }

    .mobile-nav-links a {
        font-size: 1.1rem;
    }

    .mobile-social {
        gap: 15px;
        padding: 15px 20px 25px;
    }

    .mobile-social a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    #about {
        margin-top: 50px;
    }

    .hero {
    
        margin-top: 0;
        padding-top: 130px;
    }

    .hero-grid {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

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

    .rotating-roles {
        font-size: 1.1rem;
        min-height: 50px;
    }

    .btn-group {
        justify-content: center;
    }

    .hero-img {
        width: min(260px, 60vw);
        height: min(260px, 60vw);
    }

    .hero-img img {
        transform: scale(1.7);
        margin-left: 8%;
    }

    .hero-img:hover img {
        transform: scale(1.8);
    }

    /* About - CTA buttons center */
    .about-cta {
        gap: 0.8rem;
        justify-content: center;
        text-align: center;
    }

    /* Make all buttons consistent */
    .btn-glow,
    .about-cta .btn-glow,
    .btn-group .btn-glow {
        padding: 10px 20px;
        font-size: 0.85rem;
        min-width: 140px;
        text-align: center;
        white-space: nowrap;
    }

    .about-stats-side {
        margin-top: 20px;
        margin-bottom: -20px;
    }

    .about-text-side h3 {
        font-size: 1.8rem;
    }

    .badge-list {
        gap: 0.5rem;
    }

    .badge {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    .about-quote {
        padding: 1rem;
    }

    .quote-text span {
        font-size: 0.8rem;
    }

    .stats-card {
        padding: 1.2rem;
    }

    .stat-info {
        font-size: 0.7rem;
    }

    /* Internships */
    .internships-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .internship-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 1.5rem;
    }

    .internship-icon-large {
        margin-bottom: 0.5rem;
    }

    .tech-tags {
        justify-content: center;
    }

    .cert-btn {
        justify-content: center;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .skill-card {
        height: 210px;
    }

    .skill-card-front .card-icon {
        font-size: 2rem;
    }

    .skill-card-front h3 {
        font-size: 1.1rem;
    }

    .skill-card-front p {
        font-size: 0.7rem;
    }

    .skill-card-front,
    .skill-card-back {
        padding: 1rem;
    }

    /* Projects - إخفاء الخط الأيمن وإظهار النقاط */
    .right-line {
        display: none;
    }

    .left-line {
        left: 4px;
        margin-left: 0;
    }

    .timeline-wrapper {
        padding-left: 20px;
    }

    .timeline-dot {
        left: -20px;
        width: 10px;
        height: 10px;
        display: block !important;
    }

    .timeline-item.right-item .timeline-dot {
        display: block !important;
    }

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

    .project-img {
        height: 160px;
    }

    /* Leadership */
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .leadership-card {
        padding: 1.2rem;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .contact-info-side,
    .contact-form-side {
        padding: 1.2rem;
    }

    .social-icons {
        justify-content: center;
    }

    .info-item {
        justify-content: flex-start;
    }

    /* Scroll Button */
    .scroll-top-btn {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 0.9rem;
    }
}





/* Mobile Phones (480px - 576px) */
@media (max-width: 576px) {
    /* Projects */
    .left-line {
        left: 4px;
    }

    .timeline-dot {
        left: -20px;
    }

    /* Hero & About */
    .hero {
        padding-top: 120px;
    }

    .container {
        padding: 0 16px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.8rem;
    }

    .rotating-roles {
        font-size: 0.9rem;
    }

    .hero-text p {
        font-size: 0.85rem;
    }

    .btn-glow {
        padding: 6px 14px;
        font-size: 0.7rem;
    }

    .about-text-side h3 {
        font-size: 1.5rem;
    }

    .badge {
        font-size: 0.55rem;
        padding: 3px 8px;
    }

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

    .skill-card {
        height: 190px;
    }

    .project-img {
        height: 140px;
    }

    .project-content {
        padding: 1rem;
    }

    .project-card h3 {
        font-size: 1rem;
    }

    .project-card p {
        font-size: 0.75rem;
    }
}





/* Small Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
    /* Hero */
    .hero {
        padding-top: 100px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

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

    .about-quote {
        padding: 0.8rem;
    }

    .quote-text span {
        font-size: 0.7rem;
    }

    .stat-info {
        font-size: 0.6rem;
    }

    .progress-bar {
        height: 4px;
    }

    .internship-content h3 {
        font-size: 1.2rem;
    }

    .date {
        font-size: 0.65rem;
    }

    .tech-tags span {
        padding: 3px 10px;
        font-size: 0.6rem;
    }

    .cert-btn {
        padding: 6px 16px;
        font-size: 0.7rem;
    }

    .project-img {
        height: 120px;
    }

    .leadership-card h3 {
        font-size: 1rem;
    }

    .leadership-date {
        font-size: 0.65rem;
    }

    .leadership-card p {
        font-size: 0.75rem;
    }

    .contact-info-side h3,
    .contact-form-side h3 {
        font-size: 1.1rem;
    }

    .info-item p,
    .info-item a {
        font-size: 0.75rem;
    }

    .social-link {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    footer {
        font-size: 0.7rem;
        padding: 1rem;
    }

    /* Projects */
    .timeline-dot {
        width: 8px;
        height: 8px;
    }

    .left-line {
        left: 3px;
    }
}



