/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Orbitron', 'Prompt', Arial, sans-serif;
  background: linear-gradient(135deg, #0a2342 0%, #1e3a5f 50%, #2ca7e0 100%);
  color: #ffffff;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ===== LAYOUT & CONTAINERS ===== */
section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, #0a2342 0%, #1e3a5f 50%, #2ca7e0 100%);
}

.hero-content {
  z-index: 10;
  position: relative;
}

/* ===== PROFILE CONTAINER ===== */
.profile-container {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.profile-frame {
  position: relative;
  display: inline-block;
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid #2ca7e0;
  object-fit: cover;
  box-shadow: 0 0 30px rgba(44, 167, 224, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(44, 167, 224, 0.5);
}

/* ===== PROJECTS BUTTON ===== */
.projects-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(45deg, #2ca7e0, #0a2342);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 20px 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(44, 167, 224, 0.3);
  min-width: 140px;
  text-align: center;
}

.projects-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(44, 167, 224, 0.4);
  background: linear-gradient(45deg, #0a2342, #2ca7e0);
}

.projects-btn i {
  font-size: 1.8rem;
  color: #ffffff;
}

.projects-btn span {
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
}

/* ===== PROFILE STATS ===== */
.profile-stats {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 15px 20px;
  min-width: 100px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(44, 167, 224, 0.3);
}

.stat-item i {
  color: #2ca7e0;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 0.9rem;
  color: #e0f2ff;
  font-weight: 500;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(45deg, #ffffff, #2ca7e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 3px;
}

.hero h2 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 40px;
  color: #e0f2ff;
  letter-spacing: 0.5px;
  line-height: 1.8;
  white-space: normal;
  text-align: center;
  word-spacing: 3px;
  display: block;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ===== BUTTONS ===== */
.btn-main {
  display: inline-block;
  background: linear-gradient(45deg, #2ca7e0, #0a2342);
  color: #ffffff;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(44, 167, 224, 0.3);
  border: 2px solid transparent;
}

.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(44, 167, 224, 0.4);
  background: linear-gradient(45deg, #0a2342, #2ca7e0);
}

/* ===== SECTION HEADERS ===== */
h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #ffffff;
  position: relative;
  letter-spacing: 2px;
}

h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(45deg, #2ca7e0, #ffffff);
  border-radius: 2px;
}

/* ===== GLASS CARD EFFECT ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 30px;
  margin: 20px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* ===== ABOUT SECTION ===== */
.about p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #e0f2ff;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* ===== CONTACT SECTION ===== */
.contact ul {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
}

.contact li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.contact li:hover {
  transform: translateX(10px);
}

.contact i {
  color: #2ca7e0;
  font-size: 1.5rem;
  min-width: 30px;
}

/* ===== EDUCATION SECTION ===== */
.education p {
  text-align: center;
  font-size: 1.2rem;
  color: #e0f2ff;
  line-height: 1.8;
}

/* ===== SKILLS SECTION ===== */
.skill-bars {
  max-width: 700px;
  margin: 0 auto;
}

.skill {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  gap: 20px;
}

.skill span {
  min-width: 120px;
  font-weight: 600;
  color: #ffffff;
  font-size: 1.1rem;
}

.bar {
  flex: 1;
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, #2ca7e0, #0a2342);
  border-radius: 10px;
  transition: width 2s ease;
  position: relative;
  animation: fillProgress 2s ease-in-out forwards;
}

@keyframes fillProgress {
  from { width: 0 !important; }
  to { 
    width: var(--progress-width, 75%) !important;
  }
}

/* Force display skill bars - Fallback */
.progress {
  display: block !important;
  opacity: 1 !important;
}

/* Additional fallback for specific skills */
.skill .progress.csharp,
.skill .progress.js,
.skill .progress.react,
.skill .progress.node,
.skill .progress.go,
.skill .progress.php,
.skill .progress.java,
.skill .progress.python {
  background: linear-gradient(90deg, #2ca7e0, #0a2342) !important;
  min-width: 10px !important;
}

.progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress.csharp { 
  width: 95%; 
  --progress-width: 95%;
}
.progress.js { 
  width: 92%; 
  --progress-width: 92%;
}
.progress.react { 
  width: 90%; 
  --progress-width: 90%;
}
.progress.node { 
  width: 88%; 
  --progress-width: 88%;
}
.progress.go { 
  width: 85%; 
  --progress-width: 85%;
}
.progress.php { 
  width: 88%; 
  --progress-width: 88%;
}
.progress.java { 
  width: 80%; 
  --progress-width: 80%;
}
.progress.python { 
  width: 75%; 
  --progress-width: 75%;
}

/* ===== TECHNICAL SKILLS SECTION ===== */
.technical-skills {
  text-align: center;
  padding: 80px 20px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.tech-category {
  padding: 30px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(44, 167, 224, 0.2);
}

.tech-category h4 {
  color: #2ca7e0;
  margin-bottom: 20px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-category h4 i {
  font-size: 1.5rem;
}

.tech-category ul {
  list-style: none;
  text-align: left;
}

.tech-category li {
  padding: 8px 0;
  color: #e0f2ff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.3s ease;
}

.tech-category li:hover {
  color: #2ca7e0;
}

.tech-category li:last-child {
  border-bottom: none;
}

/* ===== SPECIAL SKILLS SECTION ===== */
.special-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.special-item {
  padding: 25px;
  text-align: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.special-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(44, 167, 224, 0.2);
}

.special-item i {
  font-size: 2.5rem;
  color: #2ca7e0;
  margin-bottom: 15px;
}

.special-item h4 {
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.special-item p {
  color: #e0f2ff;
  font-size: 0.9rem;
  line-height: 1.5;
}

.special-skills i {
  color: #2ca7e0;
  font-size: 1.5rem;
  min-width: 30px;
}

/* ===== TIMELINE SECTION ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #2ca7e0, #0a2342);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -11px;
  top: 20px;
  width: 20px;
  height: 20px;
  background: #2ca7e0;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 0 10px rgba(44, 167, 224, 0.5);
}

.timeline-date {
  font-weight: 600;
  color: #2ca7e0;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.timeline-content b {
  color: #ffffff;
  font-size: 1.1rem;
}

.timeline-content ul {
  margin-top: 15px;
  padding-left: 20px;
}

.timeline-content li {
  margin-bottom: 8px;
  color: #e0f2ff;
}

/* ===== SOFT SKILLS SECTION ===== */
.soft-skills ul {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
}

.soft-skills li {
  padding: 20px;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.soft-skills li:hover {
  transform: translateX(10px);
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.portfolio-item {
  text-align: center;
}

.portfolio-item h4 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #ffffff;
}

.portfolio-item p {
  color: #e0f2ff;
  margin-bottom: 20px;
  line-height: 1.6;
}

.badge {
  display: inline-block;
  background: linear-gradient(45deg, #2ca7e0, #0a2342);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin: 5px;
  font-weight: 500;
}

/* ===== CERTIFICATES SECTION ===== */
.cert-list {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
}

.cert-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.cert-list li:hover {
  transform: translateX(10px);
}

.cert-list i {
  color: #2ca7e0;
  font-size: 1.5rem;
  min-width: 30px;
}

/* ===== PERSONAL INFO SECTION ===== */
.personal-list {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
}

.personal-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.personal-list li:hover {
  transform: translateX(10px);
}

.personal-list b {
  color: #2ca7e0;
  min-width: 100px;
}

/* ===== MISSION & VISION SECTION ===== */
.mission-vision p {
  text-align: center;
  font-size: 1.2rem;
  color: #e0f2ff;
  line-height: 1.8;
}

/* ===== HOBBIES SECTION ===== */
.hobby-list {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
}

.hobby-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.hobby-list li:hover {
  transform: translateX(10px);
}

.hobby-list i {
  color: #2ca7e0;
  font-size: 1.5rem;
  min-width: 30px;
}

/* ===== FUN FACTS SECTION ===== */
.fun-list {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
}

.fun-list li {
  padding: 20px;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.fun-list li:hover {
  transform: translateX(10px);
}

/* ===== SOCIAL MEDIA SECTION ===== */
.social-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(45deg, #2ca7e0, #0a2342);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(44, 167, 224, 0.3);
  background: linear-gradient(45deg, #0a2342, #2ca7e0);
}

.social-btn i {
  font-size: 1.2rem;
}

/* ===== COUNTERS SECTION ===== */
.counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.counter-card {
  text-align: center;
  padding: 30px;
}

.counter {
  font-size: 3rem;
  font-weight: 700;
  color: #2ca7e0;
  margin-bottom: 10px;
  display: block;
}

.counter-label {
  font-size: 1.1rem;
  color: #e0f2ff;
  font-weight: 500;
}

/* ===== HERO EXTRA SECTION ===== */
.hero-extra {
  text-align: center;
  padding: 40px 20px;
}

.hero-extra h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero-extra p {
  font-size: 1.1rem;
  color: #e0f2ff;
  margin-bottom: 30px;
  line-height: 1.6;
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(45deg, #333, #000);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-github:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.3);
  margin-top: 60px;
}

footer p {
  color: #e0f2ff;
  font-size: 1rem;
}

footer a {
  color: #2ca7e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ffffff;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero h2 {
    font-size: 1.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .btn-main {
    padding: 12px 30px;
    font-size: 1rem;
  }
  
  h3 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 60px 15px;
  }
  
  .timeline {
    padding-left: 20px;
  }
  
  .timeline-item {
    padding-left: 20px;
  }
  
  .timeline-item::before {
    left: -6px;
    width: 16px;
    height: 16px;
  }
  
  .portfolio-list {
    grid-template-columns: 1fr;
  }
  
  .counters {
    grid-template-columns: 1fr;
  }
  
  .social-list {
    flex-direction: column;
    align-items: center;
  }
  
  .skill {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .skill span {
    min-width: auto;
  }
  
  .bar {
    width: 100%;
  }
  
  .profile-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .projects-btn {
    padding: 15px 20px;
    min-width: 120px;
  }
  
  .projects-btn i {
    font-size: 1.5rem;
  }
  
  .projects-btn span {
    font-size: 0.8rem;
  }
  
  .profile-stats {
    gap: 15px;
    margin-top: 15px;
  }
  
  .stat-item {
    padding: 12px 16px;
    min-width: 80px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero h2 {
    font-size: 1rem;
  }
  
  .profile-img {
    width: 150px;
    height: 150px;
  }
  
  section {
    padding: 40px 10px;
  }
  
  .glass-card {
    padding: 20px;
  }
  
  .profile-container {
    gap: 15px;
  }
  
  .projects-btn {
    padding: 12px 18px;
    min-width: 100px;
  }
  
  .projects-btn i {
    font-size: 1.3rem;
  }
  
  .projects-btn span {
    font-size: 0.75rem;
  }
  
  .profile-stats {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }
  
  .stat-item {
    padding: 10px 15px;
    min-width: 70px;
  }
  
  .stat-number {
    font-size: 1.3rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
}

/* ===== LOADING ANIMATION ===== */
body {
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.loaded {
  opacity: 1;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
  animation: slideInRight 0.8s ease forwards;
}

.scale-in {
  animation: scaleIn 0.8s ease forwards;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HOVER EFFECTS ===== */
.glass-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(44, 167, 224, 0.3);
}

.btn-main:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(44, 167, 224, 0.4);
}

/* ===== PROGRESS BAR ANIMATION ===== */
.progress {
  width: 0% !important;
  transition: width 2s ease;
}

.progress.animated {
  width: var(--target-width) !important;
}

/* ===== BACKGROUND EFFECTS ===== */
#parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.layer1 {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
  opacity: 0.1;
}

.layer2 {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" x="0" y="0" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.05;
}

/* ===== PROJECTS MODAL ===== */
.projects-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.projects-modal.active {
  display: flex;
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  width: 95%;
  height: 95%;
  max-width: 1200px;
  max-height: 800px;
  margin: auto;
  background: linear-gradient(135deg, #0a2342 0%, #1e3a5f 50%, #2ca7e0 100%);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.8) translateY(-50px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-header h3 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-body {
  height: calc(100% - 80px);
  padding: 0;
}

#projectsFrame {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
}

/* ===== RESPONSIVE MODAL ===== */
@media (max-width: 768px) {
  .modal-content {
    width: 98%;
    height: 98%;
    margin: 1%;
  }
  
  .modal-header {
    padding: 15px 20px;
  }
  
  .modal-header h3 {
    font-size: 1.2rem;
  }
  
  .close-btn {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
  }
  
  .modal-header {
    padding: 12px 15px;
  }
  
  .modal-header h3 {
    font-size: 1rem;
  }
}

/* ===== AUDIO CONTROL STYLES ===== */
.audio-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 10px;
  align-items: center;
}

.language-btn {
  width: 60px;
  height: 50px;
  border: none;
  border-radius: 25px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.language-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
  background: linear-gradient(135deg, #ee5a24, #ff6b6b);
}

.language-btn:active {
  transform: scale(0.95);
}

.language-btn i {
  font-size: 0.8rem;
}

.language-btn span {
  font-size: 0.8rem;
  font-weight: bold;
}

.audio-btn {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ca7e0, #1e3a5f);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(44, 167, 224, 0.3);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.audio-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(44, 167, 224, 0.5);
  background: linear-gradient(135deg, #1e3a5f, #2ca7e0);
}

.audio-btn:active {
  transform: scale(0.95);
}

.audio-btn.muted {
  background: linear-gradient(135deg, #666, #444);
  box-shadow: 0 4px 15px rgba(102, 102, 102, 0.3);
}

.audio-btn.muted:hover {
  background: linear-gradient(135deg, #444, #666);
  box-shadow: 0 6px 20px rgba(102, 102, 102, 0.5);
}

.audio-btn i {
  transition: all 0.3s ease;
}

.audio-btn.muted i {
  opacity: 0.6;
}

/* Audio button pulse animation */
.audio-btn.pulse {
  animation: audioPulse 2s infinite;
}

@keyframes audioPulse {
  0% {
    box-shadow: 0 4px 15px rgba(44, 167, 224, 0.3);
  }
  50% {
    box-shadow: 0 4px 25px rgba(44, 167, 224, 0.6);
  }
  100% {
    box-shadow: 0 4px 15px rgba(44, 167, 224, 0.3);
  }
}

/* Responsive audio controls */
@media (max-width: 768px) {
  .audio-controls {
    top: 15px;
    right: 15px;
    gap: 8px;
  }
  
  .language-btn {
    width: 55px;
    height: 45px;
    font-size: 0.8rem;
  }
  
  .language-btn i {
    font-size: 0.7rem;
  }
  
  .language-btn span {
    font-size: 0.7rem;
  }
  
  .audio-btn {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .audio-controls {
    top: 10px;
    right: 10px;
    gap: 6px;
  }
  
  .language-btn {
    width: 50px;
    height: 40px;
    font-size: 0.7rem;
  }
  
  .language-btn i {
    font-size: 0.6rem;
  }
  
  .language-btn span {
    font-size: 0.6rem;
  }
  
  .audio-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
} 