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

body {
    background-color: #03050a;
    background-image: radial-gradient(circle at 25% 10%, rgba(0, 180, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 75% 80%, rgba(180, 60, 255, 0.12) 0%, transparent 45%);
    color: #eef2f8;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    scroll-behavior: smooth;
    position: relative;
    overflow-x: hidden;
}

.cert-card,
.project-card,
.service-card,
.cv-btn,
.profile-img {
    will-change: transform;
    backface-visibility: hidden;
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

a {
    text-decoration: none;
}

nav {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 1000px;

    padding: 0.5rem 1.5rem;
    border-radius: 50px;

    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

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

.nav-logo {
    font-size: 1rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    padding: 0.5rem 1.3rem;
    font-size: 0.9rem;
    border-radius: 40px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;

    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}



.nav-links a {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.nav-btn:hover {
    background: #5ef0ff;
    color: #03050a;
    box-shadow: 0 0 25px rgba(94, 240, 255, 0.4);
    border-color: #5ef0ff;
}

/* smooth scroll & sections */
section {
    padding: 90px 6%;
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* glassmorphism base */
.glass-card,
.skill-item,
.service-card,
.project-card,
.social-card,
.cert-card,
.filter-btn,
.exp-badge,
.years-box,
.company-card {
    background: rgba(20, 30, 45, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 32px;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 255, 255, 0.1) inset;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.glass-card:hover,
.skill-item:hover,
.service-card:hover,
.project-card:hover,
.social-card:hover,
.cert-card:hover,
.company-card:hover {
    border-color: #5ef0ff;
    box-shadow: 0 30px 50px -20px #00ccff55, 0 0 0 2px #5ef0ff33 inset;
    transform: translateY(-6px) scale(1.01);
}

/* gradient text */
.gradient-text {
    background: linear-gradient(130deg, #00eaff, #0080ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: 1px;
}

h1,
h2,
h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    display: inline-block;
    border-left: 6px solid #5ef0ff;
    padding-left: 1.5rem;
}

/* floating icons animation */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-14px) rotate(4deg);
    }

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

.floating-icon {
    position: absolute;
    font-size: 2rem;
    color: rgba(0, 255, 255, 0.35);
    filter: drop-shadow(0 0 12px cyan);
    animation: float 6s infinite ease-in-out;
    z-index: 1;
    pointer-events: none;
}

/* profile image wrapper */
.profile-wrapper {
    position: relative;
    width: fit-content;
    margin: 0 auto;
}

.profile-img {
    width: 300px;
    height: 340px;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(145deg, #1b3b4f, #2a1e3a);
    border: 3px solid rgba(94, 240, 255, 0.6);
    box-shadow: 0 0 50px #00ccff55;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s;
}

.profile-img:hover {
    border-radius: 50% 30% 50% 30% / 40% 50% 30% 60%;
}

/* typing effect */
#typing-title {
    min-height: 4rem;
    font-size: 2.2rem;
    font-weight: 500;
    width: fit-content;
    padding-right: 8px;
}

/* hero layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-left .badge-exp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 234, 255, 0.03);
    border: 1px solid rgba(0, 234, 255, 0.3);
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #a5f0ff;
    margin-top: 2rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.1);
    transition: all 0.3s ease;
}

.hero-left .badge-exp:hover {
    background: rgba(0, 234, 255, 0.1);
    border-color: #00eaff;
    transform: translateY(-2px);
    /* حركة خفيفة لما تلمسه بالماوس */
    box-shadow: 0 0 25px rgba(0, 234, 255, 0.2);
}

.hero-left .badge-exp i {
    color: #00eaff;
    font-size: 1.1rem;
}

.whatsapp-btn {
    background: #25D36620;
    border: 1.5px solid #25D366;
    color: #fff;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(12px);
    margin-top: 2rem;
    transition: 0.2s;
}

.whatsapp-btn:hover {
    background: #25D36640;
    box-shadow: 0 0 30px #25D366;
}

/* about two-column */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: center;
}

.feature-badge {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.feature-item {
    background: rgba(94, 240, 255, 0.08);
    border-radius: 60px;
    padding: 0.5rem 1.8rem;
    border: 1px solid cyan;
}

.years-exp-box {
    background: linear-gradient(145deg, rgba(15, 42, 58, 0.4), rgba(21, 12, 43, 0.4));
    backdrop-filter: blur(15px);
    border-radius: 28px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(0, 234, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 234, 255, 0.1);
    max-width: 180px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.years-exp-box span {
    background: linear-gradient(135deg, #00eaff, #0080ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    display: block;
}

.years-exp-box:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #00eaff;
    box-shadow: 0 15px 40px rgba(0, 234, 255, 0.2);
}

/* skills grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem 1rem;
    text-align: center;
    border-radius: 24px;
    font-weight: 500;
    font-size: 0.95rem;
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 1, 0.3, 1), background 0.3s, border 0.3s;
}

.skill-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-item:hover {
    background: rgba(0, 234, 255, 0.05);
    border-color: rgba(0, 234, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 234, 255, 0.15);
    transform: translateY(-10px) !important;
}

.skill-img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.skill-item:hover .skill-img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 10px rgba(0, 234, 255, 0.6));
}

.skill-item span {
    display: block;
    color: #cbd5e1;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

/* services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    position: relative;
    padding: 3rem 2rem !important;
    text-align: center;
    overflow: hidden;
}

/* حركة الـ Icon Wrapper */
.icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(0, 234, 255, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(0, 234, 255, 0.2);
    transition: all 0.4s ease;
}

.service-icon {
    font-size: 2.5rem;
    color: #00eaff;
    filter: drop-shadow(0 0 10px rgba(0, 234, 255, 0.5));
}

.service-card h3 {
    font-size: 1.8rem !important;
    margin-bottom: 1.5rem !important;
    color: #fff;
}

.service-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
}

.service-card ul li {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-card ul li i {
    color: #00eaff;
    font-size: 0.9rem;
}

/* تأثير الـ Hover */
.service-card:hover .icon-wrapper {
    transform: rotateY(180deg);
    background: #00eaff;
}

.service-card:hover .service-icon {
    color: #03050a;
    filter: none;
}

/* projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.project-img {
    height: 200px;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

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

.project-card h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.8rem;
}

.project-card p {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

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

.github-btn,
.view-website-btn {
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 234, 255, 0.3);
    padding: 0.7rem 1rem;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.view-website-btn {
    background: var(--primary-cyan, #00eaff);
    color: #03050a;
    border: none;
}

.github-btn:hover {
    background: rgba(0, 234, 255, 0.1);
    border-color: #00eaff;
    transform: translateY(-3px);
}

.view-website-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 234, 255, 0.3);
}

.project-card:hover {
    border-color: rgba(0, 234, 255, 0.5);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}


.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.company-card {
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.company-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    object-fit: cover;
    border: 2px solid rgba(0, 234, 255, 0.2);
    padding: 5px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.company-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.company-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.company-link {
    font-size: 1.4rem;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

/* Hover Effects */
.company-card:hover {
    transform: translateY(-12px);
    background: rgba(0, 234, 255, 0.03);
    border-color: rgba(0, 234, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.company-card:hover .company-img {
    border-color: #00eaff;
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 0 25px rgba(0, 234, 255, 0.2);
}

.company-link:hover {
    color: #00eaff;
    transform: translateY(-3px);
    filter: drop-shadow(0 0 8px rgba(0, 234, 255, 0.8));
}

/* social cards */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.social-card {
    position: relative;
    padding: 2.5rem 1.5rem !important;
    text-align: center;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.social-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 234, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.social-card i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #00eaff, #0080ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-card h3 {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.social-card p {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

/* Hover Effects */
.social-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 234, 255, 0.3);
    background: rgba(0, 234, 255, 0.03);
}

.social-card:hover::after {
    opacity: 1;
}

.social-card:hover i {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 0 15px rgba(0, 234, 255, 0.5));
}

/* certificates */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.cert-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.cert-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #000;
    cursor: pointer;
}

.cert-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.cert-img::after {
    content: '\f00e';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 234, 255, 0.2);
    /* سيان شفاف */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    transition: 0.4s;
    backdrop-filter: blur(4px);
}

.cert-card:hover {
    transform: translateY(-12px);
    border-color: rgba(0, 234, 255, 0.4);
    background: rgba(0, 234, 255, 0.04);
}

.cert-card:hover .cert-img img {
    transform: scale(1.15);
}

.cert-card:hover .cert-img::after {
    opacity: 1;
}

.btn-view {
    cursor: pointer;
}


/* cv download */
.cv-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: radial-gradient(circle at center, rgba(192, 132, 252, 0.05) 0%, transparent 70%);
}

.cv-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #00eaff, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cv-btn {
    position: relative;
    background: rgba(192, 132, 252, 0.1);
    border: 2px solid #c084fc;
    color: #fff;
    font-size: 1.3rem;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
    z-index: 1;
}

.cv-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #00eaff, #c084fc);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.cv-btn:hover {
    color: #03050a;
    transform: scale(1.05) translateY(-5px);
    border-color: transparent;
    box-shadow: 0 0 40px rgba(192, 132, 252, 0.6), 0 0 20px rgba(0, 234, 255, 0.4);
}

.cv-btn:hover::before {
    opacity: 1;
}

.cv-btn i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.cv-btn:hover i {
    transform: translateY(3px) scale(1.1);
}

/* footer contact */
/* Container & Grid */
.contact-container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
}

/* Base Style for Items */
.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    color: #fff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    gap: 15px;
}

.contact-item i {
    font-size: 2.8rem;
    transition: 0.3s;
}

.contact-item span {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

.whatsapp:hover {
    border-color: #25d366;
    color: #25d366;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.2);
}

.linkedin:hover {
    border-color: #0077b5;
    color: #0077b5;
    box-shadow: 0 0 20px rgba(0, 119, 181, 0.2);
}

.facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.2);
}

.instagram:hover {
    border-color: #e4405f;
    color: #e4405f;
    box-shadow: 0 0 20px rgba(228, 64, 95, 0.2);
}

.email:hover {
    border-color: #00eaff;
    color: #00eaff;
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.2);
}

.github:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    color: #fff;
}

.github:hover i {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    transform: scale(1.1);
}

.contact-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.contact-item:hover span {
    opacity: 1;
}

/* Footer & Floating Btn */
.footer {
    padding: 3rem 0;
    margin-top: 5rem;
    position: relative;
    text-align: center;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 234, 255, 0.3), transparent);
}

.footer p {
    color: #cbd5e1;
    font-size: 0.95rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

.footer span {
    color: #00eaff;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 234, 255, 0.5);
    transition: 0.3s;
    cursor: default;
}

.footer span:hover {
    text-shadow: 0 0 20px rgba(0, 234, 255, 0.8);
    color: #fff;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(15deg);
}

/* responsiveness */
@media (max-width: 1024px) {
    nav {
        width: 90%;
    }

    .nav-btn {
        padding: 0.4rem 1.1rem;
        font-size: 0.85rem;
    }

    section {
        padding: 80px 5%;
    }

    h2 {
        font-size: 2.8rem;
    }

    .profile-img {
        width: 280px;
        height: 320px;
    }

    .skill-img {
        width: 70px;
        height: 70px;
    }

    .company-img {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 768px) {

    section:first-of-type {
        padding-top: 120px;
    }

    #typing-title {
        text-align: center;
        display: block;
        width: 100%;
        font-size: 1.5rem;
    }

    #typing-title span {
        font-size: 1.2rem !important;
        vertical-align: middle;
        margin-left: 2px;
    }

    nav {
        top: 10px;
        width: 95%;
        padding: 0.4rem 1rem;
    }

    .nav-container {
        flex-direction: column;
        align-items: center;
    }

    .nav-logo {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .nav-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    section {
        padding: 60px 4%;
    }

    h1 {
        font-size: 3.2rem;
    }

    h2 {
        font-size: 2.5rem;
        padding-left: 1rem;
        border-left: 4px solid #5ef0ff;
    }

    #typing-title {
        font-size: 1.8rem;
    }

    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-right,
    .profile-wrapper {
        margin-top: 2rem;
    }

    .profile-img {
        width: 250px;
        height: 280px;
    }

    .years-exp-box {
        margin: 0 auto !important;
    }

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

    .skill-item {
        padding: 1.2rem 0.8rem;
        font-size: 0.9rem;
    }

    .skill-img {
        width: 60px;
        height: 60px;
    }

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

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .project-img {
        height: 120px;
    }

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

    .company-card {
        padding: 1.5rem;
    }

    .company-img {
        width: 120px;
        height: 120px;
    }

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

    .social-card {
        padding: 1.5rem;
    }

    .social-card i {
        font-size: 2.5rem;
    }

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

    .cert-img {
        height: 140px;
    }

    .contact-item:hover,
    .cv-btn:hover,
    .cert-card:hover {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3) !important;
    }

    .glass-card {
        backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.05) !important;

        .whatsapp-btn,
        .cv-btn {
            padding: 0.6rem 1.8rem;
            font-size: 1rem;
        }

        .floating-icon {
            font-size: 1.5rem;
        }
    }

    @media (max-width: 480px) {

        section:first-of-type {
            padding-top: 140px;
        }

        nav {
            top: 8px;
            padding: 0.3rem 0.8rem;
        }

        .nav-logo {
            font-size: 0.85rem;
        }

        .nav-btn {
            padding: 0.3rem 0.8rem;
            font-size: 0.75rem;
        }

        section {
            padding: 40px 3%;
        }

        h1 {
            font-size: 2.8rem;
        }

        h2 {
            font-size: 2rem;
        }

        #typing-title {
            font-size: 1.5rem;
        }

        .profile-img {
            width: 200px;
            height: 220px;
        }

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

        .skill-item {
            padding: 1rem 0.5rem;
            font-size: 0.85rem;
        }

        .skill-img {
            width: 50px;
            height: 50px;
        }

        .service-card {
            padding: 1.5rem 1rem;
        }

        .project-card {
            padding: 1.2rem;
        }

        .project-img {
            height: 100px;
        }

        .company-img {
            width: 100px;
            height: 100px;
        }

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

        .cert-img {
            height: 120px;
        }

        .whatsapp-btn,
        .cv-btn {
            padding: 0.5rem 1.5rem;
            font-size: 0.9rem;
        }

        .feature-badge {
            gap: 1rem;
        }

        .feature-item {
            padding: 0.4rem 1.2rem;
            font-size: 0.9rem;
        }

        .years-exp-box {
            padding: 1.2rem;
            max-width: 150px;
            margin: 0 auto !important;
        }

        .floating-icon {
            display: none;
        }
    }
}