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

:root {
  --color: #667dff;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --accent: #00aeac;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow: rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}
/* loader screen */
.loader{
  position: fixed;
  top:0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  flex-direction: column;
}
.loader-text{
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  opacity: 0 ;
}
.loader-bar{
  width: 300px;
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 2px;
  overflow: hidden;
}
.loader-progress{
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg,var(--color),var(--accent));
}
/* custom cursor */
.cursor{
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.1s ease;
}

.cursor-follower{
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.2s ease;
} 

/* navigation */
nav{
  position: fixed;
  top: 0;
  width: 100vw;
  padding: 1.5rem 2rem;
  background-color: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(20px);
  z-index: 1000;
  transition: background-color 0.3s ease;
  transform: translateY(-100%);
}
 [data-theme="light"] nav{
  background-color: rgba(255, 255, 255, 0.831)
   
 }
 .nav-container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
 }
 .logo{
  font-size: 1.5 rem;
  font-weight: 700;
  color: var(--accent);
  font-family: 'playfair Display',serif;
 }
 .nav-links{
  display: flex;
  list-style: none;
  gap: 2rem;
  transition: transform 0.3 ease;
 }

 .nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
 }

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

 .nav-links a::after{
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
 }
.nav-links a:hover::after{
  width: 100%;
}

/* theme toggle */
.theme-toggle{
  position: relative;
  width: 60px;
  height: 30px;
  background-color: var(--bg-secondary);
  border-radius: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: 2px solid var(--border-color);
  margin-left: 1rem;

}
.theme-toggle::before{
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background-color: var(--accent);
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-sizing: 0 0 10px rgba(0,255,229,0.7);
}
[data-theme="light"] .theme-toggle::before{
  transform: translateX(28px);
  background: var(--color);
  box-shadow: 0 0 10px rgba(25,117,255,0.7);
}
.theme-toggle-icon{
  position: absolute;
  top:50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  transition: opacity 0.3s ease;
  pointer-events: none
  
}
.theme-toggle-icon.sun{
  right: 6px;
  opacity: 0;
}
.theme-toggle-icon.moon{
  left: 5px;
  opacity: 1;
}
[data-theme="light"] .theme-toggle-icon.sun{
  opacity: 1;
}

[data-theme="light"] .theme-toggle-icon.moon{
  opacity: 0;
}

/* Mobile-menu */
.menu-toggle{
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}
.menu-toggle span{
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1){
  transform: rotate(45deg) translate(6px,6px);
}
.menu-toggle.active span:nth-child(2){
  opacity: 0;
}
.menu-toggle.active span:nth-child(3){
  transform: rotate(-45deg) translate(6px,-6px);
    
}

.mobile-menu{
  position: fixed;
  top: 0;
  left: 0;
  width:100%;
  height: 100vh;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction:column;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.mobile-menu.active {
  transform: translateX(0%);
}

.mobile-menu a{
  color: var(--text-primary);
  text-decoration: none;
  font-size: 2rem;
  font-weight: 600;
  margin: 1rem 0;
  font-family: "Playfair Display",serif;
  transform: translateY(20px);
  transition: all 0.3s ease;
  opacity: 0;
}

.mobile-menu.active a{
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu a:nth-child(1){
  transition-delay: 0.1s ;
}
.mobile-menu a:nth-child(2){
  transition-delay: 0.2s ;
}
.mobile-menu a:nth-child(3){
  transition-delay: 0.3s ;
}
.mobile-menu a:nth-child(4){
  transition-delay: 0.4s ;
}
.mobile-menu a:nth-child(5){
  transition-delay: 0.5s ;
}

/* hero-section */
.hero{
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50% rgba(0,102,255,0.1) 0%,transparent 50%);
}

.hero-img{
  height: 60%;
  margin-left: 5%;
  margin-right: 5%;

}
 .hero-content{
  text-align: center;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;

}

.hero-title {
  font-size: clamp(2rem,5vw,5rem);
  font-weight: 700;
  line-height: 0.9;
  margin-bottom: 1.5rem;
  font-family: 'Playfair Display',serif;
  filter: blur(10px);
  transform: translateY(5rem);
  opacity: 0;
}
.hero-subtitle{
  font-size: clamp(1.4rem,2vw,1rem);
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
   filter: blur(10px);
  transform: translateY(5rem);
  opacity: 0;
}
.hero-description{
font-size: 1.2rem;
color: var(--text-secondary);
margin-bottom: 1rem;
  filter: blur(10px);
  transform: translateY(5rem);
  opacity: 0;
}
.cta-button{
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg,var(--color),var(--accent));
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  transition: transform 0.3s ease;
   filter: blur(10px);
  transform: translateY(5rem);
  opacity: 0;
}
.cta-button:hover{
  transform: translateY(-3px);
} 
/* ===================== Section Layouts ===================== */
.section {
  padding: 6rem 2rem;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  text-align: center;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

/* ===================== Section Titles ===================== */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: 'Playfair Display', serif;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* about */
.about-text h1{
  display: inline-block;  
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.6rem;
  line-height: 1.8;
  text-align: center;
}


/* ===================== Skills ===================== */
 .skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 0;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background-color: var(--bg-secondary);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 160px; /* width control to fit 4–5 in a row */
  justify-content: center;
  text-align: center;
}

.skill-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px var(--shadow);
}

.skill-item img {
  width: 30px;
  height: 30px;
}

.skill-item span {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 1rem;
}

 
 
/* ===================== Projects ===================== */
 .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  position: relative;
  height: 250px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-overlay {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  box-sizing: border-box;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(2px);
}

.card-overlay h3 {
  margin: 0;
  font-size: 1.2rem;
}

.card-overlay p {
  margin-top: 5px;
  font-size: 0.95rem;
}
/* ===================== Contact ===================== */
 .contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-row input {
  flex: 1;
  min-width: 240px;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  resize: vertical;
  width: 100%;
}

.contact-form button {
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, var(--color), var(--accent));
  color: var(--text-primary);
  border: none;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
  align-self: flex-start;
  align-self: center; 
}

.contact-form button:hover {
  transform: translateY(-2px);
}


@media (max-width: 1080px){
  .hero-img{
     height: 38%;
  }
}

@media (max-width: 768px){
  .nav-links{
     display:none;
  }
  .menu-toggle{
    display: flex;
  }
  .hero-content{
    padding: 0 1rem;
  }
  .nav-container{
    padding: 0 1rem;
  }

  .cursor,.cursor-follower{
    display: none;
  }

  .hero{
    display: flex;
    flex-direction: column-reverse;

  }
  .hero-img{
    height: 30%;
    margin: 0;
  }
     .about-text h1 {
    display: inline;
    font-size: 1.4rem;
    line-height: 1.6;
    text-align: left;
    padding: 0;
    margin: 0;
  }
   .skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    justify-items: center;
  }

  .skill-item {
    width: 100%;
    max-width: 160px;
  }
}

@media (max-width: 480px) {
  .about-text h1 {
    font-size: 1.3rem;
    line-height: 1.4;
    padding: 0;
    margin: 0;
  }
  .skills-list {
    grid-template-columns: 1fr 1fr;
  }

  .skill-item {
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
  }
}
 