@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --secondary: #10b981;
  --dark: #111827;
  --dark-light: #1f2937;
  --light: #f9fafb;
  --gray-light: #9ca3af;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

.bg-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  z-index: 1;
}

.section-header h2::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -10px;
  width: 40px;
  height: 40px;
  background: var(--primary);
  opacity: 0.1;
  border-radius: 50%;
  z-index: -1;
}

.section-header h2::after {
  content: '';
  position: absolute;
  top: -5px;
  right: -10px;
  width: 25px;
  height: 25px;
  background: var(--secondary);
  opacity: 0.1;
  border-radius: 50%;
  z-index: -1;
}

.section-header .w-20 {
  transition: all 0.3s ease;
}

.section-header:hover .w-20 {
  width: 100px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.fade-in {
  animation: fadeIn 1s ease-in-out;
}

.fade-in-right {
  animation: fadeInRight 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hex-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

/* Profile image container styles */
.profile-image-container {
  position: relative;
  margin: 0 auto;
  text-align: center;
  transition: all 0.3s ease;
}

.profile-image-container img {
  height: auto;
  aspect-ratio: 1/1;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.profile-image-container img:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .profile-image-container {
    margin-bottom: 1.5rem;
  }
  
  .profile-image-container img {
    max-width: 80%;
  }
  
  /* Better text size on mobile */
  body {
    font-size: 15px;
  }
  
  /* Improved section spacing */
  section {
    padding: 3rem 0;
  }
  
  /* Adjust skill cards for smaller screens */
  .skill-card {
    padding: 1.2rem;
  }
  
  .skill-card h4 {
    font-size: 1rem;
  }
  
  /* Make project cards more compact */
  .project-card {
    margin-bottom: 1.5rem;
  }
  
  /* Adjust certification cards */
  .cert-card {
    padding: 1.2rem;
  }
  
  /* Reduce icon sizes slightly */
  .social-icon,
  .contact-icon {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  /* Proper form display */
  .form-input {
    font-size: 15px;
  }
  
  /* Better button sizes for touch */
  button, 
  .btn,
  a.bg-blue-600,
  a.border-blue-600 {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .profile-image-container img {
    max-width: 90%;
    width: 200px;
  }
  
  .gradient-text {
    font-size: 90%;
  }
  
  .tech-badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    margin: 0.2rem;
  }
  
  .project-tag {
    font-size: 0.7rem;
  }
  
  /* Stack all grid items */
  .grid {
    grid-template-columns: 1fr !important;
  }
}

.hex-image {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hex-image::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
  opacity: 0.15;
  z-index: -1;
  border-radius: 20px;
  transform: rotate(45deg);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.social-icon-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  font-size: 22px;
  transition: all 0.3s ease;
}

.social-icon-lg:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.skill-card {
  background: rgba(31, 41, 55, 0.5);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.skill-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.skill-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.skill-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 4px;
  animation: skillProgress 1.5s ease-in-out;
}

@keyframes skillProgress {
  from {
    width: 0;
  }
}

.tech-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(31, 41, 55, 0.5);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--light);
  transition: all 0.3s ease;
}

.tech-badge:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.project-card {
  background: rgba(31, 41, 55, 0.5);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-img {
  overflow: hidden;
  height: 200px;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.project-content p {
  color: var(--gray-light);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.project-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
}

.project-link {
  color: var(--primary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-link:hover {
  color: var(--secondary);
}

.cert-card {
  display: flex;
  background: rgba(31, 41, 55, 0.5);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cert-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-right: 1rem;
}

.cert-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cert-issuer {
  color: var(--gray-light);
  font-size: 0.875rem;
}

.cert-date {
  color: var(--gray-light);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.cert-verify {
  display: inline-block;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cert-verify:hover {
  color: var(--secondary);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  font-size: 18px;
  margin-right: 15px;
  transition: all 0.3s ease;
}

.contact-icon:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.form-input::placeholder {
  color: var(--gray-light);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#mobile-menu.active {
  display: block;
  animation: slideDown 0.3s ease-in-out;
}

footer {
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to bottom right, transparent 49%, var(--dark) 50%);
}

.social-icon-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  font-size: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-icon-footer:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: all 0.3s ease;
  z-index: -1;
}

.social-icon-footer:hover {
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.social-icon-footer:hover:before {
  opacity: 1;
}

footer h4 {
  position: relative;
}

footer h4:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
}

footer .text-center h4:after {
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  footer h4:after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .hex-container {
    width: 250px;
    height: 250px;
  }
  
  .skill-card, .project-card, .cert-card {
    padding: 1.25rem;
  }
  
  .project-img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .hex-container {
    width: 200px;
    height: 200px;
  }
}

/* Contact Form Styles */
.form-input {
  transition: all 0.3s ease;
}

.form-input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Form validation */
.form-input.border-red-500 {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-input.bg-red-50 {
  background-color: rgba(239, 68, 68, 0.05);
}

.fade-out {
  animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
} 