/* 
    ========================================
    1. DEFAULTS & VARIABLES
    ========================================
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: -apple-system, sans-serif;
}

:root {
    --bg-color: #0b0f14;
    --snd-bg-color: #12181f;
    --text-color: #f1f5f9;
    --main-color: #00ccff;
    /* Neon Blue */
    --accent-color: #0088cc;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

/* 
    ========================================
    2. GLOBAL COMPONENTS
    ========================================
*/
.heading {
    font-size: 6rem;
    text-align: center;
    margin-bottom: 5rem;
}

.heading span {
    color: var(--main-color);
}

.bg-label {
    position: absolute;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 15vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    z-index: -1;
    pointer-events: none;
    letter-spacing: 2rem;
    text-transform: uppercase;
}

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--main-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: 0.1rem;
    font-weight: 700;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    box-shadow: 0 0 1.6rem var(--main-color), 0 0 3rem var(--main-color);
    transform: translateY(-5px);
}

/* Modals */
.modal,
.cert-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    background: #000;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 0 30px var(--main-color);
}

.close-btn,
.cert-modal-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    color: #fff;
    font-size: 3.5rem;
    cursor: pointer;
    z-index: 3001;
    transition: 0.3s;
}

/* 
    ========================================
    3. HEADER & NAVIGATION
    ========================================
*/
.header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 5%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    transition: 0.5s ease;
}

.header.sticky {
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 700;
}

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

.navbar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar a {
    font-size: 1.6rem;
    color: var(--text-color);
    padding: 1rem 2rem;
    font-weight: 600;
    transition: 0.3s ease;
    opacity: 0.7;
}

.navbar a:hover,
.navbar a.active {
    opacity: 1;
    color: var(--main-color);
}

.navbar.active {
    display: flex;
}

/* Ghost Button CTA */
.navbar a.nav-cta {
    background: transparent;
    color: var(--main-color);
    padding: 0.8rem 2.5rem;
    border-radius: 3rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    border: 1.8px solid var(--main-color);
    margin-left: 2rem;
    opacity: 1;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.navbar a.nav-cta:hover {
    background: rgba(0, 204, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 204, 255, 0.4);
    transform: translateY(-3px) scale(1.05);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

/* 
    ========================================
    4. HOME SECTION
    ========================================
*/
.home {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img {
    width: 25vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    animation: floatImage 4s ease-in-out infinite;
    transition: 0.4s ease;
}

@keyframes floatImage {

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

    50% {
        transform: translateY(-2.4rem);
    }
}

.home-content {
    margin-left: 5rem;
    max-width: 60rem;
}

.home-content h1 {
    font-size: 6rem;
    font-weight: 800;
    margin-bottom: 2.22rem;
}

.home-content h3 {
    font-size: 3.7rem;
    font-weight: 700;
}

.home-content p {
    font-size: 1.6rem;
    line-height: 1.6;
    margin: 2rem 0;
    color: #cbd5e1;
}

.work-area {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    transition: 0.3s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 2rem var(--main-color);
    transform: scale(1.1) translateY(-5px);
}

/* 
    ========================================
    5. ABOUT ME SECTION
    ========================================
*/
.about {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8rem;
    background: var(--snd-bg-color);
}

.about-img img {
    width: 25vw;
    border: 2px solid var(--main-color);
    border-radius: 58%;
    box-shadow: 0 0 25px var(--main-color);
}

.about-content {
    flex: 1;
    max-width: 60rem;
}

.about-content h2 {
    text-align: left;
}

.about-content h3 {
    font-size: 2.8rem;
    color: var(--main-color);
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.7rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* Expandable Detail */
.about-more {
    max-height: 0;
    overflow: hidden;
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-more.active {
    max-height: 1000px;
}

.about-details {
    list-style: none;
    margin: 2rem 0;
    border-left: 2px solid var(--main-color);
    padding-left: 2rem;
}

.about-details li {
    font-size: 1.6rem;
    margin: 1rem 0;
}

/* 
    ========================================
    6. SKILLS SECTION
    ========================================
*/
.skills {
    background: var(--bg-color);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(32rem, 1fr));
    gap: 3.5rem;
}

.skills-box {
    background: var(--snd-bg-color);
    padding: 3.5rem;
    border-radius: 3rem;
    border: 1px solid rgba(0, 204, 255, 0.1);
    transition: 0.4s ease;
}

.skills-box:hover {
    transform: translateY(-1rem);
    border-color: var(--main-color);
    box-shadow: 0 10px 30px rgba(0, 204, 255, 0.1);
}

.skills-box h3 {
    font-size: 2.4rem;
    color: var(--main-color);
    margin-bottom: 2.5rem;
    font-weight: 800;
}

.skill-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.skill-buttons span {
    padding: 0.8rem 1.8rem;
    background: rgba(0, 204, 255, 0.05);
    color: #94a3b8;
    border-radius: 2rem;
    font-size: 1.4rem;
    font-weight: 600;
    border: 1px solid rgba(0, 204, 255, 0.2);
    transition: 0.3s ease;
}

.skill-buttons span:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--main-color);
}

/* 
    ========================================
    7. EXPERIENCE SECTION
    ========================================
*/
.experience {
    position: relative;
    background: var(--snd-bg-color);
}

.timeline {
    position: relative;
    max-width: 120rem;
    margin: 6rem auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--main-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    opacity: 0.4;
}

.timeline-container {
    padding: 2rem 5rem;
    position: relative;
    width: 50%;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 2rem;
    height: 2rem;
    right: -1rem;
    background: var(--bg-color);
    border: 4px solid var(--main-color);
    top: 3.5rem;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 15px var(--main-color);
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -1rem;
}

.timeline-content {
    background: var(--bg-color);
    padding: 3rem;
    border-radius: 3rem;
    border-left: 6px solid var(--main-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: 0.4s ease;
}

.right .timeline-content {
    border-left: none;
    border-right: 6px solid var(--main-color);
}

.timeline-content:hover {
    transform: scale(1.05);
    background: var(--snd-bg-color);
}

.date {
    font-size: 1.4rem;
    color: var(--main-color);
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.timeline-content h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.8rem;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.timeline-content p {
    font-size: 1.6rem;
    color: #cbd5e1;
    line-height: 1.5;
}

/* 
    ========================================
    8. PROJECTS GRID SECTION
    ========================================
*/
.projects {
    padding: 12rem 9% 8rem;
    background: var(--bg-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(36rem, 1fr));
    gap: 4rem;
    max-width: 130rem;
    margin: 5rem auto 0;
}

.project-card {
    position: relative;
    border-radius: 4rem;
    overflow: hidden;
    height: 50rem;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
    filter: brightness(0.65);
}

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.92) 85%);
    z-index: 5;
}

#contact-result {
    display: none;
    padding: 1.5rem 2.5rem;
    border-radius: 1.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 auto 3rem; /* Centered with a generous bottom margin */
    width: fit-content;
    text-align: center;
    backdrop-filter: blur(10px);
    animation: slideUpFade 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#contact-result.success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

#contact-result.error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

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

.category-tag {
    background: var(--main-color);
    color: #000;
    padding: 0.8rem 1.8rem;
    border-radius: 5rem;
    font-size: 1.2rem;
    font-weight: 900;
    width: fit-content;
}

.project-text h3 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1.2rem;
}

.project-text p {
    font-size: 1.55rem;
    color: #cbd5e1;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 70%;
}

.tech-stack span {
    padding: 0.5rem 1.4rem;
    background: rgba(0, 204, 255, 0.08);
    border: 1px solid rgba(0, 204, 255, 0.3);
    color: var(--main-color);
    border-radius: 2rem;
    font-size: 1.1rem;
    font-weight: 800;
}

.project-links {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
}

.project-link-btn {
    width: 6.5rem;
    height: 6.5rem;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--main-color);
    border: 2px solid rgba(0, 204, 255, 0.3);
    transition: 0.4s ease;
}

.project-link-btn:hover {
    background: var(--main-color);
    color: #000;
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 0 25px var(--main-color);
}

.project-card:hover {
    transform: translateY(-1.5rem);
    border-color: var(--main-color);
}

.project-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.3);
}

.project-card:hover .project-text p {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

/* 
    ========================================
    9. CERTIFICATES SECTION
    ========================================
*/
.certificates {
    background: var(--snd-bg-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.8rem;
    color: #94a3b8;
    margin-top: -3.5rem;
    margin-bottom: 5rem;
    font-weight: 600;
}

.certificates-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(34rem, 1fr));
    gap: 3.5rem;
}

.certificate-card {
    background: var(--snd-bg-color);
    border-radius: 2.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Premium Card Shine Effect */
.certificate-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.03), transparent);
    transform: skewX(-25deg);
    transition: 0.7s;
}

.certificate-card:hover::after {
    left: 150%;
}

.certificate-card.hidden {
    display: none;
}

.certificate-card:hover {
    transform: translateY(-1.5rem) scale(1.02);
    border-color: var(--main-color);
    box-shadow: 0 20px 40px rgba(0, 204, 255, 0.15);
}

.cert-image-area {
    position: relative;
    height: 180px;
    width: 100%;
    overflow: hidden;
}

.cert-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: 0.5s ease;
}

.certificate-card:hover .cert-image-area img {
    opacity: 0.9;
    transform: scale(1.1);
}

.cert-floating-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 4.5rem;
    height: 4.5rem;
    background: rgba(0, 204, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    font-size: 2rem;
    border: 1px solid rgba(0, 204, 255, 0.3);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 204, 255, 0.4); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(0, 204, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 204, 255, 0); }
}

.cert-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cert-content h4 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: #fff;
}

.cert-issuer {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #94a3b8;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: auto;
    padding-bottom: 2.5rem;
}

.cert-issuer i {
    color: var(--main-color);
    font-size: 1.8rem;
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cert-date {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 700;
}

.cert-view-btn {
    color: var(--main-color);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.view-all-container {
    text-align: center;
    margin-top: 6rem;
    position: relative;
    z-index: 10;
}

/* Cert Modal */
/* Enhanced Cert Modal Styling */
.cert-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #0f172a;
    width: 90%;
    max-width: 105rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    border-radius: 4rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.cert-modal-left {
    background: #fff;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cert-modal-left::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent, rgba(0,0,0,0.03));
    pointer-events: none;
}

.cert-modal-left img {
    max-width: 100%;
    max-height: 75vh;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cert-modal-left:hover img {
    transform: scale(1.03);
}

.rotate-cert {
    transform: rotate(-90deg) scale(1.4);
    max-height: 85vh !important;
}

.cert-modal-right {
    padding: 6rem 5rem;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(10px);
}

.verified-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 5rem;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 3rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
    animation: verifyPulse 2s infinite;
}

@keyframes verifyPulse {
    0% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.8; transform: scale(1); }
}

.cert-modal-right h3 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 2rem;
}

.issuer-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.8rem;
    color: #94a3b8;
    margin-bottom: 4rem;
}

.issuer-info i {
    font-size: 2.22rem;
    color: var(--main-color);
}

.issued-on {
    margin-top: auto;
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.issued-on span {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
}

.issued-on p {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.verify-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: #fff;
    color: #000;
    padding: 2.22rem;
    border-radius: 2rem;
    font-size: 1.8rem;
    font-weight: 800;
    transition: 0.4s;
}

.verify-btn i {
    font-size: 2.5rem;
    color: #0077b5; /* LinkedIn Blue */
}

.verify-btn:hover {
    background: var(--main-color);
    color: #000;
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 204, 255, 0.3);
}

.cert-modal-close {
    position: absolute;
    top: 3rem;
    right: 3rem;
    width: 5rem;
    height: 5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.cert-modal-close:hover {
    background: #ef4444;
    transform: rotate(90deg) scale(1.1);
}

/* 
    ========================================
    10. CONTACT SECTION
    ========================================
*/
.contact {
    background: var(--bg-color);
    padding-bottom: 12rem;
}

.contact-container {
    display: flex;
    gap: 10rem;
    max-width: 120rem;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 4rem;
    margin-bottom: 2rem;
    font-weight: 800;
}

.contact-info p {
    font-size: 1.8rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.icon-box {
    width: 6rem;
    height: 6rem;
    background: rgba(0, 204, 255, 0.1);
    border: 1px solid rgba(0, 204, 255, 0.2);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: var(--main-color);
}

.text-box span {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-box p {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.contact-social {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.contact-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    transition: 0.3s ease;
}

.contact-social a:hover {
    transform: scale(1.2) translateY(-10px);
    background-color: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--main-color);
}

.contact form {
    flex: 1.2;
    background: var(--snd-bg-color);
    padding: 4rem;
    border-radius: 4rem;
}

.input-group {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.input-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.input-box label {
    font-size: 1.4rem;
    font-weight: 800;
    color: #64748b;
}

.input-box input,
.input-box textarea,
.professional-select {
    background: var(--bg-color);
    color: #fff;
    padding: 1.5rem 2rem;
    border-radius: 1.5rem;
    font-size: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.input-box textarea {
    resize: none;
    margin-bottom: 2rem;
}

.send-btn {
    width: 100%;
    padding: 1.8rem;
    font-size: 1.8rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

/* 
    ========================================
    11. FOOTER
    ========================================
*/
/* Enhanced Footer Section */
.footer {
    padding: 10rem 9% 4rem;
    background: #0f172a;
    /* Deeper navy blue */
    position: relative;
    overflow: hidden;
}

.footer-top-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--main-color), transparent);
    box-shadow: 0 0 20px var(--main-color);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 8rem;
    margin-bottom: 6rem;
}

.footer-box h3 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 3rem;
    position: relative;
    width: fit-content;
}

.footer-box h3::after {
    content: '';
    position: absolute;
    bottom: -0.8rem;
    left: 0;
    width: 4rem;
    height: 3px;
    background: var(--main-color);
    border-radius: 5px;
}

/* Brand Box */
.footer-logo {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2rem;
}

.brand-box p {
    font-size: 1.6rem;
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    width: 4.5rem;
    height: 4.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.22rem;
    color: #fff;
    transition: 0.3s ease;
}

.footer-social a:hover {
    background: var(--main-color);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 204, 255, 0.3);
}

/* Links Box */
.links-box ul {
    list-style: none;
}

.links-box ul li {
    margin-bottom: 1.5rem;
}

.links-box ul li a {
    font-size: 1.6rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: 0.3s ease;
}

.links-box ul li a i {
    font-size: 1.8rem;
    color: var(--main-color);
    opacity: 0;
    transition: 0.3s ease;
}

.links-box ul li a:hover {
    color: var(--main-color);
    padding-left: 0.8rem;
}

.links-box ul li a:hover i {
    opacity: 1;
}

/* Contact Box */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.info-item i {
    font-size: 2rem;
    color: var(--main-color);
}

.info-item span {
    font-size: 1.6rem;
    color: #cbd5e1;
}

.info-item.status {
    padding: 1.2rem 1.8rem;
    background: rgba(0, 204, 255, 0.05);
    border: 1px dashed rgba(0, 204, 255, 0.3);
    border-radius: 1.5rem;
    width: fit-content;
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    padding-top: 4rem;
}

.footer-line {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 3rem;
}

.bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bottom-content p {
    font-size: 1.4rem;
    color: #64748b;
}

.signature i {
    color: #ef4444;
    /* Red heart */
    font-size: 1.6rem;
}

.scroll-top {
    position: absolute;
    right: 5%;
    bottom: 4rem;
    width: 5.5rem;
    height: 5.5rem;
    background: var(--main-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 204, 255, 0.4);
    transition: 0.3s ease;
}

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

/* 
    ========================================
    12. MEDIA QUERIES (CONSOLIDATED)
    ========================================
*/
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .home {
        flex-direction: column;
        text-align: center;
    }

    .home-content {
        margin-left: 0;
        margin-top: 5rem;
    }

    .about {
        flex-direction: column;
        text-align: center;
    }

    .about-content h2 {
        text-align: center;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-container::after {
        left: 21px;
    }

    .right {
        left: 0;
    }

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

    .contact-container {
        flex-direction: column;
        gap: 5rem;
    }

    .contact-info {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        justify-content: center;
    }

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

    .project-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .tech-stack {
        max-width: 100%;
    }

    .projects-grid,
    .certificates-container,
    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(32rem, 1fr));
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 5rem;
        text-align: center;
    }

    .footer-box h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social,
    .info-item,
    .info-item.status {
        justify-content: center;
    }

    .links-box ul li a {
        justify-content: center;
    }

    .footer-box h3 {
        margin: 0 auto 3rem;
        text-align: center;
    }

    .links-box ul {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
        gap: 2rem;
        justify-items: center;
    }

    .links-box ul li {
        margin-bottom: 0;
    }

    .contact-info-list {
        align-items: center;
    }

    .links-box ul li a i {
        opacity: 1;
    }

    .brand-box {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 617px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        display: none;
        flex-direction: column;
        text-align: center;
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .navbar a.nav-cta {
        margin: 2rem 0;
        width: 100%;
        justify-content: center;
    }

    .input-group {
        flex-direction: column;
    }

    .projects-grid,
    .certificates-container,
    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .home-img img {
        width: 70vw;
    }

    .heading {
        font-size: 4rem;
        margin-bottom: 3rem;
    }

    .contact form {
        padding: 2.5rem;
    }

    .contact-info h3 {
        font-size: 3rem;
    }

    .footer {
        padding: 7rem 3% 3rem;
    }

    .footer-logo {
        font-size: 2.8rem;
    }

    .footer-container {
        gap: 4rem;
    }

    .links-box ul {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .info-item span {
        font-size: 1.5rem;
    }

    .logo {
        font-size: 2.5rem;
    }
}