/* Base Styles */
:root {
  --primary-color: #3B82F6;
  --primary-dark: #2563EB;
  --primary-light: #93C5FD;
  --text-color: #1F2937;
  --text-light: #6B7280;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --border-radius: 0.375rem;
  --border-radius-lg: 0.5rem;
  --border-radius-xl: 0.75rem;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

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

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

ul {
  list-style: none;
}

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

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-color);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}


.btn i {
  margin-right: 0.5rem;
}


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


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


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

.btn-white:hover {
  background-color: var(--gray-100);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
} 

.btn-block {
  width: 100%;
}


/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

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

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

.nav-link {
  color: var(--text-light);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
}

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

.mobile-menu-btn span:nth-child(1) {
  top: 0;
}

.mobile-menu-btn span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-btn span:nth-child(3) {
  bottom: 0;
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 5rem;
  background-color: var(--primary-color);
  color: var(--white);
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

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

.profile-image {
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}

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

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4rem;
  background-color: var(--white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.1);
}

.coffee-cup {
  top: 15%;
  left: 10%;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.cup-body {
  position: relative;
  width: 100%;
  height: 100%;
}

.cup-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  height: 75%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cup-handle {
  position: absolute;
  top: 25%;
  right: 0;
  width: 25%;
  height: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 0 100% 100% 0;
}

.notepad {
  bottom: 20%;
  right: 15%;
  width: 5rem;
  height: 6rem;
  border-radius: 0.25rem;
  animation: float 6s ease-in-out infinite;
}

.notepad-lines {
  position: relative;
  width: 100%;
  height: 100%;
}

.notepad-line {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.3);
}

.notepad-line:nth-child(1) {
  top: 10%;
}

.notepad-line:nth-child(2) {
  top: 25%;
}

.notepad-line:nth-child(3) {
  top: 40%;
}

.notepad-line:nth-child(4) {
  top: 55%;
}

.notepad-line:nth-child(5) {
  top: 70%;
}

.phone {
  top: 60%;
  left: 20%;
  width: 3rem;
  height: 5rem;
  border-radius: 0.75rem;
  animation: float-medium 5s ease-in-out infinite;
}

.phone-screen {
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
}

.phone-button {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 25%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
}

.paper-scrap {
  border-radius: 0.25rem;
}

.paper-scrap-1 {
  top: 30%;
  right: 25%;
  width: 2rem;
  height: 2rem;
  transform: rotate(12deg);
  animation: float-fast 4s ease-in-out infinite;
}

.paper-scrap-2 {
  top: 70%;
  right: 40%;
  width: 1.5rem;
  height: 1.5rem;
  transform: rotate(-12deg);
  animation: float-medium 5s ease-in-out infinite;
}

.paper-scrap-3 {
  top: 20%;
  left: 30%;
  width: 1.25rem;
  height: 1.25rem;
  transform: rotate(45deg);
  animation: float-slow 8s ease-in-out infinite;
}

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

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0) rotate(45deg);
  }
  50% {
    transform: translateY(-15px) rotate(45deg);
  }
}

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

@keyframes float-fast {
  0%, 100% {
    transform: translateY(0) rotate(12deg);
  }
  50% {
    transform: translateY(-5px) rotate(12deg);
  }
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: var(--white);
}

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

.about-text p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.skills {
  margin-top: 2rem;
}

.skills h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 9999px;
  font-size: 0.875rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  transform: translateY(0);
}

.stat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-0.25rem);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-light);
}

/* Projects Section */
.projects {
  padding: 5rem 0;
  background-color: var(--gray-50);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-0.25rem);
}

.project-image {
  height: 12rem;
  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-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tag {
  padding: 0.25rem 0.5rem;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 0.25rem;
  font-size: 0.75rem;
}

.project-links {
  display: flex;
  justify-content: space-between;
}

.project-link {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  transition: var(--transition);
}

.project-link i {
  margin-right: 0.25rem;
}

.project-demo {
  color: var(--primary-color);
}

.project-demo:hover {
  color: var(--primary-dark);
}

.project-code {
  color: var(--text-light);
}

.project-code:hover {
  color: var(--text-color);
}

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

/* Badges Section */
.badges {
  padding: 5rem 0;
  background-color: var(--white);
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.badge-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-0.25rem);
}

.badge-image {
  width: 6rem;
  height: 6rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

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

.badge-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.badge-issuer {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.badge-date {
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Contact Section */
.contact {
  position: relative;
  padding: 5rem 0;
  background-color: var(--primary-color);
  color: var(--white);
  overflow: hidden;
}

.contact-title {
  color: var(--white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.contact-details {
  margin-bottom: 1.5rem;
}

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

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.contact-text span {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact-text p {
  margin: 0;
  font-weight: 500;
}

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

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.contact-form-container {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.contact-form {
  display: block;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-family: inherit;
  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 2px rgba(59, 130, 246, 0.2);
}

.form-success {
  text-align: center;
  padding: 2rem 0;
  display: none;
}

.success-icon {
  font-size: 4rem;
  color: #10B981;
  margin-bottom: 1rem;
}

.form-success h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.form-success p {
  color: var(--text-light);
}

/* Footer */
.footer {
  padding: 2rem 0;
  background-color: var(--white);
  border-top: 1px solid var(--gray-100);
}

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

.copyright {
  font-size: 0.875rem;
  color: var(--text-light);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-light);
  transition: var(--transition);
}

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

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  border: none;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .profile-image {
    width: 14rem;
    height: 14rem;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-content,
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .stats-grid {
    margin-top: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .profile-image {
    width: 12rem;
    height: 12rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .badges-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}