/*
 * FUTURISTIC BLUE PORTFOLIO STYLES
 * By Gemini AI for D. SK Rithesh
 * --- UPDATED FOR WHITE TEXT & CV BUTTON ---
 */

/* === ROOT VARIABLES & GENERAL STYLES === */
:root {
    --primary-color: #0077ff; /* Bright Blue */
    --secondary-color: #00bfff; /* Sky Blue */
    --dark-bg: #121212; /* Dark background */
    --dark-card: #1f1f1f; /* Dark card background */
    --text-light: #ffffff;
    --text-dark: #333333;
    --glass-effect: rgba(255, 255, 255, 0.05); /* Light transparent for dark mode */
    --shadow-dark: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --border-dark: 1px solid rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(18, 18, 18, 0.9); /* Semi-transparent dark for nav */

    /* Default (Dark Mode) Variables */
    --bg-color: var(--dark-bg); /* Use dark background */
    --card-color: var(--dark-card); 
    --text-color: var(--text-light); /* **Set text color to white** */
}

/* Base Dark Mode */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding-top: 120px; /* Space for fixed navbar */
    line-height: 1.6;
    scroll-behavior: smooth;
    transition: background-color 0.4s, color 0.4s;
}

/* Light Mode Override */
body.light-mode {
    --bg-color: #f4f7fa;
    --card-color: #ffffff;
    --text-color: var(--text-dark); /* Text switches to dark in light mode */
    --glass-effect: rgba(0, 0, 0, 0.05); /* Dark transparent for light mode */
    --shadow-dark: 0 4px 15px 0 rgba(0, 0, 0, 0.1);
    --border-dark: 1px solid rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.9); /* Semi-transparent white for nav */
}

/* Futurstic Animated Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--dark-bg); 
    transition: background-color 0.4s;
}

body.light-mode #particles-js {
    background-color: var(--bg-color); 
}

/* Glass-Morphism Effect */
.glass-effect {
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: var(--border-dark);
    box-shadow: var(--shadow-dark);
    padding: 20px;
    margin-bottom: 20px;
}

/* === NAVIGATION BAR STYLES === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 15px 30px;
    background: var(--nav-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.right-actions{
    display: flex;
    align-items: center;
    gap: 12px;   /* spacing between buttons */
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-right: auto; 
    padding-left: 15px;
    white-space: nowrap; /* prevent wrapping */
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    position: absolute; 
    left: 50%;
    transform: translateX(-50%);
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light); /* Always white in dark mode */
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

body.light-mode .nav-links a {
    color: var(--text-dark); /* Dark text in light mode */
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Underline effect on hover */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
}

/* === UTILITY STYLES === */
.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Call to Action Button */
.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    margin-right: 10px; /* Space between the two buttons */
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Secondary Button Style (Download CV) */
.secondary-button {
    background: none; /* Transparent background */
    border: 2px solid var(--primary-color); /* Blue border */
    color: var(--primary-color); /* Blue text */
    margin-right: 0;
}

.secondary-button:hover {
    background: var(--primary-color);
    color: var(--text-light); /* White text on hover */
    transform: translateY(-2px);
}

.secondary-button i {
    margin-right: 5px;
}

/* === HERO/PROFILE CARD === */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 70px); 
    text-align: center;
}

.profile-card {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 0 50px rgba(0, 119, 255, 0.5); 
    transition: background 0.4s;
}

body.light-mode .profile-card {
    background: var(--card-color);
    box-shadow: 0 10px 30px rgba(0, 119, 255, 0.2);
}

.photo-container {
    margin-bottom: 25px;
    display: inline-block;
    border-radius: 15px; 
    overflow: hidden;
    padding: 5px;
    border: 3px solid var(--primary-color);
}

.profile-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 10px; 
}

h1 {
    font-size: 3em;
    margin: 0 0 10px 0;
}

.profession {
    color: var(--secondary-color);
    font-size: 1.2em;
    margin-bottom: 20px;
}

.social-links a {
    color: var(--primary-color);
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* === ABOUT SECTION === */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
}

.about-content p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* === SKILLS SECTION === */
.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.skill {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    height: 30px;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.skill p {
    position: absolute;
    z-index: 2;
    color: var(--text-light);
    padding-left: 10px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.skill span {
    content: '';
    position: absolute;
    height: 100%;
    width: var(--level); 
    background: var(--primary-color);
    transition: width 1s ease-in-out;
    z-index: 1;
    border-radius: 5px;
}

/* === SKILL SECTION 1 === */

.skill-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.skill-card {
    background: rgba(255,255,255,0.06);
    padding: 25px;
    text-align: center;
    border-radius: 14px;
    border: 1px solid rgba(0,153,255,0.25);
    transition: 0.3s ease-in-out;
}

.skill-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 0 18px rgba(0,153,255,0.3);
}

.skill-card i {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.skill-card h4 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}
.skill-card p {
    opacity: .8;
    font-size: .95rem;
}
/* === SKILLS SECTION 2 === */

.chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.skill-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.skill-card {
    background: rgba(255,255,255,0.06);
    padding: 25px;
    text-align: center;
    border-radius: 14px;
    border: 1px solid rgba(0,153,255,0.25);
    transition: 0.3s ease-in-out;
}

.skill-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 0 18px rgba(0,153,255,0.3);
}

.skill-card i {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.skill-card h4 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}
.skill-card p {
    opacity: .8;
    font-size: .95rem;
}

/* === PROJECTS/SERVICES SECTION === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-category {
    padding: 25px;
}

.project-category h3 {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-top: 0;
    font-size: 1.4em;
}

.project-category ul {
    list-style: none;
    padding: 0;
}

.project-category li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.project-category li i {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-top: 4px;
}

/* === CONTACT SECTION === */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: var(--border-dark);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1em;
    transition: border-color 0.3s;
}

body.light-mode .contact-form input,
body.light-mode .contact-form textarea {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

body.light-mode .contact-form input::placeholder,
body.light-mode .contact-form textarea::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

/* === CHATBOT STYLES === */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chatbot-toggle {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.5);
    transition: background 0.3s, transform 0.2s;
}

.chatbot-toggle:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.chatbot-box {
    width: 300px;
    height: 400px;
    background: var(--dark-card);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 119, 255, 0.3);
    position: absolute;
    bottom: 70px;
    right: 0;
    display: none; 
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--primary-color);
}

body.light-mode .chatbot-box {
    background: var(--card-color);
    border: 1px solid var(--primary-color);
}

.chatbot-box.open {
    display: flex;
}

.chatbot-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, 0.1);
}

body.light-mode .chatbot-messages {
    background: rgba(0, 0, 0, 0.05);
}

.message {
    padding: 10px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
    font-size: 0.9em;
}

.bot-message {
    background: var(--primary-color);
    color: var(--text-light);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.user-message {
    background: var(--secondary-color);
    color: var(--text-light);
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.chatbot-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--primary-color);
}

#chatbot-input {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

body.light-mode #chatbot-input {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

#chatbot-send {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 10px;
    margin-left: 5px;
    border-radius: 5px;
    cursor: pointer;
}

/* === THEME TOGGLE BUTTON === */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 15px;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    z-index: 101; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* === MEDIA QUERIES (RESPONSIVENESS for NAV) === */
@media (max-width: 768px) {
    /* Two CTA buttons stacked on mobile */
    .cta-button {
        display: block;
        width: 80%;
        margin: 10px auto;
    }
    .secondary-button {
        margin-top: 5px;
    }
    
    /* Reset desktop centering for mobile */
    .navbar {
        justify-content: space-between;
    }
    .logo {
        margin-right: 0;
        padding-left: 0;
    }
    .nav-links {
        position: static;
        transform: none;
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 65px; 
        left: 0;
        background: var(--nav-bg);
        border-top: 1px solid var(--primary-color);
        padding: 10px 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 10px 20px;
        color: var(--text-light);
    }
    
    body.light-mode .nav-links a {
        color: var(--text-dark);
    }

    .menu-toggle {
        display: block;
    }
    
    .theme-toggle {
        right: 80px;
    }
}
/* =========================
   EXTRA RESPONSIVE FIXES
   ========================= */

@media (max-width: 768px) {

    /* Reduce large title size */
    h1 {
        font-size: 2em;
    }

    .profession {
        font-size: 1em;
    }

    .profile-photo {
        width: 140px;
        height: 140px;
    }

    .profile-card {
        width: 90%;
        padding: 25px;
    }

    .section-title {
        font-size: 1.8em;
    }

    /* Make About text easier to read on small screen */
    .about-content p {
        font-size: 1em;
        line-height: 1.5;
    }

    /* Reduce padding so no empty space */
    .section {
        padding: 40px 10px;
    }

    /* Projects Grid spacing fix */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Skills bars spacing */
    .skill {
        height: 25px;
    }

    .skill p {
        font-size: 0.9em;
    }

    /* Contact form full width */
    .contact-form input,
    .contact-form textarea,
    .cta-button {
        width: 100%;
    }

    /* Fix chatbot overlapping on mobile */
    .chatbot-container {
        bottom: 10px;
        right: 10px;
    }

    .chatbot-box {
        width: 260px;
        height: 360px;
    }
}


/* =========================
   EXTREME SMALL DEVICES
   (Phones under 450px width)
   ========================= */

@media (max-width: 450px) {

    h1 {
        font-size: 1.6em;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
    }

    .profile-card {
        padding: 20px;
    }

    .chatbot-toggle {
        padding: 10px 15px;
        font-size: 0.85em;
    }

    .cta-button {
        padding: 10px;
        font-size: 0.9em;
    }
}
/* 2-column layout for Personal Info */
.personal-info .row {
  display: flex !important;
  flex-wrap: wrap;
}
.personal-info .info-item {
  width: 50% !important;
}
@media (max-width: 600px) {
  .personal-info .info-item {
    width: 100% !important;
  }
}

/* 2-column layout for Education & Experience */
.edu-exp-container {
  display: flex;
  gap: 25px;
}
.education, .experience {
  width: 50%;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  .edu-exp-container {
    flex-direction: column;
  }
  .education, .experience {
    width: 100%;
  }
}
/* ---------- Personal Info Table Style (Theme Enabled) ---------- */
.personal-info {
  margin-top: 30px;
}

.personal-info .title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  color: var(--text-color);
}

.info-table tr {
  border-bottom: 1px solid var(--border-dark);
}

.info-table td {
  padding: 10px 5px;
  color: var(--text-color);
}

.info-table td:first-child {
  font-weight: 600;
  width: 180px;
  color: var(--primary-color);
}

.info-table td:nth-child(2) {
  width: 10px;
  text-align: center;
  color: var(--primary-color);
}

@media (max-width: 600px) {
  .info-table td:first-child {
    width: 120px;
  }
}

/* ---------- Education & Experience Table Style (Theme Enabled) ---------- */
.edu-exp-container {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

.education, .experience {
  flex: 1;
}

.education .title, .experience .title {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.info-table small {
  color: var(--text-color);
  font-size: 13px;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .edu-exp-container {
    flex-direction: column;
  }
}

/* ---------- About Section Three Columns ---------- */
.about-wrapper {
  display: flex;
  gap: 35px;
  margin-top: 20px;
}

.about-column {
  width: 33%;
}

.sub-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-color);
  font-size: 15px;
}

.info-table td {
  padding: 6px 0;
  vertical-align: top;
}

.info-table td:first-child {
  width: 135px;
  font-weight: 500;
  color: var(--primary-color);
}

.info-table td:nth-child(2) {
  width: 20px;
  font-weight: bold;
  text-align: center;
  color: var(--primary-color);
}

.info-table small {
  display: block;
  color: var(--text-color);
  opacity: 0.7;
  font-size: 12px;
}

/* Hire Me Button */
.hire-btn-container {
  text-align: center;
  margin-top: 35px;
}

@media (max-width: 900px) {
  .about-wrapper {
    flex-direction: column;
  }
  .about-column {
    width: 100%;
  }
}
.about-row {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.about-column {
  width: 32%;
  background: rgba(255,255,255,0.05);
  padding: 18px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.about-column h3 {
  margin-bottom: 12px;
  font-size: 18px;
  border-bottom: 1px solid var(--neon);
  padding-bottom: 6px;
}

.info-table {
  width: 100%;
  border-spacing: 0 8px;
}

.info-table td:first-child {
  font-weight: 600;
}

.hire-btn-container {
  margin-top: 35px;
  text-align: center;
}
/* =========================================================
   🌍 RESPONSIVE DESIGN SYSTEM FOR FULL WEBSITE
   Supports: 320px → 4K screens
========================================================= */

/* ---------- GLOBAL FIX ---------- */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* ---------- NAVIGATION RESPONSIVE ---------- */

.navbar {
    padding: 12px 20px;
}

.nav-links {
    display: flex;
    gap: 30px;
    transition: .3s ease-in-out;
}

.menu-toggle {
    display: none;
}

/* Mobile Nav */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 70px;
        right: -100%;
        width: 100%;
        flex-direction: column;
        background: rgba(0,0,0,0.9);
        text-align: center;
        padding: 30px 0;
        border-radius: 10px;
        transition: .4s;
    }

    .nav-links.open {
        right: 0;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 22px;
    }
}

/* ---------- TEXT RESIZING FOR MOBILE ---------- */
h1, h2 {
    line-height: 1.2;
}

@media (max-width: 768px) {
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    p, li, label { font-size: 15px; }
}

/* ---------- CONTACT FORM RESPONSIVE ---------- */
/* ===== CONTACT SECTION ===== */

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 35px;
    border-radius: 15px;
}

.contact-info {
    width: 40%;
}

.contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.contact-info p {
    opacity: 0.85;
    font-size: 1rem;
}

.contact-details p {
    margin: 12px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-details i {
    color: var(--primary-color);
}

/* Social Icons */
.contact-social {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.contact-social a {
    color: var(--text-color);
    font-size: 1.4rem;
    transition: 0.3s;
}

.contact-social a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    width: 55%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px 45px;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    transition: 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

/* Center button container */
.submit-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

/* Button Style */
.submit-btn {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: 6px;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s ease;
}

/* Hover Effect */
.submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}


/* Mobile Responsive */
@media(max-width: 900px) {
    .contact-container {
        flex-direction: column;
        width: 100%;
    }
    .contact-info, .contact-form {
        width: 100%;
    }
}

/* ---------- GRID SECTIONS RESPONSIVE (Skills / About / Projects) ---------- */
section {
    padding: 50px 20px;
}

.grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- CHATBOT RESPONSIVE ---------- */
.chatbot-box {
    width: 350px;
}

@media (max-width: 480px) {
    .chatbot-box {
        width: 95%;
        bottom: 10px;
        right: 10px;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--primary-color);
    padding: 35px 20px;
    text-align: center;
    margin-top: 60px;
    box-shadow: 0 -5px 25px rgba(0, 119, 255, 0.2);
}

body.light-mode .footer {
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid var(--primary-color);
}

.footer h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.footer p {
    opacity: 0.8;
    font-size: 0.95rem;
    margin: 5px 0;
    color: var(--text-color);
}

/* Social Icons */
.footer-social {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    gap: 18px;
}

.footer-social a {
    font-size: 1.3rem;
    color: var(--text-color);
    transition: 0.3s;
}

.footer-social a:hover {
    color: var(--secondary-color);
    transform: translateY(-4px);
    text-shadow: 0 0 10px var(--secondary-color);
}

/* Bottom Bar */
.footer-bottom {
    margin-top: 18px;
    padding-top: 10px;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
    border-top: 1px solid rgba(255,255,255,0.1);
}

body.light-mode .footer-bottom {
    opacity: 0.9;
}

/* ---------- BUTTONS ---------- */
button, .cta-button {
    width: auto;
}

@media (max-width: 480px) {
    button, .cta-button {
        width: 100%;
    }
}
/* =========================================================
   🌍 FULL RESPONSIVE SYSTEM (FINAL VERSION)
   Works for 320px → 4K Screens
========================================================= */

/* Base Fix */
* {
    box-sizing: border-box;
}
body {
    overflow-x: hidden;
}

/* ----------- GLOBAL TEXT SCALING ----------- */
@media (max-width: 1024px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
    p, li { font-size: 1rem; }
}

/* ----------- TABLETS (768px and below) ----------- */
@media (max-width: 768px) {

    /* NAVIGATION */
    .navbar {
        justify-content: space-between;
    }
    .nav-links {
        position: absolute;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: var(--nav-bg);
        transition: 0.35s ease-in-out;
        padding: 25px 0;
        border-radius: 10px;
    }
    .nav-links.open { left: 0; }
    .menu-toggle { display: block; }

    /* HERO + PHOTO CARD */
    .hero {
        padding: 40px 15px;
    }
    .profile-card {
        width: 95%;
        text-align: center;
        padding: 25px;
    }
    .profile-photo {
        width: 140px;
        height: 140px;
    }
    h1 {
        font-size: 1.9rem;
    }

    /* ABOUT SECTION → STACK COLUMNS */
    .about-row {
        flex-direction: column;
    }
    .about-column {
        width: 100%;
    }

    /* SKILLS + PROJECT CARDS */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* EDUCATION / EXPERIENCE STACK */
    .edu-exp-container {
        flex-direction: column;
    }

    /* CTA BUTTONS */
    .cta-button {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    /* FORM FIX */
    .contact-form {
        width: 100%;
        padding: 10px;
    }

    /* CHATBOT RESPONSIVE FIX */
    .chatbot-container {
        right: 10px;
        bottom: 15px;
    }
    .chatbot-box {
        width: 260px;
        height: 350px;
    }
}

/* ----------- SMALL PHONES (600px and below) ----------- */
@media (max-width: 600px) {

    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }

    .profile-photo {
        width: 110px;
        height: 110px;
    }

    .section {
        padding: 40px 10px;
    }

    .social-links a {
        font-size: 1.3rem;
    }

    .info-table td:first-child {
        width: 120px;
    }
}

/* ----------- EXTRA SMALL (450px and below) ----------- */
@media (max-width: 450px) {

    h1 { font-size: 1.5rem; }

    .profile-card {
        padding: 15px;
        width: 100%;
    }

    .cta-button {
        font-size: 0.9rem;
        padding: 10px;
    }

    .chatbot-toggle {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}

/* ----------- BIG SCREENS (1440px+) ----------- */
@media (min-width: 1440px) {
    .portfolio-container {
        max-width: 1400px;
    }
}

/* ----------- About ----------- */
.about-layout {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.about-text {
    width: 55%;
    min-width: 300px;
}

.about-text p {
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 18px;
    opacity: .9;
}

.hire-btn {
    margin-top: 15px;
    padding: 10px 28px;
    font-size: 1rem;
}

/* Right side column layout */
.about-info {
    width: 40%;
    min-width: 260px;
}

.info-group {
    margin-bottom: 25px;
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
    transition: .3s ease-in-out;
}

.info-group:hover {
    border-left-width: 6px;
}

.info-group h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.info-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-group ul li {
    margin-bottom: 6px;
    font-size: .95rem;
    opacity: .85;
}

/* Mobile Responsive */
@media(max-width: 950px) {
    .about-layout {
        flex-direction: column;
    }
    .about-text, .about-info {
        width: 100%;
    }
}

/* ----------- Service (Theme Aware) ----------- */

:root {
    --text-color: #ffffff;
    --heading-color: #00c9ff;
    --paragraph-opacity: 0.9;
}

.light-mode {
    --text-color: #000000;
    --heading-color: #0078ff;
    --paragraph-opacity: 1;
}

.service-section {
    margin: 20px 0;
    color: var(--text-color);
    font-family: "Poppins", sans-serif;
    transition: 0.3s ease-in-out;
}

.service-heading {
    color: var(--heading-color);
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s ease-in-out;
}

.section-line {
    border: none;
    border-bottom: 2px solid var(--heading-color);
    margin: 8px 0 25px;
    width: 100%;
    opacity: 0.7;
    transition: 0.3s ease-in-out;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 30px;
}

.icon {
    font-size: 26px;
    color: var(--heading-color);
    min-width: 30px;
    margin-top: 4px;
    transition: 0.3s ease-in-out;
}

.service-text {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.service-title {
    font-weight: 700;
    width: 220px;
    font-size: 15px;
    line-height: 20px;
    transform: translateY(2px);
    color: var(--text-color);
    transition: 0.3s ease-in-out;
}

.service-text p {
    width: 100%;
    opacity: var(--paragraph-opacity);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    transition: 0.3s ease-in-out;
}

.justify-text {
    text-align: justify;
    text-justify: inter-word;
}

@media (max-width: 768px){

    .service-text{
        flex-direction: column;
        gap: 8px;
    }

    .service-title{
        width: 100%;
    }
}

@media (max-width: 768px){
    .right-actions{
        gap: 16px;
    }
}
.mobile-toggle{
    display: none;
}

@media (max-width: 768px){

    /* hide desktop toggle */
    #theme-toggle{
        display: none;
    }

    /* show inside-menu toggle */
    .mobile-toggle{
        display: block;
        margin-top: 12px;
        text-align: center;
        width: 100%;
    }

    .mobile-toggle .theme-toggle{
        width: 80%;
        border-radius: 25px;
    }
}
body{
  background:#0b0f1c;
  color:white;
}

body.light-mode{
  background:white;
  color:#0b0f1c;
}
