:root {
  --primary-color: #4e54c8;
--gradient-bg: linear-gradient(135deg, #2b2e61, #3d2b64);
  --text-color: #f8f9fa;
  --dark-color: #222;
   --card-bg: #2c2f33;
}

/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f8f9fa;
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  background: var(--gradient-bg);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  z-index: 0;
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255,255,255,0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
}

/* Dynamic Titles */
.dynamic-titles {
  height: 60px;
  position: relative;
  margin: 0.8rem 0 1.5rem;
  overflow: hidden;
}

.title {
  position: absolute;
  width: 100%;
  font-size: 1.8rem;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  top: 0;
  left: 0;
  pointer-events: none;
}

.title.active {
  opacity: 1;
  pointer-events: auto;
}



/* Navbar Styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--dark-color);
}

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

.nav-links li a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: var(--primary-color);
}

.hero .intro {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: white;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  line-height: 1.8;
}

/* Quote Container */
.quote-container {
  margin: 2rem 0;
  position: relative;
  z-index: 1;
}

.quote {
  font-size: 1.2rem;
  font-style: italic;
  margin: 0.8rem 0;
  padding: 0.8rem 1.5rem;
  background: rgba(255,255,255,0.15);
  color: white;
  border-left: 4px solid white;
  border-radius: 0 8px 8px 0;
  display: inline-block;
  backdrop-filter: blur(5px);
}

/* Sections Common Styles */
section {
  padding: 6rem 2rem;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--dark-color);
  font-size: 2.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 0.8rem auto;
  border-radius: 2px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on desktop */
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Mobile responsive: 1 column */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.skill-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    width: 60px;
    height: 60px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-category h3 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.skill-category li:last-child {
    border-bottom: none;
}

.skill-category li::before {
    content: '▹';
    color: var(--primary-color);
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

/* Resume Section */
.resume-section {
    background-color: white;
}

.resume-container {
    max-width: 600px;
    margin: 0 auto;
}

.resume-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.resume-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.resume-preview {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(67, 97, 238, 0.05);
    border-radius: 8px;
}

.resume-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.resume-info h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.resume-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s;
    width: 100%;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
}


/* Contact Section */
.contact-section {
    background-color: #f9f9f9;
    padding: 4rem 2rem;
    text-align: center;
}

.contact-section .section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

/* Contact Buttons */
.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

.contact-button:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-button img {
    width: 24px;
    height: 24px;
}

/* Contact Form */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form label {
    font-weight: 600;
    color: var(--dark-color);
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
    width: 100%;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact-form .contact-button {
    align-self: flex-start;
    background-color: var(--primary-color);
    font-size: 1rem;
    margin-top: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2.5rem;
    background: var(--gradient-bg);
    color: white;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: rgba(255,255,255,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-form .contact-button {
        width: 100%;
    }
}
/* Mode Toggle Button */
.mode-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: 1rem;
    padding: 0.3rem;
}

.mode-btn img {
    width: 24px;
    height: 24px;
    transition: filter 0.3s ease;
}

/* Dark Mode Global Styles */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode .navbar {
    background-color: #1f1f1f;
}

body.dark-mode .section,
body.dark-mode .contact-section,
body.dark-mode .resume-section {
    background-color: #1e1e1e;
    color: white;
}

body.dark-mode input,
body.dark-mode textarea {
    background-color: #2a2a2a;
    color: white;
    border: 1px solid #444;
}

body.dark-mode .contact-button {
    background-color: #333;
}

body.dark-mode footer {
    background: #111;
    color: #ccc;
}

/* Optional: Transition Smoothness */
body,
input,
textarea,
button {
    transition: background-color 0.3s, color 0.3s;
}

@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    right: 20px;
    top: 60px;
    width: 150px;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }