:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.7);
    --cyan-glow: #0ea5e9;
    --purple-glow: #a855f7;
    --text-primary: #000000;
    --text-secondary: #000000;
    --nav-text: #475569;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 80px;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Cursor Glow */
/* .cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    mix-blend-mode: multiply;
} */

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan-glow), var(--purple-glow));
    z-index: 2000;
    width: 0%;
    transition: width 0.1s;
}

/* Background Animation */
.bg-animate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(100px);
}

.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    animation: move 20s infinite alternate;
}

.circle-1 {
    width: 500px;
    height: 500px;
    background: var(--cyan-glow);
    top: -100px;
    left: -100px;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: var(--purple-glow);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.circle-3 {
    width: 300px;
    height: 300px;
    background: var(--cyan-glow);
    top: 40%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes move {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 100px) scale(1.2);
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%; /* Fluid padding */
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: transparent;
    z-index: 1500;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -1px;
}

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

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

.nav-link {
    text-decoration: none;
    color: var(--nav-text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--cyan-glow);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan-glow), var(--purple-glow));
    transition: var(--transition);
    border-radius: 5px;
}

.nav-link.active::before {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center horizontally */
    position: relative;
    text-align: center;
    /* Center text by default */
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center flex items */
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 100px;
    color: var(--cyan-glow);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-greeting {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.hero-name {
    font-size: clamp(3rem, 10vw, 6rem); /* Fluid responsive font */
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    height: 1.2em;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    /* Center buttons */
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--text-primary);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
}

.btn-secondary:hover {
    background: #fdfdfd;
    transform: translateY(-5px);
}

.glow-cyan {
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.1);
}

.glow-purple {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.glass-card-light {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08); /* Sophisticated border */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    position: relative;
    padding-top: 35px; /* Header space for window dots */
    transition: var(--transition);
    overflow: hidden;
}

/* Browser Dots Mockup */
.glass-card-light::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 18px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff5f56; /* Red */
    box-shadow: 18px 0 0 #ffbd2e, 36px 0 0 #27c93f; /* Yellow & Green dots */
    z-index: 10;
}

.glass-card-light:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
    border-color: rgba(14, 165, 233, 0.2);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.img-wrapper {
    position: relative;
    padding: 15px;
    background: white;
}

.img-wrapper img {
    width: 100%;
    border-radius: 20px;
    z-index: 2;
    position: relative;
    display: block;
}

.img-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 60%);
    opacity: 0.1;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.badge {
    padding: 0.4rem 1.2rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cyan-glow);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

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

.skill-card {
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.02);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgb(249, 162, 122);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.1);
}

.skill-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}



.skill-card:hover .mongodb-logo-circle {
    transform: scale(1.1);
    box-shadow: 0 12px 20px rgba(71, 162, 72, 0.3);
}


.skill-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
}

.learning-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.7rem;
    background: var(--purple-glow);
    color: white;
    padding: 2px 10px;
    border-radius: 100px;
}

/* Case Study Projects Overhaul */
.project-blocks {
    display: flex;
    flex-direction: column;
    gap: 80px; /* Reduced from 120px */
}

.project-block {
    display: flex;
    align-items: center;
    gap: 4rem; /* Reduced from 6rem */
}

.project-block:nth-child(even) {
    flex-direction: row-reverse;
}

.project-visual {
    flex: 1.2;
}

.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-block:nth-child(even) .project-info {
    align-items: flex-start;
}

.glass-card-light {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.shadow-heavy {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.category-pill {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.display-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem); /* Reduced for more compact look */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.project-info p {
    font-size: 1.05rem; /* Reduced from 1.2rem */
    color: var(--text-secondary);
    margin-bottom: 1.5rem; /* Reduced from 2.5rem */
    line-height: 1.6;
}

.details-link {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-bottom: 5px;
}

.details-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.details-link:hover::after {
    width: 100%;
    background: var(--cyan-glow);
}

.details-link i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.details-link:hover i {
    transform: translateX(5px) rotate(-45deg);
}

.placeholder-img {
    height: 320px; /* Reduced from 450px */
    width: 100%;
    overflow: hidden;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-img img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* No more cropping */
    display: block;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsiveness for Projects */
@media (max-width: 992px) {

    .project-block,
    .project-block:nth-child(even) {
        flex-direction: column;
        gap: 3rem;
        text-align: left;
    }

    .display-title {
        font-size: 2.5rem;
    }
}

/* Certificates Section */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.certificate-card {
    padding: 3rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border-color: var(--cyan-glow);
}

.cert-icon {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    color: #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.certificate-card:hover .cert-icon {
    background: #000;
    color: white;
    transform: rotate(10deg);
}

.cert-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #000;
}

.cert-org {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.verify-link {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    position: relative;
    padding-bottom: 2px;
}

.verify-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1.5px;
    background: #000;
    transition: var(--transition);
}

.verify-link:hover {
    gap: 12px;
}

.verify-link:hover::after {
    width: 100%;
}

/* Contact Area */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.info-card {
    padding: 3rem;
    height: 100%;
}

.info-card i {
    font-size: 3rem;
    color: #000;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    justify-content: center;
    
}

.social-item {
    
    color: #000;
    transition: var(--transition);
    
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    box-shadow: 0 rgba(0, 0, 0, 0.05);
    text-decoration: none; /* Fix black line */
    padding: 8px;
}
.social-item i{
    height: 22px;
}

.social-item:hover {
    color: #333; /* Dark gray hover */
    transform: scale(1.3);
    box-shadow: 5px 5px  rgba(246, 12, 12, 0.08);
}

.contact-form {
    padding: 3rem;
    background: white;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent !important;
    border: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    padding: 1.2rem 0; /* Adjusted padding */
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: var(--transition);
}

/* Fix browser autofill blue background */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary) !important;
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-group label {
    position: absolute;
    top: 0.8rem;
    left: 0;
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan-glow);
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -1.2rem;
    font-size: 0.8rem;
    color: var(--cyan-glow);
}

.form-status {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
}

.form-status.success { color: #10b981; }
.form-status.error { color: #ef4444; }

/* Footer */
.footer {
    padding: 80px 0;
    background: #f1f5f9;
}

.footer-line {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--cyan-glow), transparent);
    margin-bottom: 40px;
    opacity: 0.2;
}

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

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.scroll-down a {
    text-decoration: none;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.scroll-down a:hover {
    color: var(--cyan-glow);
}

.scroll-down i {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

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

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

    60% {
        transform: translateY(-5px);
    }
}

/* Animations Logic classes used by JS */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Page Load Animation Classes */
.reveal-load {
    opacity: 0;
    transform: translateY(30px);
}

/* Responsiveness & Mobile Polish */
@media (max-width: 1024px) {
    .hero-name {
        letter-spacing: -1px;
    }
}

@media (max-width: 992px) {
    .section {
        padding: 80px 0;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-block,
    .project-block:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-block:nth-child(even) .project-visual {
        grid-column: 1; /* Force visual to top on mobile */
    }

    .placeholder-img {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
    }

    .nav-links {
        display: none; /* Keep hidden unless toggle implemented */
    }

    .hero-greeting {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }

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

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

    .certificate-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .placeholder-img {
        height: 200px; /* Smaller for very small screens */
    }

    .about-badges {
        justify-content: center;
    }
}