:root {
  --primary: #FF7D33;  /* Vibrant orange */
  --primary-light: #FF9E66;
  --primary-dark: #E64D00;
  --secondary: #33B2FF;  /* Complementary blue */
  --dark: #2A2A2A;
  --light: #FFF5F0;  /* Very light orange tint */
  --accent: #FFC233;  /* Golden yellow */
  --gray: #6C757D;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

/* Header Styles */
header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1517486808906-6ca8b3f8e4d1?q=80&w=1470&auto=format&fit=crop') center/cover;
  opacity: 0.15;
  z-index: 0;
}

.header-content {
  position: relative;
  z-index: 1;
}

/* Profile Image with Flip Effect */
.profile-container {
  perspective: 1000px;
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.profile-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s;
}

.profile-container:hover .profile-card {
  transform: rotateY(180deg);
}

.profile-front, .profile-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.profile-front {
  background: linear-gradient(45deg, var(--primary), var(--accent));
  z-index: 2;
}

.profile-back {
  background: linear-gradient(45deg, var(--primary-dark), var(--dark));
  color: white;
  transform: rotateY(180deg);
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.4;
}

.profile-img {
  width: 90%;
  height: 90%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
}

/* Navigation */
nav {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
}

nav a:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

.resume-nav-btn {
  background: var(--accent);
  color: var(--dark) !important;
  font-weight: 600;
}

.resume-nav-btn:hover {
  background: white;
  color: var(--primary-dark) !important;
}

/* Main Content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.section {
  margin-bottom: 4rem;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.section:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.section-title {
  color: var(--primary);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
}

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

.about-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--dark);
  line-height: 1.8;
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  font-weight: 500;
}

.highlight {
  color: var(--primary);
  font-weight: 700;
  background: rgba(255, 125, 51, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
}

/* About Grid Cards */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 1rem 0;
}

.about-card {
  background: rgba(255, 125, 51, 0.03);
  padding: 1.5rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 125, 51, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.about-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(255, 125, 51, 0.1);
}

.about-card-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}

.about-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.about-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

/* Expertise Section */
.expertise-section {
  background: linear-gradient(135deg, rgba(255,125,51,0.05) 0%, rgba(51,178,255,0.05) 100%);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255,125,51,0.1);
}

.expertise-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.expertise-tag {
  background: white;
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--primary);
  transition: all 0.3s ease;
}

.expertise-tag:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Projects Highlight */
.projects-highlight {
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
}

.projects-highlight h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.projects-list {
  list-style: none;
  padding: 0;
}

.projects-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  color: var(--gray);
  font-size: 0.95rem;
}

.projects-list li:last-child {
  border-bottom: none;
}

.projects-list li i {
  color: var(--primary);
  font-size: 1rem;
  width: 20px;
}

/* Personal Note */
.personal-note {
  background: rgba(255, 193, 7, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid #FFC233;
  font-style: italic;
  color: var(--gray);
}

.personal-note p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* About Image */
.about-image {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 30px rgba(0,0,0,0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  padding: 2rem 1rem 1rem;
  font-size: 0.9rem;
  text-align: center;
}

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

.project-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(255,125,51,0.1);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(255,125,51,0.15);
  border-color: rgba(255,125,51,0.3);
}

.project-image {
  height: 200px;
  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.05);
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  margin-bottom: 0.5rem;
  color: var(--dark);
}

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

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

.project-tag {
  background: var(--primary-light);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

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

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

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

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

.skill-category {
  background: rgba(255,125,51,0.05);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--primary);
}

.skill-category h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.skill-list {
  list-style: none;
}

.skill-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-list li::before {
  content: '•';
  color: var(--primary);
  font-size: 1.5rem;
  line-height: 0;
}

/* Experience & Education */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 7px;
  height: 100%;
  width: 2px;
  background: var(--primary);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -2rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--primary);
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--gray);
}

.company {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

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

.timeline-content ul li {
  margin-bottom: 0.25rem;
}

/* Achievements Slider Styles */
.achievements-swiper {
  padding: 2rem 0.5rem 3rem;
  overflow: visible;
}

.achievement-slide {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  border: 1px solid rgba(255,125,51,0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.achievement-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.achievement-slide:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(255,125,51,0.15);
  border-color: var(--primary);
}

.achievement-icon {
  width: 80px;
  height: 80px;
  background: rgba(255,125,51,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

.achievement-slide h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.achievement-org {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.achievement-topic {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.achievement-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: var(--primary);
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.achievement-badge.silver {
  background: #C0C0C0;
  color: var(--dark);
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
  color: var(--primary);
  background: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 1.2rem;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--primary);
  color: white;
}

.swiper-pagination-bullet {
  background: var(--primary);
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--primary);
}

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

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

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

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-text h3 {
  margin-bottom: 0.25rem;
}

.contact-text a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

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

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

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--dark);
  transform: translateY(-3px);
}

/* Form Styles */
.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,125,51,0.2);
}

textarea.form-control {
  min-height: 150px;
}

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

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

.copyright {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(30px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.about-card:nth-child(1) { animation-delay: 0.1s; }
.about-card:nth-child(2) { animation-delay: 0.2s; }
.about-card:nth-child(3) { animation-delay: 0.3s; }

/* Responsive Design */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .section {
    padding: 1.5rem;
  }
  
  nav {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  nav a {
    width: 100%;
    text-align: center;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .expertise-tags {
    justify-content: center;
  }
  
  .btn-group {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn-group .btn {
    margin: 0 !important;
    text-align: center;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.animate {
  animation: fadeIn 1s ease forwards;
}

.animate-delay-1 {
  animation-delay: 0.2s;
}

.animate-delay-2 {
  animation-delay: 0.4s;
}

.animate-delay-3 {
  animation-delay: 0.6s;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

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

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Print styles */
@media print {
  .btn, nav, .social-links, .contact-form, footer {
    display: none !important;
  }
  
  body {
    background: white;
  }
  
  .section {
    box-shadow: none;
    break-inside: avoid;
  }
}
