/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  background-color: #fefefe;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 100px 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: #666;
  line-height: 1.7;
}

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

.section-title span {
  color: #6366f1;
}

.section-subtitle {
  font-size: 1.8rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 5rem;
  color: #666;
}

.section-header {
  margin-bottom: 6rem;
}

/* Buttons */
.cta {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  border-radius: 5px;
  font-size: 1.6rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta.primary {
  background: #6366f1;
  color: white;
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.3);
}

.cta.primary:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
}

.cta.secondary {
  background: transparent;
  color: #6366f1;
  border: 2px solid #6366f1;
}

.cta.secondary:hover {
  background: #6366f1;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header.container {
  padding: 0 20px;
}

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

.brand h1 {
  font-size: 2.4rem;
  color: #333;
  font-weight: 700;
}

.brand h1 span {
  color: #6366f1;
}

.nav-list ul {
  display: flex;
  list-style: none;
}

.nav-list ul li {
  margin-left: 3rem;
}

.nav-list ul li a {
  font-size: 1.6rem;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-list ul li a:hover {
  color: #6366f1;
}

.nav-list ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #6366f1;
  transition: width 0.3s ease;
}

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

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

.hamburger .bar {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.05)" d="M0,0 L1000,0 L1000,1000 L0,1000 Z"></path></svg>');
  background-size: cover;
}

.hero.container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

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

.greeting {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-title {
  font-size: 5rem;
  margin-bottom: 2rem;
}

.title-line {
  display: block;
}

.title-line.accent {
  color: #ffd700;
}

.hero-description {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.8);
}

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

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
  animation: float 6s ease-in-out infinite;
}

.shape-2 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  right: 10%;
  animation: float 8s ease-in-out infinite;
}

.shape-3 {
  width: 70px;
  height: 70px;
  top: 50%;
  right: 20%;
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero-image {
  position: relative;
  z-index: 2;
}

.hero-image .image-container {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}

.scroll-indicator i {
  margin-top: 5px;
  font-size: 1.6rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* Services Section */
#services {
  background: #f8fafc;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.service-card {
  background: white;
  border-radius: 10px;
  padding: 3rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: white;
  font-size: 3rem;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.service-card h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.service-card p {
  margin-bottom: 2rem;
}

.service-features {
  list-style: none;
  text-align: left;
}

.service-features li {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 2rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #6366f1;
  font-weight: bold;
}

.service-hover-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.service-card:hover .service-hover-effect {
  left: 100%;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 3rem;
}

.project-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(99, 102, 241, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 1.5rem;
}

.project-links a {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  font-size: 1.8rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.project-links a:hover {
  transform: scale(1.1);
}

.project-info {
  padding: 2rem;
}

.project-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.project-info p {
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.project-tech span {
  background: #f1f5f9;
  color: #6366f1;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 500;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text h3 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
  color: #333;
}

.skills {
  margin: 3rem 0;
}

.skill-category {
  margin-bottom: 2rem;
}

.skill-category h4 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #333;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skill-list span {
  background: #f1f5f9;
  color: #6366f1;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-size: 1.4rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-list span:hover {
  background: #6366f1;
  color: white;
  transform: translateY(-2px);
}

.about-image {
  position: relative;
}

.image-container {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.image-overlay {
  position: absolute;
  bottom: 20px;
  right: 20px;
}

.experience-badge {
  background: #6366f1;
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

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

.experience-badge .text {
  font-size: 1.4rem;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  background: #f8fafc;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

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

.contact-icon {
  width: 60px;
  height: 60px;
  background: #6366f1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.contact-details h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.contact-details p {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.contact-form {
  background: #f8fafc;
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  font-size: 1.6rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

/* Footer */
#footer {
  background: #1e293b;
  color: white;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.footer-brand h2 span {
  color: #6366f1;
}

.footer-brand p {
  color: #94a3b8;
}

.link-group h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: white;
}

.link-group ul {
  list-style: none;
}

.link-group ul li {
  margin-bottom: 1rem;
}

.link-group ul li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.link-group ul li a:hover {
  color: #6366f1;
}

.footer-social h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: white;
}

.social-icons {
  display: flex;
  gap: 1.5rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: #334155;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1.6rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  background: #6366f1;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 3rem;
  border-top: 1px solid #334155;
  color: #94a3b8;
  font-size: 1.4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-list ul {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 5rem;
    transition: left 0.3s ease;
  }
  
  .nav-list ul.active {
    left: 0;
  }
  
  .nav-list ul li {
    margin: 2rem 0;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 3rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card,
  .project-card {
    padding: 2rem;
  }
}