/* --- GLOBAL SETTINGS --- */
* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    height: 100vh;
    overflow: hidden;
    background-color: #0f172a;
    color: #e2e8f0;
}

section {
    /* This ensures the section stops 80px below the top, 
       leaving room for your fixed navbar */
    scroll-margin-top: 80px;
}

/* --- LEFT SIDE (IMAGE AREA) --- */
/* --- MODERNIZED PHOTO AREA --- */
.left-side {
    width: 35%;
    background-color: #0f172a;
    /* Matches your body background */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    /* This creates a unique slanted edge on the right */
    clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 0% 100%);
    border-right: none;
}

.photo-frame {
    position: relative;
    width: 320px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The Glowing Unique Shape behind the photo */
.glow-ring {
    position: absolute;
    width: 110%;
    height: 110%;
    background: linear-gradient(45deg, #0066cc, #10b981, #eb1212);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    /* Organic moving shape */
    filter: blur(20px);
    opacity: 0.6;
    animation: morph 8s linear infinite;
}

.profile-image {
    width: 100%;
    height: 100%;
    background-image: url('profile.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    z-index: 2;
    position: relative;
    /* Subtle tilt effect */
    transform: perspective(1000px) rotateY(-5deg);
}

/* --- KEYFRAME FOR THE UNIQUE MOVING GLOW --- */
@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* --- RIGHT SIDE (TEXT AREA) --- */
.right-side {
    flex: 1;
    padding: 50px;
    overflow-y: auto;
    background-color: #0f172a;
    color: #cbd5e1;
    perspective: 1000px;
}

/* --- ANIMATED NAME --- */
.typewriter-container {
    display: inline-block;
    margin-bottom: 20px;
}

.typewriter h1 {
    color: #ffffff;
    font-size: 3em;
    font-weight: 800;
    overflow: hidden;
    border-right: .10em solid #0066cc;
    white-space: nowrap;
    margin: 0;
    animation:
        typing 2.5s steps(30, end),
        blink-caret .75s step-end infinite;
}

/* --- KEYFRAMES --- */
@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #0066cc;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- CONTACT BOX & CARDS --- */
.contact-box {
    background: #1e293b;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #0066cc;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left 0.3s ease;
}

.contact-box:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0, 102, 204, 0.15);
    border-left: 8px solid #0066cc;
}

.contact-box a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    margin-right: 20px;
    display: inline-block;
    font-size: 1.1em;
    position: relative;
    transition: color 0.3s;
}

.contact-box a:hover {
    color: #0066cc;
}

.contact-box a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #eb0c2a;
    transition: width 0.3s ease-in-out;
}

.contact-box a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #f10c27;
    transition: width 0.3s ease-in-out;
}

.contact-box a:hover::after {
    width: 100%;
}

/* --- SECTIONS --- */
h2 {
    color: #f1f5f9;
    font-size: 1.8em;
    border-bottom: 2px solid #eb1212;
    padding-bottom: 10px;
    margin-top: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #0066cc;
    transition: width 0.6s ease;
}

.section-visible h2::after {
    width: 100%;
}

.card {
    background: #1e293b;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.card-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #f1f5f9;
    margin-bottom: 5px;
}

.card-subtitle {
    font-style: italic;
    color: #94a3b8;
    margin-bottom: 10px;
    display: block;
}

.card-text {
    color: #cbd5e1;
    line-height: 1.7;
}

/* --- BADGES (SKILLS) --- */
.badge {
    display: inline-block;
    background: #334155;
    color: #e2e8f0;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    margin-right: 5px;
    margin-bottom: 8px;
    border: 1px solid #475569;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.badge:hover {
    background-color: #0066cc;
    color: #fff;
    transform: scale(1.1);
    border-color: #0066cc;
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

.skill-category {
    font-weight: bold;
    color: #0066cc;
    margin-right: 10px;
}

/* --- SCROLL REVEAL CLASS --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- LISTS --- */
ul {
    margin-top: 0;
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
    color: #cbd5e1;
}

/* --- MOBILE SETTINGS --- */
@media screen and (max-width: 900px) {
    body {
        flex-direction: column;
        height: auto;
        overflow: auto;
    }

    .left-side {
        width: 60% !important;
        height: 50vh;
        border-right: none;
        border-bottom: 5px solid #1e293b;
        animation: fadeInUp 1s ease-out;
        opacity: 1 !important;
    }

    .right-side {
        width: 100%;
        padding: 30px;
    }

    .typewriter h1 {
        font-size: 1.8em;
        white-space: normal;
        animation: none;
        border: none;
    }
}

/* POP ANIMATION */
@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.badge {
    display: inline-block;
    opacity: 0;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.badge:nth-child(1) {
    animation-delay: 0.1s;
}

.badge:nth-child(2) {
    animation-delay: 0.2s;
}

.badge:nth-child(3) {
    animation-delay: 0.3s;
}

.badge:nth-child(4) {
    animation-delay: 0.4s;
}

.badge:nth-child(5) {
    animation-delay: 0.5s;
}

.badge:nth-child(6) {
    animation-delay: 0.6s;
}

.badge:nth-child(7) {
    animation-delay: 0.7s;
}

/* --- LEETCODE HEATMAP STYLES --- */
.leetcode-card {
    background: #1e293b;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #0066cc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    width: 100%;
    /* Kept existing card hover effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left 0.3s ease;
}

.leetcode-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0, 102, 204, 0.15);
    border-left: 8px solid #0066cc;
}

.lc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #94a3b8;
}

.lc-stat {
    margin-left: 15px;
}

.lc-stat span {
    color: #fff;
    font-weight: 600;
}

/* SCROLL WRAPPER */
.heatmap-wrapper {
    overflow-x: auto;
    position: relative;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #333 #1e293b;
}

/* THE GRID */
.heatmap-grid {
    display: grid;
    grid-template-rows: repeat(7, 10px);
    /* 7 Rows (Sun-Sat) */
    grid-auto-flow: column;
    /* Fill vertically first */
    gap: 3px;
    width: max-content;
    margin-bottom: 5px;
}

.heatmap-box {
    width: 10px;
    height: 10px;
    background-color: #2d3748;
    /* Empty Color */
    border-radius: 2px;
    cursor: pointer;
}

.heatmap-placeholder {
    width: 10px;
    height: 10px;
    visibility: hidden;
}

/* Color Levels */
.level-1 {
    background-color: #0e4429;
}

.level-2 {
    background-color: #006d32;
}

.level-3 {
    background-color: #26a641;
}

.level-4 {
    background-color: #39d353;
}

.heatmap-box:hover {
    opacity: 0.8;
    outline: 1px solid #fff;
}

/* Month Labels */
.heatmap-months {
    display: flex;
    position: relative;
    height: 15px;
    width: max-content;
}

.month-label {
    position: absolute;
    font-size: 10px;
    color: #94a3b8;
    transform: translateX(2px);
}

/* --- RESUME BUTTONS --- */
.download-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #0066cc;
    /* Blue for Download */
    color: white !important;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1em;
    margin: 10px;
    /* Spacing between buttons */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
    border: 2px solid transparent;
}

/* Specific Style for Overview Button (Green) */
.overview-btn {
    background-color: #10b981;
    /* Nice Green */
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Hover Effects */
.download-btn:hover {
    transform: translateY(-3px);
    border-color: #fff;
    background-color: #0052a3;
    /* Darker Blue */
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.6);
}

.overview-btn:hover {
    background-color: #059669;
    /* Darker Green */
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

/* Remove underline */
.download-btn::after {
    display: none;
}

/* --- RESUME POP-UP MODAL --- */
.modal-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* Dark transparent background */
    z-index: 9999;
    /* Sit on top of everything */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    /* Cool blur effect */
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    /* Max width for large screens */
    height: 90%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: popUp 0.3s ease;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Close "X" Button */
.close-modal {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #333;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    transition: all 0.2s;
}

.close-modal:hover {
    color: #eb1212;
    background: #fff;
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- CONVERSATION BOX STYLES --- */
.form-container {
    background: #1e293b;
    padding: 30px;
    border-radius: 15px;
    border-top: 4px solid #10b981;
    /* Green top border for "Start" vibe */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.input-group {
    margin-bottom: 20px;
}

input,
textarea {
    width: 100%;
    padding: 15px;
    background: #0f172a;
    border: 1px solid #334155;
    color: #fff;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #10b981;
    /* Green focus color */
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}

.send-btn {
    width: 100%;
    padding: 15px;
    background: #10b981;
    /* Green button */
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.send-btn:hover {
    background: #059669;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

/* --- SPLIT CONVERSATION LAYOUT --- */
.conversation-container {
    display: flex;
    gap: 30px;
    /* Space between Form and Info */
    background: #1e293b;
    padding: 30px;
    border-radius: 15px;
    border-top: 4px solid #10b981;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* LEFT COLUMN: Form */
.form-column {
    flex: 2;
    /* Takes up 66% of the width */
}

/* RIGHT COLUMN: Info Box */
.info-column {
    flex: 1;
    /* Takes up 33% of the width */
    background: #0f172a;
    /* Darker background for contrast */
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #334155;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-column h3 {
    color: #10b981;
    margin-bottom: 20px;
    border-bottom: 2px solid #334155;
    padding-bottom: 10px;
}

/* Info Items (Phone, Email, etc) */
.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item .icon {
    font-size: 1.5em;
    margin-right: 15px;
    background: #1e293b;
    padding: 10px;
    border-radius: 50%;
}

.info-item .details {
    display: flex;
    flex-direction: column;
}

.info-item .details .label {
    font-size: 0.8em;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: bold;
}

/* RESPONSIVE: Stack them on mobile phones */
@media (max-width: 768px) {
    .conversation-container {
        flex-direction: column;
    }

    .info-column {
        margin-top: 20px;
    }
}

.robot-footer {
    display: flex;
    align-items: center;
    background: #0f172a;
    border: 2px solid #10b981;
    /* Glowing green border */
    border-radius: 12px;
    padding: 15px 25px;
    margin-top: 40px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
    /* Green glow */
    font-family: 'Courier New', Courier, monospace;
    /* Robot/terminal font */
}

.robot-icon {
    font-size: 2.5em;
    margin-right: 20px;
    animation: robotPulse 2s infinite alternate;
}

.robot-message p {
    color: #10b981;
    /* Green terminal text */
    font-size: 1.1em;
    font-weight: bold;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid #10b981;
    /* The blinking cursor █ */

    /* --- UPDATED ANIMATION SETTINGS --- */
    width: 0;
    /* Changed: Duration increased to 8s, 'forwards' changed to 'infinite', keyframe name changed */
    animation:
        typeAndDelete 8s steps(60, end) infinite,
        blinkCursor 0.75s step-end infinite;
}

/* Animations */
@keyframes robotPulse {
    from {
        transform: scale(1);
        text-shadow: 0 0 5px #10b981;
    }

    to {
        transform: scale(1.1);
        text-shadow: 0 0 15px #10b981;
    }
}

/* --- NEW KEYFRAMES FOR CONTINUOUS TYPING --- */
@keyframes typeAndDelete {
    0% {
        width: 0;
    }

    /* Start empty */
    40% {
        width: 100%;
    }

    /* Finish typing out */
    70% {
        width: 100%;
    }

    /* Pause here so it can be read */
    100% {
        width: 0;
    }

    /* Delete back to empty */
}

@keyframes blinkCursor {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #10b981;
    }
}

/* Responsive for small screens */
@media (max-width: 600px) {
    .robot-footer {
        flex-direction: column;
        text-align: center;
    }

    .robot-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .robot-message p {
        white-space: normal;
        /* Allow wrapping on small phones */
    }
}

/* --- THEME TOGGLE BUTTON --- */
.theme-btn {
    background: none;
    border: 2px solid #0066cc;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background-color: #0066cc;
    transform: rotate(15deg) scale(1.1);
}

/* --- LIGHT MODE OVERRIDES --- */
body.light-mode {
    background-color: #ffffff;
    /* Pure White */
    color: #000000;
    /* Pure Black as requested */
}

/* Navbar Light Mode */
body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .nav-logo {
    color: #000000;
    /* Black Logo */
}

body.light-mode .nav-links a {
    color: #000000;
    /* Black Links */
    font-weight: 600;
    /* Bolder for visibility */
}

body.light-mode .nav-links a:hover {
    color: #0066cc;
    /* Keep hover color */
}

body.light-mode .theme-btn {
    border-color: #000000;
    color: #000000;
}

body.light-mode .theme-btn:hover {
    background-color: #000000;
    color: #fff;
}

/* Layout Light Mode */
body.light-mode .left-side,
body.light-mode .right-side {
    background-color: #ffffff;
}

body.light-mode .right-side {
    color: #000000;
}

/* Headings & Text */
body.light-mode h1,
body.light-mode h2,
body.light-mode .typewriter h1 {
    color: #000000;
}

body.light-mode h2 {
    border-bottom-color: #ef4444;
    /* Red */
}

body.light-mode .card-subtitle,
body.light-mode li {
    color: #000000;
}

/* Cards & Boxes Light Mode */
body.light-mode .contact-box,
body.light-mode .card,
body.light-mode .leetcode-card,
body.light-mode .conversation-container,
body.light-mode .form-container,
body.light-mode .robot-footer,
body.light-mode .info-column {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Slightly stronger shadow */
    border: 1px solid #000000;
    /* distinct border */
    color: #000000;
}

/* Ensure links inside contact box are visible (Black) */
body.light-mode .contact-box a,
body.light-mode .card a {
    color: #000000;
    border-bottom-color: #ef4444;
    /* Keep the red underline accent */
}

/* Ensure specific text classes are black */
body.light-mode .card-text,
body.light-mode .card-title,
body.light-mode .card-subtitle {
    color: #000000;
}

/* Ensure info column in form blends in or stands out appropriately */
body.light-mode .info-column {
    background-color: #f1f5f9;
    border-color: #000000;
}

/* Icons in Contact Info */
body.light-mode .info-item .icon {
    background-color: #e2e8f0;
}

/* Inputs Light Mode */
body.light-mode input,
body.light-mode textarea {
    background-color: #f1f5f9;
    color: #000000;
    border-color: #000000;
}

body.light-mode input:focus,
body.light-mode textarea:focus {
    background-color: #ffffff;
    border-color: #000000;
}

/* Badges */
body.light-mode .badge {
    background-color: #e2e8f0;
    color: #000000;
    border-color: #000000;
}

body.light-mode .badge:hover {
    background-color: #000000;
    color: #fff;
}

/* Hide the dropdown content by default */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #0f172a;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Show the menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Style the links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    display: block;
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: #0e0f11;
}

/* Scrollbar for Light Mode */
body.light-mode *::-webkit-scrollbar-track {
    background: #f1f5f9;
}

body.light-mode *::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border: 3px solid #f1f5f9;
}

body.light-mode *::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

/* Robot text */
body.light-mode .robot-message p {
    color: #059669;
    border-right-color: #059669;
}

/* --- LIGHT MODE TEXT HOVER EFFECT --- */
body.light-mode p:hover,
body.light-mode h1:hover,
body.light-mode h2:hover,
body.light-mode h3:hover,
body.light-mode h4:hover,
body.light-mode h5:hover,
body.light-mode h6:hover,
body.light-mode li:hover,
body.light-mode span:hover,
body.light-mode div.card-text:hover,
body.light-mode div.card-title:hover,
body.light-mode div.card-subtitle:hover {
    color: #0066cc;
    transition: color 0.3s ease;
    cursor: default;
}

/* Light Mode Dropdown */
body.light-mode .dropdown-content {
    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

body.light-mode .dropdown-content a {
    color: #000000;
}

body.light-mode .dropdown-content a:hover {
    background-color: #f1f5f9;
    color: #0066cc;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    /* Increased spacing from the edge */
    bottom: 50px;
    right: 50px;
    background-color: #25d366;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #128c7e;
    /* Darker WhatsApp shade */
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
}

/* 1. Centering the Container */
.social-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    /* This centers the buttons horizontally */
    align-items: center;
    /* This centers them vertically */
    gap: 20px;
    /* Increased space between larger buttons */
    padding: 30px 0;
    width: 100%;
    /* Ensures it uses the full width of the blue box */
}

/* 2. Increasing the Pill Size */
.ig-pill {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    background: white;
    border-radius: 100px;
    padding: 6px;
    /* Increased from 4px to make the pill thicker */
    position: relative;
    white-space: nowrap;
    border: 4px solid transparent;
    /* Slightly thicker gradient border */
    transition: transform 0.2s ease-in-out;
}

/* 3. Increasing the Icon Circle Size */
.ig-icon-circle {
    width: 45px;
    /* Increased from 35px */
    height: 45px;
    /* Increased from 35px */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 4. Increasing the Text Size */
.ig-text {
    font-size: 1.3rem;
    /* Increased from 1.1rem for better readability */
    padding: 0 25px 0 15px;
    /* More breathing room for the text */
}

/* Keep your existing color logic below */
.ig-pill:hover {
    transform: scale(1.1);
}

/* Slightly bigger hover effect */

.ig-pill {
    background-image: linear-gradient(white, white), linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    background-origin: border-box;
    background-clip: content-box, border-box;
}

.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.fb-border {
    background-image: linear-gradient(white, white), linear-gradient(45deg, #1877F2, #0056b3);
}

.facebook {
    background: #1877F2;
}

.fb-color {
    color: #1877F2;
}

.x-border {
    background-image: linear-gradient(white, white), linear-gradient(45deg, #000000, #444444);
}

.x-bg {
    background: #000;
}

.x-color {
    color: #000;
}

.yt-border {
    background-image: linear-gradient(white, white), linear-gradient(45deg, #FF0000, #b30000);
}

.youtube {
    background: #FF0000;
}

.yt-color {
    color: #FF0000;
}

/* --- LinkedIn Styling --- */
.li-border {
    background-image: linear-gradient(white, white), linear-gradient(45deg, #0077B5, #004182);
}

.linkedin {
    background: #0077B5;
}

.li-color {
    color: #0077B5;
}


/* Ensure the 'in' text is positioned perfectly */
.linkedin span {
    margin-bottom: 2px;
    /* Slight adjustment for font baseline */
}

/* Optional: Add a subtle pulse to attract attention */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Adjust for Mobile so it doesn't block content */
@media screen and (max-width: 600px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 40px;
        right: 40px;
    }
}

/* Sticky Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    background: rgba(15, 23, 42, 0.8);
    /* Semi-transparent dark */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    /* Glass effect */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2000;
    /* Stays above everything */
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0066cc;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #10b981;
    /* Matches your green accents */
}

.nav-socials a {
    margin-left: 20px;
    text-decoration: none;
    color: #fff;
    background: #0066cc;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.nav-socials a:hover {
    transform: scale(1.05);
    background: #10b981;
}

/* Adjust top padding of the right-side so content isn't hidden behind the nav */
.right-side {
    padding-top: 100px !important;
}

/* Mobile Responsive Nav */
@media screen and (max-width: 900px) {
    .nav-links {
        display: none;
        /* Usually hidden behind a hamburger menu on mobile */
    }

    .navbar {
        padding: 0 20px;
    }
}

/* --- 1. NAVBAR LAYOUT --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex !important;
    justify-content: space-between !important;
    /* Pushes left group and right group apart */
    align-items: center;
    padding: 0 30px !important;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
}

/* --- 2. LEFT GROUP (Bars + Logo) --- */
.nav-left-group {
    display: flex;
    align-items: center;
    gap: 10px;
    /* This controls the tight space between bars and G */
}

.menu-bars {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
    z-index: 2001;
}

.menu-bars span {
    width: 100%;
    height: 3px;
    background-color: #0066cc;
    /* Blue color for the bars */
    border-radius: 4px;
}

/* --- 3. TRANSLUCENT SIDEBAR --- */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    /* Hidden off-screen */
    width: 280px;
    height: 100%;
    background: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(40px) saturate(150%) !important;
    /* Strong frosted glass */
    -webkit-backdrop-filter: blur(40px) saturate(150%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    padding: 80px 30px;
}

.sidebar.active {
    left: 0;
    /* Slides into view */
}

.sidebar-links a {
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    padding: 15px 0;
    display: block;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
}

/* Styling for the sidebar title */
.sidebar-title {
    color: #0066cc;
    /* Matches your logo and bars */
    font-size: 1.8rem;
    margin-bottom: 30px;
    /* Space before the links start */
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    /* Subtle divider */
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

/* Ensure the sidebar padding is adjusted for the new title */
.sidebar {
    /* ... existing styles ... */
    padding: 40px 30px;
    /* Slightly reduced top padding */
}

/* --- SIDEBAR LINK HOVER EFFECT --- */
.sidebar-links a {
    color: white;
    /* Original color */
    text-decoration: none;
    font-size: 1.4rem;
    padding: 15px 0;
    display: block;
    /* Smoothly fades the color change over 0.3 seconds */
    transition: color 0.3s ease;
}

/* This is the part that changes the color to green on hover */
.sidebar-links a:hover {
    color: #10b981 !important;
    /* Turns letters Green */
    padding-left: 10px;
    /* Optional: subtle slide effect to the right */
}

/* --- LIGHT MODE SIDEBAR OVERRIDES --- */

/* Changes letters to black in Light Mode */
body.light-mode .sidebar-links a {
    color: #000000 !important; 
}

/* Changes the Sidebar Title to black in Light Mode */
body.light-mode .sidebar-title {
    color: #000000 !important;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Ensures the hover effect still works in Light Mode */
body.light-mode .sidebar-links a:hover {
    color: #10b981 !important; /* Stays green on hover */
}

/* Adjusts the Close Button for Light Mode visibility */
body.light-mode .close-btn {
    color: #000000 !important;
}

/* --- TEXT LOGO STYLING --- */
.logo-text {
    color: white;
    font-weight: 900;
    font-size: 1.2rem;
    font-family: 'Arial Black', sans-serif;
    line-height: 1;
}

/* Ensure the circles have their background colors */
.leetcode { background: #FFA116; }
.github { background: #181717; }
.hackerrank { background: #2EC866; }
.codechef { background: #5B4638; }

/* Keep the pill borders consistent */
.lc-border { background-image: linear-gradient(white, white), linear-gradient(45deg, #FFA116, #FBBC05); }
.gh-border { background-image: linear-gradient(white, white), linear-gradient(45deg, #333, #000); }
.hr-border { background-image: linear-gradient(white, white), linear-gradient(45deg, #2EC866, #1BA050); }
.cc-border { background-image: linear-gradient(white, white), linear-gradient(45deg, #5B4638, #3E2B20); }
/* footer end */

footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)),
        url('Desktop image.png') center/cover no-repeat fixed;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .brand-name {
    display: block;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links ul a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1001;
    }

    .mobile-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--text-light);
        transition: var(--transition);
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    section {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .about-founder {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .founder-img-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .founder-img {
        max-width: 280px;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .about-content p {
        text-align: center;
    }

    .idea-container {
        padding: 2rem 1.5rem;
    }

    .projects-grid {
        gap: 1.5rem;
    }
}
