:root {
  --primary-color: #00abf0;
  --secondary-color: #081b29;
  --background-dark: #030414;
  --background-light: rgba(255, 255, 255, 0.05);
  --text-light: #eee;
  --text-dark: #081b29;
  --accent-color: forestgreen;
  --border-radius: 8px;
  --transition-speed: 0.3s;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--background-dark);
  color: var(--text-light);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Navigation Styles */
.nav {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  z-index: 1000;
  background-color: rgba(3, 4, 20, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-header {
  flex: 0.95;
  padding-left: 1rem;
}

.nav-title {
  font-size: 1.75rem;
  color: white;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-list li {
  list-style-type: none;
}

.nav-list a {
  text-decoration: none;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  position: relative;
  font-weight: 500;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-speed) ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--primary-color);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

#nav-check {
  display: none;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav {
    padding: 1rem;
  }

  .nav-btn {
    display: inline-block;
    position: absolute;
    right: 0;
    top: 0;
    padding: 1rem;
    cursor: pointer;
    z-index: 1001;
  }

  .nav-btn label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 30px;
  }

  .nav-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-light);
    transition: all 0.3s ease;
  }

  #nav-check:checked + .nav-btn span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  #nav-check:checked + .nav-btn span:nth-child(2) {
    opacity: 0;
  }

  #nav-check:checked + .nav-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .nav-list {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--secondary-color);
    transition: all 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    overflow: hidden;
  }

  #nav-check:checked ~ .nav-list {
    height: 100vh;
  }
}

/* Section Styles */
section {
  min-height: 100vh;
  padding: 100px 10% 80px;
  scroll-margin-top: 80px;
  position: relative;
}

/* Home Section */
.home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.home-content {
  max-width: 600px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeInUp 1s ease;
}

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

.home-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1.2;
}

.name {
  color: var(--accent-color);
  position: relative;
}

.name::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.home-content:hover .name::after {
  transform: scaleX(1);
  transform-origin: left;
}

.home-content h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0;
}

.home-content p {
  font-size: 1rem;
  margin-bottom: 0;
  opacity: 0.9;
}

/* Button Styles */
.buttonbox {
  display: flex;
  gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 150px;
  height: 50px;
  background: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  z-index: 1;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
}

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

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

.btn-outline:hover {
  color: var(--text-dark);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  z-index: -1;
  transition: width var(--transition-speed) ease;
}

.btn:first-child::before {
  background: var(--secondary-color);
}

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

.btn:hover::before {
  width: 100%;
}

/* Social Icons */
.social-icon {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

.social-icon a:hover {
  background-color: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 171, 240, 0.3);
}

/* Image Styles */
.image {
  position: relative;
  flex-shrink: 0;
}

.photo {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 0 0px rgba(0, 171, 240, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0px rgba(0, 171, 240, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 171, 240, 0);
  }
  100% {
    box-shadow: 0 0 0 0px rgba(0, 171, 240, 0);
  }
}

.photo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 171, 240, 0.6);
}

/* About Section */
.about-section {
  background-color: var(--secondary-color);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: start;
}

.profile-card {
  background: var(--background-light);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-speed) ease;
  height: 100%;
}

.profile-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.profile-image {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--primary-color);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.profile-image:hover .profile-photo {
  transform: scale(1.1);
}

.profile-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--primary-color);
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.profile-info {
  text-align: center;
}

.profile-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.profile-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 500;
}

.profile-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #ccc;
}

/* Tab System */
.tab-container {
  background: var(--background-light);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
}

.tab-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 0.75rem 1.5rem;
  color: #ccc;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-speed) ease;
  border-radius: 5px;
}

.tab-btn:hover {
  background: rgba(0, 171, 240, 0.1);
}

.tab-btn.active {
  color: var(--primary-color);
  background: rgba(0, 171, 240, 0.2);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

/* Skills */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-category h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.skill-category h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--primary-color);
}

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

.skill-tag {
  background: rgba(0, 171, 240, 0.1);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(0, 171, 240, 0.3);
  transition: all var(--transition-speed) ease;
}

.skill-tag:hover {
  background: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 171, 240, 0.2);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

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

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -0.5rem;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--primary-color);
  border: 3px solid var(--secondary-color);
}

.timeline-date {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 3px solid var(--primary-color);
  transition: all var(--transition-speed) ease;
}

.timeline-content:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.company {
  color: #ccc;
  font-style: italic;
  margin-bottom: 0.75rem;
  display: block;
}

.timeline-content ul {
  padding-left: 1.25rem;
}

.timeline-content li {
  margin-bottom: 0.5rem;
  position: relative;
}

.timeline-content li::before {
  content: '▹';
  position: absolute;
  left: -1.25rem;
  color: var(--primary-color);
}

/* Education */
.education-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 10px;
  transition: all var(--transition-speed) ease;
}

.education-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.education-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 171, 240, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.education-details h4 {
  margin-bottom: 0.5rem;
}

.institution {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: block;
}

.education-year {
  color: #ccc;
  font-size: 0.9rem;
}

/* Achievement Stats */
.achievement-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.stat-card {
  background: var(--background-light);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-speed) ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card:hover {
  transform: translateY(-10px);
  background: rgba(0, 171, 240, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: rgba(0, 171, 240, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  color: #ccc;
  font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
  background-color: var(--background-dark);
}

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

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

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 0.5rem;
}

.contact-info h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--primary-color);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition-speed) ease;
  padding: 0.75rem;
  border-radius: 5px;
}

.contact-detail:hover {
  background: rgba(0, 171, 240, 0.1);
  transform: translateX(5px);
}

.contact-detail i {
  font-size: 1.25rem;
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 171, 240, 0.1);
  border-radius: 50%;
}

.contact-form {
  background: var(--background-light);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  color: var(--text-light);
  font-size: 1rem;
  transition: all var(--transition-speed) ease;
}

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

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

.submit-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary-color);
  border: none;
  border-radius: var(--border-radius);
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.submit-btn:hover {
  background: #0088cc;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 171, 240, 0.4);
}

/* Footer Styles */
.main-footer {
  background-color: var(--secondary-color);
  padding: 2rem 0;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.copyright {
  color: #ccc;
  font-size: 0.875rem;
}

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

.social-links a {
  color: var(--primary-color);
  font-size: 1.25rem;
  transition: all var(--transition-speed) ease;
}

.social-links a:hover {
  color: var(--accent-color);
  transform: translateY(-5px) scale(1.2);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .home {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }
  
  .home-content {
    margin-bottom: 3rem;
    align-items: center;
  }
  
  .buttonbox {
    justify-content: center;
  }
  
  .social-icon {
    justify-content: center;
  }
  
  .image {
    order: -1;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 5% 60px;
  }
  
  .home-content h1 {
    font-size: 2.25rem;
  }
  
  .home-content h3 {
    font-size: 1.5rem;
  }
  
  .buttonbox {
    width: 100%;
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .achievement-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .achievement-stats {
    grid-template-columns: 1fr;
  }
  
  .photo {
    max-width: 250px;
  }
  
  .tab-buttons {
    justify-content: center;
  }
  
  .tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0088cc;
}