/* Base Styles */
:root {
  --primary-color: #3a86ff;
  --secondary-color: #8338ec;
  --accent-color: #ff006e;
  --dark-color: #1a1a2e;
  --darker-color: #16213e;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --terminal-bg: #1e1e1e;
  --terminal-text: #f8f8f8;
  --terminal-green: #4af626;
}

[data-theme="dark"] {
  --primary-color: #3a86ff;
  --secondary-color: #8338ec;
  --accent-color: #ff006e;
  --dark-color: #1a1a2e;
  --darker-color: #16213e;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
}

[data-theme="light"] {
  --primary-color: #3a86ff;
  --secondary-color: #8338ec;
  --accent-color: #ff006e;
  --dark-color: #f8f9fa;
  --darker-color: #e9ecef;
  --light-color: #1a1a2e;
  --gray-color: #495057;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark-color);
  color: var(--light-color);
  line-height: 1.6;
  transition: all 0.3s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: var(--darker-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

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

.dark-mode-toggle i {
  font-size: 1.2rem;
  color: var(--light-color);
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--darker-color);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

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

.nav-links li a {
  color: var(--light-color);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

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

.nav-links li a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--light-color);
  transition: all 0.3s ease;
}

/* Mobile menu styles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--darker-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: left 0.3s ease;
    padding: 2rem 0;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links li a {
    font-size: 1.2rem;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  padding-top: 80px;
  gap: 2rem;
}

.hero-content {
  flex: 1;
  padding-right: 2rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--light-color);
}

.hero-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--gray-color);
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

/* Rotating Titles */
.rotating-titles {
  height: 2.5rem;
  overflow: hidden;
  margin: 1rem 0;
  position: relative;
}

.rotating-titles span {
  display: block;
  position: absolute;
  width: 100%;
  opacity: 0;
  animation: rotateWords 16s linear infinite 0s;
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rotating-titles span:nth-child(2) {
  animation-delay: 4s;
}
.rotating-titles span:nth-child(3) {
  animation-delay: 8s;
}
.rotating-titles span:nth-child(4) {
  animation-delay: 12s;
}

@keyframes rotateWords {
  0% { opacity: 0; transform: translateY(20px); }
  2% { opacity: 1; transform: translateY(0px); }
  18% { opacity: 1; transform: translateY(0px); }
  20% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 0; }
}

.terminal-window {
  background-color: var(--terminal-bg);
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.terminal-header {
  background-color: #333;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-buttons {
  display: flex;
  gap: 0.5rem;
}

.terminal-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-btn.red {
  background-color: #ff5f56;
}

.terminal-btn.yellow {
  background-color: #ffbd2e;
}

.terminal-btn.green {
  background-color: #27c93f;
}

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
}

.terminal-body {
  padding: 1.5rem;
  font-family: 'Courier New', Courier, monospace;
  color: var(--terminal-text);
  line-height: 1.8;
}

.terminal-body p {
  margin-bottom: 0.5rem;
}

.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Section Styles */
.section {
  padding: 5rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  margin: 0 auto;
  border-radius: 2px;
}

/* About Section */
.about-content {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.about-image {
  position: relative;
  flex: 1;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  margin-bottom: 1.5rem;
}

.profile-img:hover {
  transform: scale(1.02);
}

.status-badge {
  background-color: var(--success-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--light-color);
  text-align: center;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--gray-color);
  line-height: 1.8;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.highlight-card {
  background-color: var(--darker-color);
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

.highlight-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.highlight-card h4 {
  margin-bottom: 0.5rem;
  color: var(--light-color);
}

.highlight-card p, .highlight-card ul {
  font-size: 0.9rem;
  color: var(--gray-color);
}

.highlight-card ul {
  margin-left: 0;
  padding-left: 1rem;
  text-align: left;
}

.highlight-card ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1rem;
}

.highlight-card ul li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.about-final {
  text-align: center;
  font-style: italic;
  margin-top: 2rem;
  color: var(--primary-color);
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background-color: var(--darker-color);
  padding: 1.5rem;
  border-radius: 8px;
}

.skill-category h3 {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
}

.skill-category h3 i {
  font-size: 1.2rem;
}

.skill-item {
  margin-bottom: 1.5rem;
}

.skill-item span {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

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

.skill-level {
  height: 100%;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
}

/* Experience Section */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: 15px;
  z-index: 1;
}

.timeline-item:nth-child(odd)::after {
  right: -10px;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.timeline-date {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-content {
  background-color: var(--darker-color);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
  margin-bottom: 0.5rem;
  color: var(--light-color);
}

.timeline-content p {
  margin-bottom: 1rem;
  color: var(--gray-color);
}

.timeline-content ul {
  margin-left: 1rem;
  color: var(--gray-color);
}

.timeline-content ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.timeline-content ul li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.certifications {
  text-align: center;
  margin-top: 4rem;
}

.certifications h3 {
  margin-bottom: 2rem;
  font-size: 1.8rem;
  color: var(--light-color);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.cert-card {
  background-color: var(--darker-color);
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s ease;
  text-align: center;
}

.cert-card:hover {
  transform: translateY(-5px);
}

.cert-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.cert-card h4 {
  margin-bottom: 0.5rem;
  color: var(--light-color);
}

.cert-card p {
  color: var(--gray-color);
  font-size: 0.9rem;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.project-card {
  background-color: var(--darker-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.project-tags {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  gap: 0.5rem;
}

.project-tags span {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  margin-bottom: 1rem;
  color: var(--light-color);
}

.project-content p {
  margin-bottom: 1.5rem;
  color: var(--gray-color);
  line-height: 1.6;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: var(--secondary-color);
}

.project-link i {
  transition: transform 0.3s ease;
}

.project-link:hover i {
  transform: translateX(5px);
}

.cta-section {
  text-align: center;
  margin-top: 3rem;
}

.cta-section p {
  margin-bottom: 1.5rem;
  color: var(--gray-color);
}

/* Contact Section */
.contact-container {
  display: flex;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  flex: 1;
  background-color: var(--darker-color);
  padding: 2rem;
  border-radius: 8px;
}

.contact-info h3 {
  margin-bottom: 2rem;
  color: var(--light-color);
  font-size: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.contact-item h4 {
  margin-bottom: 0.3rem;
  color: var(--light-color);
}

.contact-item a, .contact-item p {
  color: var(--gray-color);
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(58, 134, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-color);
  transition: all 0.3s ease;
}

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

.contact-form {
  flex: 1;
  background-color: var(--darker-color);
  padding: 2rem;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  color: var(--light-color);
  font-family: inherit;
  transition: border-color 0.3s ease;
}

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

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

.form-message {
  margin-top: 1rem;
  padding: 0.5rem;
  border-radius: 4px;
  display: none;
}

.form-message.success {
  display: block;
  background-color: rgba(40, 167, 69, 0.2);
  color: var(--success-color);
}

.form-message.error {
  display: block;
  background-color: rgba(220, 53, 69, 0.2);
  color: var(--danger-color);
}

/* Footer */
footer {
  background-color: var(--darker-color);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.footer-content p {
  color: var(--gray-color);
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.back-to-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--light-color);
  transition: color 0.3s ease;
}

.back-to-top:hover {
  color: var(--primary-color);
}

.footer-links a {
  padding: 0.5rem 1rem;
  border-radius: 5px;
  background-color: rgba(58, 134, 255, 0.1);
  transition: all 0.3s ease;
}

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

.footer-copyright {
  color: var(--gray-color);
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 3rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
  }

  .about-image {
    margin-bottom: 2rem;
  }

  .timeline::before {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item::after {
    left: 21px;
  }

  .contact-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--darker-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: left 0.3s ease;
  }

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

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

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