/* Version: 1.0.1 */
:root {
  --primary-color: #2563eb;
  --text-color: #1f2937;
  --bg-color: #ffffff;
  --secondary-bg: #f3f4f6;
  --accent-color: #3b82f6;
  --border-color: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --nav-bg: #ffffff;
  --nav-text: #1f2937;
  --footer-bg: #1f2937;
  --footer-text: #f9fafb;
  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --card-hover: #f3f4f6;
  --section-bg: #f9fafb;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --card-box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --dark-card-bg: #1e3a8a;  /* Dark blue for cards in dark theme */
  --dark-card-border: #2563eb;
  --dark-card-hover: #1e40af;
}

[data-theme="dark"] {
  --primary-color: #60a5fa;
  --text-color: #f3f4f6;
  --bg-color: #0a192f;  /* Dark navy background */
  --secondary-bg: #112240;  /* Slightly lighter navy */
  --accent-color: #3b82f6;
  --border-color: #1d3a5f;  /* Navy border */
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --nav-bg: #0a192f;  /* Dark navy navbar */
  --nav-text: #ffffff;
  --footer-bg: #0a192f;  /* Dark navy footer */
  --footer-text: #ffffff;
  --card-bg: #112240;  /* Navy card background */
  --card-border: #1d3a5f;  /* Navy border */
  --card-hover: #1a365d;  /* Darker navy on hover */
  --section-bg: #0a192f;  /* Dark navy section background */
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  --card-box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  z-index: 1001;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

/* Dark Mode Specific Styles */
[data-theme="dark"] .navbar {
  background: var(--nav-bg) !important;
  box-shadow: var(--box-shadow);
}

[data-theme="dark"] #home {
  position: relative;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background-color: var(--bg-color);
}

[data-theme="dark"] .bg-image {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

[data-theme="dark"] .bg-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 25, 47, 0.85);
  z-index: 1;
}

[data-theme="dark"] .bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  position: relative;
  z-index: 0;
}

[data-theme="dark"] .profile-info {
  background: rgba(17, 34, 64, 0.8);
  backdrop-filter: blur(5px);
}

[data-theme="dark"] .education-grid {
  background-color: #112240;  /* Navy background */
}

[data-theme="dark"] .skills-container {
  background-color: #112240;  /* Navy background */
}

[data-theme="dark"] .contact-content {
  background: #112240;  /* Navy background */
}

[data-theme="dark"] .skill-category,
[data-theme="dark"] .project-card,
[data-theme="dark"] .achievement-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-box-shadow);
}

[data-theme="dark"] .contact-form {
  background: rgba(17, 34, 64, 0.9);  /* Semi-transparent navy */
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-color);
}

[data-theme="dark"] .contact-form button {
  background: var(--primary-color);
  color: #ffffff;
}

[data-theme="dark"] .contact-form button:hover {
  background: #1d4ed8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
/* Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #1a1a1a !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  height: 60px;
}
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
}
.logo {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
  transition: color 0.3s;
}
.logo:hover {
  color: #60a5fa;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: #60a5fa;
}
.right-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}
/* Section Styles */
.section {
  padding: 6rem 0;
  background-color: var(--section-bg);
  position: relative;
  z-index: 1;
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--text-color);
}
/* Home Section */
#home {
  position: relative;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background-color: var(--bg-color);
}

.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

.bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  position: relative;
}

.home-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  min-height: 100vh;
  padding: 6rem 0;
}

.profile-info {
  flex: 1;
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.7);
  padding: 2rem;
  border-radius: 1rem;
  backdrop-filter: blur(5px);
}

.profile-info h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
  background: linear-gradient(45deg, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile-info h2 {
  font-size: 1.5rem;
  color: #60a5fa;
  margin-bottom: 1rem;
  font-weight: 600;
}

.profile-info p {
  color: #e2e8f0;
  line-height: 1.6;
}

.profile-info .contact-info {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-info .contact-info p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #e2e8f0;
  font-size: 1.1rem;
}

.profile-info .contact-info i {
  color: #60a5fa;
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.profile-info .cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, #60a5fa, #3b82f6);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  margin-top: 1rem;
}

.profile-info .cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  background: linear-gradient(45deg, #3b82f6, #2563eb);
}

.profile-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.profile-image img {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: var(--shadow);
}
/* Education Section */
.education-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background-color: #f3f4f6;
  padding: 4rem 1rem;
  width: 100%;
  overflow-x: hidden;
}

.education-section {
  width: 100%;
  position: relative;
  padding: 2rem 0;
  background-color: #f3f4f6;
}

.education-grid::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-color);
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.3;
}

.education-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--card-box-shadow);
  margin-bottom: 3rem;
  position: relative;
  width: 80%;
  max-width: 600px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid var(--primary-color);
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.education-card::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.education-card::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.education-card:nth-child(odd) {
  align-self: flex-start;
  margin-left: 10%;
}

.education-card:nth-child(even) {
  align-self: flex-end;
  margin-right: 10%;
  border-left: none;
  border-right: 4px solid var(--primary-color);
}

.education-card:nth-child(odd)::before {
  right: -60px;
}

.education-card:nth-child(even)::before {
  left: -60px;
}

.education-card:nth-child(odd)::after {
  right: -40px;
}

.education-card:nth-child(even)::after {
  left: -40px;
}

.education-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.education-card h4 {
  margin-bottom: 1rem;
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: 500;
}

.education-card .date {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 1rem;
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 1rem;
  font-size: 0.9rem;
}

.education-card .gpa {
  font-weight: bold;
  color: var(--accent-color);
  display: inline-block;
  margin-left: 1rem;
  padding: 0.25rem 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 1rem;
  font-size: 0.9rem;
}

/* Responsive styles for education section */
@media (max-width: 992px) {
  .education-card {
    width: 85%;
  }
  
  .education-card:nth-child(odd) {
    margin-left: 5%;
  }
  
  .education-card:nth-child(even) {
    margin-right: 5%;
  }
}

@media (max-width: 768px) {
  .education-grid {
    padding: 3rem 0.5rem;
  }

  .education-grid::before {
    left: 30px;
  }

  .education-card {
    width: calc(100% - 60px);
    margin-left: 60px !important;
    margin-right: 0 !important;
    border-left: 4px solid var(--primary-color);
    border-right: none;
    padding: 1.5rem;
  }

  .education-card:nth-child(odd),
  .education-card:nth-child(even) {
    align-self: flex-start;
    margin-left: 60px !important;
    margin-right: 0 !important;
  }

  .education-card::before {
    left: -60px !important;
    right: auto !important;
    width: 16px;
    height: 16px;
  }

  .education-card::after {
    left: -40px !important;
    right: auto !important;
    width: 30px;
  }

  .education-card:nth-child(even)::before,
  .education-card:nth-child(even)::after {
    left: -60px;
  }

  .education-card h3 {
    font-size: 1.3rem;
  }

  .education-card h4 {
    font-size: 1.1rem;
  }

  .education-card .date,
  .education-card .gpa {
    font-size: 0.85rem;
    padding: 0.2rem 0.6rem;
  }
}

@media (max-width: 480px) {
  .education-grid {
    padding: 2rem 0.5rem;
  }

  .education-card {
    width: calc(100% - 50px);
    margin-left: 50px !important;
    padding: 1.25rem;
  }

  .education-card::before {
    left: -50px !important;
    width: 14px;
    height: 14px;
  }

  .education-card::after {
    left: -35px !important;
    width: 25px;
  }

  .education-card:nth-child(even)::before,
  .education-card:nth-child(even)::after {
    left: -50px;
  }

  .education-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
  }

  .education-card h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .education-card .date,
  .education-card .gpa {
    font-size: 0.8rem;
    padding: 0.15rem 0.5rem;
    margin-bottom: 0.75rem;
  }

  .education-card .gpa {
    margin-left: 0.5rem;
  }
}

/* Fix for very small screens */
@media (max-width: 360px) {
  .education-card {
    width: calc(100% - 40px);
    margin-left: 40px !important;
    padding: 1rem;
  }

  .education-card::before {
    left: -40px !important;
    width: 12px;
    height: 12px;
  }

  .education-card::after {
    left: -30px !important;
    width: 20px;
  }

  .education-card:nth-child(even)::before,
  .education-card:nth-child(even)::after {
    left: -40px;
  }
}
/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #f3f4f6;
}
.skill-category {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--card-box-shadow);
  transition: transform 0.3s ease;
}
.skill-category:hover {
  transform: translateY(-5px);
}
.skill-category h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-align: center;
}
.skill-item {
  margin: 1.2rem 0;
}
.skill-item span {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}
.progress {
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  border-radius: 4px;
  transition: width 1s ease-in-out;
  width: 0;
}
/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.project-card {
  background: var(--card-bg);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--card-box-shadow);
  position: relative;
  z-index: 1;
}
.project-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  object-position: center;
  border-radius: 0.5rem 0.5rem 0 0;
  background-color: #f8f9fa;
  padding: 0.5rem;
}
.project-info {
  padding: 1rem;
}
.project-info h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.project-info p {
  color: var(--text-color);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.project-link {
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: color 0.3s;
}
.project-link:hover {
  color: var(--accent-color);
}
/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  background: var(--section-bg);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: var(--text-color);
}

.contact-info p {
  color: var(--text-color);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 0.5rem;
  position: relative;
  z-index: 1;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  background: var(--card-bg);
  color: var(--text-color);
}

.contact-form button {
  padding: 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.3s;
  font-weight: 600;
}

.contact-form button:hover {
  background: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.social-links a {
  color: var(--text-color);
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--primary-color);
}
/* Footer */
footer {
  background: var(--footer-bg);
  padding: 2rem 0;
  text-align: center;
  color: var(--footer-text);
  position: relative;
  z-index: 2;
  width: 100%;
}

[data-theme="dark"] footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  position: relative;
  z-index: 2;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .home-content {
    gap: 2rem;
  }
  
  .profile-image img {
    width: 350px;
    height: 350px;
  }
}

@media (max-width: 992px) {
  .home-content {
    flex-direction: column;
    text-align: center;
    padding-top: 6rem;
  }

  .profile-info {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .profile-image {
    margin-top: 2rem;
  }

  .profile-image img {
    width: 300px;
    height: 300px;
  }

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

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-content {
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .logo {
    font-size: 1.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .right-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
    position: absolute;
    top: 60px;
    left: 0;
    background: var(--nav-bg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 0.5rem;
    color: var(--nav-text);
    font-weight: 500;
  }

  .nav-links a:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  [data-theme="dark"] .nav-links a {
    color: #ffffff;
  }

  [data-theme="dark"] .nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

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

  .profile-info h1 {
    font-size: 2.5rem;
  }

  .profile-info h2 {
    font-size: 1.25rem;
  }

  .education-card {
    width: 80%;
    max-width: 600px;
  }

  .education-card:nth-child(even) {
    align-self: flex-end;
  }

  .education-card:nth-child(odd) {
    align-self: flex-start;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .achievements-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
    padding: 1rem;
  }
  
  .achievement-card {
    width: 100%;
    max-width: 100%;
  }
}

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

  .section {
    padding: 4rem 0;
  }

  .profile-info h1 {
    font-size: 2rem;
  }

  .profile-image img {
    width: 250px;
    height: 250px;
  }

  .education-card {
    width: 95%;
    padding: 1.5rem;
  }

  .skill-category {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.75rem;
  }

  .social-links {
    justify-content: center;
  }

  .achievements-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
}

/* Fix for mobile navigation */
@media (max-width: 768px) {
  .navbar {
    position: relative;
  }

  .nav-links {
    padding: 1rem 0;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .theme-toggle {
    font-size: 1rem;
  }
}

/* Fix for landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .home-content {
    padding-top: 4rem;
  }

  .profile-image img {
    width: 200px;
    height: 200px;
  }
}

/* Fix for tablets in portrait mode */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .home-content {
    padding-top: 5rem;
  }

  .profile-image img {
    width: 280px;
    height: 280px;
  }
}

/* Fix for high-resolution displays */
@media (min-resolution: 192dpi) {
  .profile-image img,
  .project-card img,
  .achievement-image img {
    image-rendering: -webkit-optimize-contrast;
  }
}
/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.section {
  animation: fadeIn 1s ease-out;
}
/* Achievements Section */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 1rem;
}
.achievement-card {
  background: var(--card-bg);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--card-box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}
.achievement-image {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.achievement-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  display: block;
}
.achievement-card:hover .achievement-image img {
  transform: scale(1.05);
}
.achievement-content {
  padding: 1.5rem;
}
.achievement-content h3 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  line-height: 1.4;
}
.achievement-link-inline {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
}
.achievement-link-inline::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.achievement-link-inline:hover {
  color: var(--accent-color);
}
.achievement-link-inline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.achievement-content .date {
  color: var(--accent-color);
  font-style: italic;
  margin-bottom: 1rem;
}
.achievement-details {
  list-style: none;
  margin: 1rem 0;
}
.achievement-details li {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}
.achievement-details li::before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: 0;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Stagger animation for achievement cards */
.achievement-card:nth-child(1) {
  animation-delay: 0.2s;
}
.achievement-card:nth-child(2) {
  animation-delay: 0.4s;
}
.achievement-card:nth-child(3) {
  animation-delay: 0.6s;
}
/* Notification Styles */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}
.notification.show {
  transform: translateY(0);
  opacity: 1;
}
.notification i {
  font-size: 1.2rem;
}
.notification.error {
  background: #ef4444;
}
.loading-more {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--card-box-shadow);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.8s;
  width: 100%;
  height: 100%;
  min-height: 300px;
  justify-content: center;
  grid-column: 1 / -1;
}
.loading-more:hover {
  transform: translateY(-5px);
}
.loading-icon {
  display: flex;
  gap: 1rem;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.loading-icon i {
  animation: bounce 1s infinite;
}
.loading-icon i:nth-child(2) {
  animation-delay: 0.2s;
}
.loading-icon i:nth-child(3) {
  animation-delay: 0.4s;
}
.loading-more h3 {
  color: var(--text-color);
  font-size: 1.5rem;
  margin: 0;
}
.loading-more p {
  color: var(--accent-color);
  margin: 0;
  font-style: italic;
}
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
/* Mobile Menu Styles */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    right: 1rem;
    top: 1rem;
  }

  .nav-content {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--nav-bg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 0.5rem;
  }

  .theme-toggle {
    position: relative;
    margin: 0;
    padding: 0.5rem;
  }
}

/* Universal responsive rules */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

.container, .section, .education-grid, .skills-container, .projects-grid, .achievements-grid, .contact-content {
  width: 100%;
  box-sizing: border-box;
}

/* Prevent horizontal scroll */
body {
  overflow-x: hidden;
}

/* Responsive font sizes */
html {
  font-size: 16px;
}
@media (max-width: 1200px) {
  html { font-size: 15px; }
}
@media (max-width: 992px) {
  html { font-size: 14px; }
}
@media (max-width: 768px) {
  html { font-size: 13px; }
}
@media (max-width: 576px) {
  html { font-size: 12px; }
}

/* Responsive padding for sections */
.section {
  padding: 6rem 0;
}
@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }
}
@media (max-width: 576px) {
  .section {
    padding: 2.5rem 0;
  }
}

/* Responsive cards and grids */
.education-card, .skill-category, .project-card, .achievement-card {
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .education-card, .skill-category, .project-card, .achievement-card {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Responsive contact form */
.contact-form input, .contact-form textarea, .contact-form button {
  width: 100%;
  box-sizing: border-box;
}

/* Touch-friendly buttons */
button, .cta-button, .contact-form button, .theme-toggle, .menu-toggle {
  min-height: 44px;
  min-width: 44px;
  font-size: 1rem;
}

/* Hide scrollbars on mobile */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    display: none;
  }
  body {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

/* Ensure no horizontal scroll on any container */
.container, .section, .education-grid, .skills-container, .projects-grid, .achievements-grid, .contact-content {
  overflow-x: hidden;
}

main {
  flex: 1;
}

@media (max-width: 768px) {
  .project-card img {
    height: 120px;
    padding: 0.25rem;
  }
} 