/* =========================================
   1. BASE RESET & FONTS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a; /* Deep Navy */
    color: #f8fafc;
    overflow-x: hidden;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
.header {
    background-color: rgba(15, 23, 42, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #1e293b;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.logo img {
    width: 50px;           
    height: 50px;          
    border-radius: 50%;    
    object-fit: cover;     
    border: 2px solid #38bdf8;
    transition: transform 0.3s ease;
    display: block;
}

.logo img:hover {
    transform: scale(1.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-link:hover {
    color: #38bdf8;
}

/* =========================================
   3. HOME / HERO SECTION
   ========================================= */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 10% 0;
    background-color: #0f172a;
}

.home-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}

.home-content {
    flex: 1;
    text-align: left;
}

/* Name Box Spacing */
.name-box {
    margin-bottom: 40px; /* This creates the gap you wanted */
}

.name-box h1 {
    font-size: 3.5rem;
    color: #f8fafc;
    line-height: 1.1;
    margin-bottom: 10px;
}

.name-box h3 {
    font-size: 1.5rem;
    color: #38bdf8;
    font-weight: 500;
}

/* Tagline Spacing */
.tagline {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #94a3b8;
    border-left: 4px solid #38bdf8;
    padding-left: 20px;
    max-width: 550px;
    margin-bottom: 40px; /* Space before buttons */
}

/* Image Wrapper */
.home-img {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.img-wrapper {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 8px solid #1e293b;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   4. BUTTONS
   ========================================= */
.btn-group {
    display: flex;
    gap: 20px;
}

.btn {
    position: relative;
    padding: 12px 30px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
    overflow: hidden;
}

.btn-cv {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    color: #0f172a;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
}

.btn-msg {
    background: transparent;
    color: #38bdf8;
    border: 2px solid #38bdf8;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.4);
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.6s ease;
}

.btn:hover::after {
    left: 120%;
}

/* =========================================
   5. ANIMATIONS
   ========================================= */
.animate-top {
    animation: slideTop 1s ease forwards;
}

.animate-left {
    animation: slideLeft 1s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.animate-right {
    animation: slideRight 1s ease forwards;
    opacity: 0;
}

@keyframes slideTop {
    0% { transform: translateY(-70px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideLeft {
    0% { transform: translateX(-70px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideRight {
    0% { transform: translateX(70px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* =========================================
   6. MOBILE RESPONSIVENESS
   ========================================= */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px;
    background-color: #f8fafc;
    transition: 0.3s;
}

@media (max-width: 1024px) {
    .hamburger { display: block; }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #1e293b;
        width: 100%;
        text-align: center;
        transition: 0.3s;
    }
    .nav-menu.active { left: 0; }
    .nav-menu li { margin: 1.5rem 0; }
}

@media (max-width: 991px) {
    .home-container {
        flex-direction: column;
        text-align: center;
        margin-top: 50px;
    }
    
    .home-content { order: 1; }
    .home-img { order: 2; justify-content: center; }

    .name-box h1 { font-size: 2.5rem; }
    .tagline { border-left: none; border-top: 3px solid #38bdf8; padding: 20px 0; }
    .btn-group { justify-content: center; }
    .img-wrapper { width: 300px; height: 300px; }
}


/* Skills Section Styles */
.skills {
    padding: 100px 10%;
    background: #0f172a;
}

.heading {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

.heading span {
    color: #38bdf8;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skills-column {
    background: #1e293b;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #334155;
    transition: 0.3s;
}

.skills-column:hover {
    border-color: #38bdf8;
    transform: translateY(-10px);
}

.skills-column h3 {
    font-size: 1.5rem;
    color: #f8fafc;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid #38bdf8;
    display: inline-block;
    width: 100%;
    padding-bottom: 10px;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.skill-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(15, 23, 42, 0.5);
    padding: 12px 20px;
    border-radius: 10px;
    transition: 0.3s;
}

.skill-card i {
    font-size: 1.5rem;
}

.skill-card span {
    font-size: 1rem;
    font-weight: 500;
    color: #cbd5e1;
}

.skill-card:hover {
    background: #38bdf8;
}

.skill-card:hover span, 
.skill-card:hover i {
    color: #0f172a !important; /* Text turns dark when card turns blue */
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .heading { font-size: 2.2rem; }
    .skills-container { grid-template-columns: 1fr; }
}


.education {
    padding: 100px 10%;
    background: #0f172a;
}

.education-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.edu-column {
    flex: 1 1 40rem;
}

.title {
    font-size: 2rem;
    margin: 0 0 1.5rem 2rem;
}






.education {
    padding: 100px 10%;
    background: #0f172a;
}

.education-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.edu-column {
    flex: 1 1 40rem;
}

.title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #f8fafc;
}

/* BCA Content Box */
.edu-box {
    border-left: 3px solid #38bdf8;
    padding-left: 20px;
}

.edu-detail {
    margin-top: 10px;
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Certificate Grid */
.cert-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.cert-card {
    background: #1e293b;
    border-radius: 15px;
    border: 1px solid #334155;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.4s;
}

.cert-card:hover {
    transform: translateY(-10px);
    border-color: #38bdf8;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.1);
}

.cert-img {
    height: 220px; /* Large height for the certificate image */
    width: 100%;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.cert-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Shows the whole certificate without cropping */
}

.cert-info {
    padding: 1.5rem;
    text-align: center;
}

.cert-info h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #f8fafc;
}

/* Glass View Button */
.view-btn {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    text-decoration: none;
    border: 1px solid #38bdf8;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

.view-btn:hover {
    background: #38bdf8;
    color: #0f172a;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .cert-container {
        grid-template-columns: 1fr;
    }
}






.internships {
    padding: 100px 10%;
    background: #0f172a;
}

.intern-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.intern-card {
    display: flex;
    background: #1e293b;
    border-radius: 20px;
    border: 1px solid #334155;
    overflow: hidden;
    transition: 0.4s ease;
}

.intern-card:hover {
    transform: scale(1.02);
    border-color: #38bdf8;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.1);
}

/* Visual Side (Certificate) */
.intern-visual {
    flex: 1;
    position: relative;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 300px;
}

.intern-visual img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 5px;
    object-fit: contain;
}

.intern-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #38bdf8;
    color: #0f172a;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 5px;
    text-transform: uppercase;
}

/* Details Side */
.intern-details {
    flex: 1.5;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.intern-details h3 {
    font-size: 1.8rem;
    color: #f8fafc;
}

.company-name {
    color: #38bdf8;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.cv-snippet {
    background: rgba(15, 23, 42, 0.4);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.cv-snippet strong {
    display: block;
    color: #94a3b8;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.cv-snippet p {
    font-style: italic;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.intern-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.intern-skills span {
    background: #334155;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    color: #38bdf8;
}

/* Buttons */
.intern-actions {
    display: flex;
    gap: 15px;
}

.btn-small {
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
    background: #38bdf8;
    color: #0f172a;
}

.btn-outline {
    background: transparent;
    color: #38bdf8;
    border: 1px solid #38bdf8;
}

.btn-small:hover {
    opacity: 0.8;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .intern-card {
        flex-direction: column;
    }
    .intern-visual {
        min-height: 200px;
    }
}







.projects {
    padding: 100px 10%;
    background: #0f172a;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-box {
    background: #1e293b;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #334155;
    transition: 0.3s ease;
}

.project-media {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

/* The Secret Sauce: Hover Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0; /* Hidden by default */
    transition: 0.4s ease;
}

.project-box:hover .project-overlay {
    opacity: 1;
}

.project-box:hover img {
    transform: scale(1.1);
}

.overlay-content {
    text-align: center;
}

.overlay-content h4 {
    color: #38bdf8;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.overlay-content p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 15px;
}

/* Tech Tags inside the overlay */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tech-tags span {
    background: #38bdf8;
    color: #0f172a;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Text Section below image */
.project-text {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-text h3 {
    font-size: 1.1rem;
    color: #f8fafc;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.9rem;
    transition: 0.3s;
}

.project-links a:hover {
    color: #38bdf8;
}

.view-link {
    font-weight: 600;
}

/* Responsive Fix */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}






.problem-solving {
    padding: 100px 10%;
    background: radial-gradient(circle at top, #1e293b 0%, #0f172a 100%);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.glass-morph {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 25px;
    padding: 40px;
    transition: 0.4s ease;
}

.glass-morph:hover {
    border-color: #38bdf8;
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.15);
    transform: translateY(-5px);
}

.glass-morph h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* SQL Progress Bars */
.progress-box {
    margin-bottom: 25px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #0f172a;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #0ea5e9);
    box-shadow: 0 0 10px #38bdf8;
    border-radius: 10px;
}

/* HackerRank Badges */
.badge-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(15, 23, 42, 0.5);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid transparent;
}

.badge-item:hover {
    border-color: rgba(56, 189, 248, 0.4);
}

.badge-icon {
    width: 60px;
    height: 60px;
    background: #0f172a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #38bdf8;
    box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.2);
}

.badge-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.stars {
    letter-spacing: 3px;
    text-shadow: 0 0 5px #ffd700;
}

.stats-footer {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 10px;
    font-style: italic;
}

@media (max-width: 768px) {
    .stats-container { grid-template-columns: 1fr; }
}








.contact {
    padding: 100px 10% 120px;
    background: #0f172a;
    text-align: center;
}

.contact-subtitle {
    color: #94a3b8;
    margin: -1.5rem 0 3rem;
    font-size: 1.1rem;
}

.contact-container {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

/* Form Side */
.contact-form-box {
    flex: 1;
    background: #1e293b;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid #334155;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-form-box input, 
.contact-form-box textarea {
    width: 100%;
    padding: 1rem;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    color: #f8fafc;
    font-size: 1rem;
    outline: none;
}

.contact-form-box textarea {
    margin-bottom: 1.5rem;
    resize: none;
}

.contact-form-box input:focus, 
.contact-form-box textarea:focus {
    border-color: #38bdf8;
}

/* Links Grid Side */
.contact-links-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #1e293b;
    border-radius: 15px;
    text-decoration: none;
    color: #f8fafc;
    border: 1px solid #334155;
    transition: 0.3s ease;
}

.contact-card i {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.contact-card span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Branding Hover Colors */
.contact-card.linkedin:hover { background: #0077b5; border-color: #0077b5; }
.contact-card.github:hover { background: #333; border-color: #333; }
.contact-card.leetcode:hover { background: #ffa116; border-color: #ffa116; }
.contact-card.hackerrank:hover { background: #2ec866; border-color: #2ec866; }
.contact-card.mail:hover { background: #ea4335; border-color: #ea4335; }
.contact-card.whatsapp:hover { background: #25d366; border-color: #25d366; }

.contact-card:hover {
    transform: translateY(-5px);
    color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .contact-container {
        flex-direction: column;
    }
    .input-group {
        flex-direction: column;
    }
    .contact-links-grid {
        width: 100%;
    }
}











