/* Simplified CSS for Professional Portfolio */

:root {
  /* Core colors */
  --primary-color: #3a86ff;
  --primary-dark: #2667cc;
  --secondary-color: #ff9e3c;
  --secondary-dark: #f18a1c;

  /* Light mode variables */
  --bg-light: #f9fafb;
  --text-light: #1a1a2e;
  --text-secondary-light: #4b5563;
  --card-light: #ffffff;
  --border-light: #e5e7eb;
  --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05);

  /* Dark mode variables - defined in darkmode.css */
  --bg-dark: #1a1a2e;
  --text-dark: #f1f1f1;
  --text-secondary-dark: #d1d5db;
  --card-dark: #252a41;
  --border-dark: #2d3748;
  --shadow-dark: 0 4px 6px rgba(0, 0, 0, 0.2);

  /* Active variables (default to light mode) */
  --bg-color: var(--bg-light);
  --text-color: var(--text-light);
  --text-secondary: var(--text-secondary-light);
  --card-bg: var(--card-light);
  --border-color: var(--border-light);
  --shadow: var(--shadow-light);

  /* Spacing & sizing */
  --section-spacing: 80px;
  --container-width: 1200px;

  /* Transitions */
  --transition: all 0.3s ease;
}

/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  transition: var(--transition);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  margin-bottom: 1rem;
  font-weight: 600;
  transition: var(--transition);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.4;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul,
ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Section styling */
section {
  padding: var(--section-spacing) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.2rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title:after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  display: block;
  text-align: center;
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Header/Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
  background-color: transparent;
}

.navbar.scrolled {
  background-color: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo-text {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  margin: 0 12px;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active-link {
  color: var(--primary-color);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active-link::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  transition: var(--transition);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  font-size: 1.2rem;
  transition: var(--transition);
}

.dark-mode-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
}

.hero-intro {
  display: inline-block;
  padding: 8px 16px;
  background-color: rgba(58, 134, 255, 0.1);
  border-radius: 30px;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 15px;
}

.hero h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 20px;
}

.highlight {
  color: var(--primary-color);
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin: 30px 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-count {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 500;
  transition: var(--transition);
}

.primary-btn {
  background: var(--primary-color);
  color: white;
}

.primary-btn:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
}

.secondary-btn {
  background: rgba(58, 134, 255, 0.1);
  color: var(--text-color);
}

.secondary-btn:hover {
  background: rgba(58, 134, 255, 0.2);
  transform: translateY(-2px);
}

.primary-btn i,
.secondary-btn i {
  margin-right: 8px;
}

/* About Section - Keep Original Design */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.about-image-wrapper {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  transition: var(--transition);
}

.experience-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
}

.experience-badge .years {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.feature {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.feature-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(58, 134, 255, 0.1);
  border-radius: 10px;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.about-features {
  margin: 30px 0;
}

.personal-info {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

.info-item {
  flex: 1;
}

.info-item h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.info-item ul {
  list-style: none;
  padding: 0;
}

.info-item li {
  margin-bottom: 10px;
}

.info-item i {
  margin-right: 10px;
  color: var(--primary-color);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  background: var(--primary-color);
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 500;
  margin-top: 20px;
}

.cta-btn:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
}

.cta-btn i {
  margin-right: 8px;
}

/* Skills Section - Keep Original Design */
.skills-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.skills-text {
  max-width: 600px;
}

.skills-legend {
  display: flex;
  gap: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
}

.legend-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  margin-right: 8px;
}

.beginner {
  background: #ffd166;
}

.intermediate {
  background: #06d6a0;
}

.advanced {
  background: var(--primary-color);
}

.skill-category {
  margin-bottom: 40px;
}

.skill-category h3 {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.skill-category h3 i {
  margin-right: 10px;
  color: var(--primary-color);
}

.skill-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.skill-item {
  margin-bottom: 15px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.skill-name {
  font-weight: 500;
}

.skill-percentage {
  font-weight: 500;
  color: var(--primary-color);
}

.skill-progress {
  height: 8px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 4px;
  transition: width 1.5s ease-out;
}

.skill-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.skill-tag {
  display: inline-block;
  padding: 5px 12px;
  background-color: rgba(58, 134, 255, 0.1);
  border-radius: 30px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.skill-tag:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.other-skills {
  margin-top: 40px;
}

.other-skills h3 {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.other-skills h3 i {
  margin-right: 10px;
  color: var(--primary-color);
}

.other-skills-content {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Simplified Experience Section */
.experience .counter-item {
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.experience .counter-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.experience .counter-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.experience .counter-label {
  font-size: 1rem;
  color: var(--text-secondary);
}

.experience-counter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.experience-item {
  padding: 30px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  transition: var(--transition);
  border-left: 4px solid var(--primary-color);
}

.experience-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.experience-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.experience-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 15px;
  background: rgba(58, 134, 255, 0.1);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.experience-title h3 {
  margin-bottom: 5px;
}

.company,
.date {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.company i,
.date i {
  margin-right: 8px;
  color: var(--primary-color);
}

.experience-body ul {
  list-style-type: none;
  padding: 0;
}

.experience-body li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
}

.experience-body li i {
  position: absolute;
  left: 0;
  top: 5px;
  color: var(--primary-color);
}

.highlight-stat {
  color: var(--primary-color);
  font-weight: 600;
}

/* Simplified Projects Section */
.projects-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.project-details {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-category {
  background-color: rgba(255, 158, 60, 0.9);
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  position: absolute;
  top: 15px;
  left: 15px;
}

.project-details h3 {
  margin-bottom: 10px;
  color: var(--text-color);
}

.project-details p {
  margin-bottom: 20px;
  color: var(--text-secondary);
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.project-tech span {
  background-color: rgba(58, 134, 255, 0.1);
  padding: 5px 10px;
  border-radius: 30px;
  font-size: 0.8rem;
  transition: var(--transition);
}

.project-tech span:hover {
  background-color: var(--primary-color);
  color: white;
}

.project-label {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-secondary);
}

/* Contact Section - Keep Original Design */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.contact-item i {
  font-size: 1.5rem;
  color: white;
  background-color: var(--primary-color);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-right: 15px;
}

.contact-details h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.contact-details p,
.contact-details a {
  color: var(--text-secondary);
}

.contact-form-container {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  transition: var(--transition);
  background-color: var(--bg-color);
  color: var(--text-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.contact-form button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
}

.contact-form button i {
  margin-right: 8px;
}

.contact-social {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(58, 134, 255, 0.1);
  color: var(--text-color);
  border-radius: 50%;
  transition: var(--transition);
  font-size: 1.2rem;
}

.social-item:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
}

/* Footer */
.footer {
  background-color: var(--card-bg);
  padding: 40px 0;
  position: relative;
  text-align: center;
  margin-top: 80px;
}

.footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: var(--transition);
}

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

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(58, 134, 255, 0.1);
  color: var(--text-color);
  border-radius: 50%;
  transition: var(--transition);
  font-size: 1.2rem;
}

.footer-social a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 20px;
}

.footer-copyright i {
  color: #ff6b6b;
  margin: 0 3px;
}

/* Responsive styles */
@media (max-width: 992px) {
  .container {
    padding: 0 30px;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 150px 0 80px;
  }

  .skill-group {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--card-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    margin: 10px 0;
    width: 100%;
  }

  .hero-content,
  .hero-image {
    text-align: center;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-cta {
    justify-content: center;
    flex-wrap: wrap;
  }

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

  .experience-counter {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .personal-info {
    flex-direction: column;
    gap: 20px;
  }
}
