/* Global Styles */
:root {
  --primary-color: #1e88e5;
  --primary-dark: #1565c0;
  --primary-light: #64b5f6;
  --secondary-color: #0d47a1;
  --accent-color: #29b6f6;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-dark: 0 8px 30px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-light);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.primary-btn {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 10px rgba(30, 136, 229, 0.3);
}

.primary-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(30, 136, 229, 0.4);
}

.secondary-btn {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(30, 136, 229, 0.3);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.underline {
  height: 4px;
  width: 70px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  margin: 0 auto;
  border-radius: 2px;
}

section {
  padding: 100px 0;
}

/* Navbar */
nav {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-light);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links li {
  margin-left: 30px;
}

.nav-item {
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
  color: var(--primary-color);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-item:hover::after, .nav-item.active::after {
  width: 100%;
}

.contact-btn {
  background-color: var(--primary-color);
  color: white !important;
  padding: 8px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(30, 136, 229, 0.3);
}

.contact-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(30, 136, 229, 0.4);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Hero Section */
#hero {
  padding: 180px 0 100px;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

.hero-text {
  flex: 1;
  padding-right: 30px;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.hero-text h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  position: relative;
  z-index: 5;
}

.highlight {
  color: var(--primary-color);
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container {
  position: relative;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-dark);
  border: 5px solid white;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

/* About Section */
#about {
  background-color: var(--bg-white);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
}

.rounded-image {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
}

.rounded-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-dark);
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.about-details {
  margin: 30px 0;
}

.detail-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.detail-item i {
  color: var(--primary-color);
  margin-right: 15px;
  font-size: 1.2rem;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: white;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

/* Skills Section */
#skills {
  background-color: var(--bg-light);
}

.skills-content {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.skill-category h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--primary-dark);
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.skill-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.skill-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-align: center;
}

.skill-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}

.skill-bar {
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  border-radius: 4px;
}

/* Projects Section */
#projects {
  background-color: var(--bg-white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 136, 229, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 20px;
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: white;
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: var(--transition);
}

.project-link:hover {
  background-color: var(--primary-dark);
  color: white;
}

.project-info {
  padding: 25px;
}

.project-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.project-info p {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background-color: var(--primary-light);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Resume Section */
#resume {
  background-color: var(--bg-light);
}

.resume-content {
  max-width: 800px;
  margin: 0 auto;
}

/* CV Container Styles */
.cv-container {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-medium);
}

.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.cv-name h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.cv-name p {
  font-size: 1.2rem;
  color: var(--primary-color);
}

.cv-contact p {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.cv-contact i {
  color: var(--primary-color);
  margin-right: 10px;
}

.cv-section {
  margin-bottom: 30px;
}

.cv-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}

.cv-item {
  margin-bottom: 25px;
}

.cv-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.cv-item-header h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cv-date {
  background-color: var(--primary-light);
  color: white;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.cv-item h5 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.cv-item p {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.cv-skills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.cv-skill-category h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.cv-skill-category p {
  color: var(--text-secondary);
}

/* Personal Information Styles */
.personal-info {
  margin-bottom: 50px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-light);
}

.info-item {
  padding: 15px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.info-item:hover {
  background-color: rgba(30, 136, 229, 0.05);
  transform: translateY(-3px);
}

.info-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.info-item p {
  color: var(--text-secondary);
}

/* Contact Section */
#contact {
  background-color: var(--bg-white);
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
}

.contact-info h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  margin-bottom: 25px;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: white;
  font-size: 1.2rem;
  margin-right: 20px;
}

.contact-text h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.contact-text p {
  color: var(--text-secondary);
}

.contact-form {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-medium);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.2);
}

/* Footer */
footer {
  background-color: #1a237e;
  color: white;
  padding-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 30px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
}

.footer-text p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary-light);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-bottom i {
  color: #f44336;
  margin: 0 5px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text {
    padding-right: 0;
    margin-bottom: 50px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .cv-header {
    flex-direction: column;
    text-align: center;
  }
  
  .cv-name {
    margin-bottom: 15px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: var(--shadow-light);
    transform: translateY(-150%);
    transition: var(--transition);
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .nav-links li {
    margin: 15px 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .hero-text h2 {
    font-size: 1.5rem;
  }
  
  .image-container {
    width: 250px;
    height: 250px;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .info-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .cv-skills {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .image-container {
    width: 200px;
    height: 200px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .cv-container {
    padding: 20px;
  }
  
  .cv-item-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cv-date {
    margin-top: 5px;
  }
}