* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #0f172a url('premium_hero_v2.png') no-repeat center center fixed;
    background-size: cover;
    color: white;
    overflow-x: hidden;
}

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


/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav h2 {
    font-size: 1.5rem;
    background: linear-gradient(90deg, #38bdf8, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: #38bdf8;
    cursor: pointer;
    transition: 0.3s;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #38bdf8;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 120px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 30px;
    border: 4px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #f8fafc;
}

.hero p {
    font-size: 1.4rem;
    color: #94a3b8;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(45deg, #0ea5e9, #38bdf8);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 600;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px -5px rgba(14, 165, 233, 0.4);
    border: none;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    border: 1px solid #38bdf8;
    color: #38bdf8;
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(14, 165, 233, 0.6);
}

/* Sections */
section {
    padding: 100px 10%;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

/* Pro Example-Style Layout */
#about-pro {
    padding: 100px 10%;
    position: relative;
}

.pro-layout-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

.profile-frame {
    flex: 0 0 auto;
}

.profile-pic-round {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.3);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-pic-round:hover {
    transform: scale(1.05);
    box-shadow: 0 0 80px rgba(168, 85, 247, 0.5);
}

.about-content-side {
    flex: 1;
    max-width: 650px;
}

.section-title-alt {
    font-size: 3.2rem;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #d946ef, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
}

.about-text-block p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #e2e8f0;
    margin-bottom: 25px;
    text-align: left;
}

/* Tech Stack */
.skill-category {
    margin-bottom: 60px;
}

.skill-category h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #38bdf8;
    border-left: 4px solid #38bdf8;
    padding-left: 15px;
}

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

.skill {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill:hover {
    transform: translateY(-8px);
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.3);
}

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

.skill span {
    font-weight: 500;
}

/* Certifications Section */
#certifications h2 {
    color: #38bdf8;
    margin-bottom: 50px;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.cert-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.cert-card:hover {
    transform: translateY(-10px);
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(30, 41, 59, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cert-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cert-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cert-content h3 {
    font-size: 1.25rem;
    color: #f8fafc;
    margin-bottom: 12px;
    line-height: 1.4;
}

.cert-content p {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.view-cert-btn {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(56, 189, 248, 0.3);
    transition: 0.3s;
    text-align: center;
}

.view-cert-btn:hover {
    background: #38bdf8;
    color: #0f172a;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

/* Projects Section */
#projects h2 {
    color: #a855f7;
}

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
}

.card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    width: 100%;
    max-width: 1000px;
    border-radius: 30px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.4s ease;
}

.card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    transform: scale(1.02);
}

.project-carousel-container {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    border-radius: 20px;
    overflow: hidden;
}

.project-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.project-carousel::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari/Opera */
}

.project-carousel .project-img {
    flex: 0 0 100%;
    width: 100%;
    height: 500px;
    object-fit: contain; /* Prevents zooming - shows full screenshot */
    background: rgba(15, 23, 42, 0.4); /* Dashboard background for empty spaces */
    scroll-snap-align: center;
    border-radius: 20px;
    transition: 0.5s;
}

@media (max-width: 768px) {
    .project-carousel .project-img {
        height: 300px; /* Optimized mobile height */
    }
}

.carousel-hint {
    position: absolute;
    bottom: 15px;
    right: 20px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    color: #38bdf8;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 0.85rem;
    pointer-events: none;
    border: 1px solid rgba(56, 189, 248, 0.3);
    animation: bounceHint 2s infinite;
}

@keyframes bounceHint {
    0%, 20%, 50%, 80%, 100% {transform: translateX(0);}
    40% {transform: translateX(-10px);}
    60% {transform: translateX(-5px);}
}

.card h3 {
    color: #4ade80;
    font-size: 2rem;
    margin-bottom: 15px;
}

.card p {
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

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

.project-links a {
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.project-links a:hover {
    background: #7c3aed;
    border-color: #a855f7;
}

/* Contact Section Glassmorphism */
.contact {
    background: transparent;
    color: white;
    padding: 100px 10%;
    text-align: center;
}

.contact .contact-title {
    font-size: 3rem;
    margin-bottom: 50px;
    background: linear-gradient(90deg, #38bdf8, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    width: 100%;
    display: block;
}

.contact-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;

    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 32px;
    padding: 40px;

    box-sizing: border-box;
    overflow: hidden;

    text-align: left;
}

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

.contact-form h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 24px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.contact-form button {
    padding: 16px;
    background: linear-gradient(45deg, #0ea5e9, #38bdf8);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4);
}

/* Social Column in Glass Box */
.social {
    padding-left: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.social h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #38bdf8;
}

.social p {
    color: #94a3b8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    padding: 14px;
    box-sizing: border-box;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.social-links a:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
    color: white;
    transform: translateX(10px);
}

.social-links a i {
    font-size: 24px;
    color: #38bdf8;
}

/* Footer */
footer {
    padding: 60px 20px;
    text-align: center;
    color: #64748b;
    font-size: 1rem;
}

/* Mobile Responsiveness */
/* Mobile View Professional Proper Responsiveness */
@media (max-width: 968px) {
    nav {
        padding: 12px 5%;
    }

    .hero {
        padding: 100px 20px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.25;
    }

    .hero p {
        font-size: 1.05rem;
        margin-bottom: 30px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        max-width: 250px;
        margin: 0 auto;
    }

    section {
        padding: 80px 6%;
    }

    section h2 {
        font-size: 1.8rem;
        margin-bottom: 35px;
    }

    /* Profile Section Re-Centered Stacking */
    .pro-layout-wrapper {
        flex-direction: column; /* Stacked: Picture on top, matter below */
        gap: 30px;
        align-items: center;
        text-align: center;
    }

    .profile-frame {
        flex: 0 0 auto;
        margin: 0 auto;
    }

    .profile-pic-round {
        width: 150px; /* Enhanced mobile visibility */
        height: 150px;
    }

    .about-content-side h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        text-align: center;
    }

    .about-content-side p {
        text-align: center;
    }

    /* Skills Grid Harmonization */
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 15px;
    }

    /* Project Cards Refinement */
    .card {
        padding: 20px;
        width: 100%;
        max-width: 100%;
    }

    .project-carousel .project-img {
        height: 250px; /* Ergonomic mobile height */
    }

    /* Certifications Proper Grid */
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cert-card {
        padding: 20px;
    }

    .cert-img {
        height: 150px;
    }

    /* Contact Form Final Polish */
    .contact .contact-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }

    .contact-container {
        padding: 30px 20px;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .social {
        padding-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-left: none;
        text-align: center;
        padding-left: 0;
    }

    .social-links a {
        justify-content: center;
    }
}

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


    .hamburger {
        display: block;
    }


    nav ul {
        position: fixed;
        right: 0;
        top: 0;
        transform: translateX(100%);
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        width: 280px;
        height: 100vh;
        padding-top: 80px;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
    }

    nav ul.active {
        transform: translateX(0);
    }

    nav ul li {
        margin: 20px 0;
        text-align: center;
        width: 100%;
    }

    nav ul li a {
        font-size: 1.4rem;
        display: block;
        padding: 15px;
    }


html {
    scroll-behavior: smooth;
}

#vanta-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
}

/* Certification Modal (Lightbox) Style */
.modal {
    display: none;
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    animation: zoomModal 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes zoomModal {
    from { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
    z-index: 6000;
}

.close-modal:hover {
    color: #38bdf8;
    transform: rotate(90deg);
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #38bdf8;
    padding: 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
    }
    .close-modal {
        right: 25px;
        top: 20px;
    }
}



.skill i {
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.skill:hover i {
    transform: scale(1.2);
}

.backend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.backend-card {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}

.backend-card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
}
