/* ========= GLOBAL STYLES ========= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "Inter", sans-serif;
}

body {
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

h1, h2, h3 {
  font-weight: 600;
  color: #f8fafc;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #38bdf8;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #38bdf8;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ========= NAVBAR ========= */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.9);
  padding: 1rem 2rem;
}

.nav-logo .logo-text {
  font-size: 1.5rem;
  color: #38bdf8;
  font-weight: 600;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: #f8fafc;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #38bdf8;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #e2e8f0;
  border-radius: 3px;
}

/* ========= HERO ========= */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100vh;
  padding-top: 80px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.3;
}

.highlight {
  color: #38bdf8;
}

.hero-description {
  margin: 1rem 0 2rem;
  color: #cbd5e1;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.btn-primary {
  background: #38bdf8;
  color: #0f172a;
}

.btn-primary:hover {
  background: #0ea5e9;
}

.btn-secondary {
  border: 1px solid #38bdf8;
  color: #38bdf8;
}

.btn-secondary:hover {
  background: #38bdf8;
  color: #0f172a;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

.scroll-line {
  width: 2px;
  height: 30px;
  background: #38bdf8;
  margin: 0 auto 5px;
  animation: scrollAnim 1.5s infinite;
}

@keyframes scrollAnim {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ========= ABOUT ========= */
.about {
  padding: 5rem 0;
  background: #1e293b;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
}

.about-intro {
  color: #cbd5e1;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 600;
  color: #38bdf8;
}

/* ================= ABOUT IMAGE ================= */

.about-image{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
}

.image-placeholder{
    position:relative;
    width:340px;
    height:340px;
    border-radius:50%;
    overflow:hidden;
    background:#0f172a;
    border:5px solid #38bdf8;
    box-shadow:
        0 0 20px rgba(56,189,248,.35),
        0 0 50px rgba(56,189,248,.20);
    transition:0.4s ease;
    cursor:pointer;
}

.image-placeholder::before{
    content:"";
    position:absolute;
    inset:-10px;
    border-radius:50%;
    background:linear-gradient(
        45deg,
        #38bdf8,
        transparent,
        #38bdf8
    );
    z-index:-1;
    animation:rotateBorder 8s linear infinite;
}

.image-placeholder:hover{
    transform:translateY(-10px) scale(1.04);
    box-shadow:
        0 0 35px rgba(56,189,248,.60),
        0 0 80px rgba(56,189,248,.25);
}

.image-placeholder img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center top;
    display:block;
    transition:.4s;
}

.image-placeholder:hover img{
    transform:scale(1.08);
}

@keyframes rotateBorder{

    from{
        transform:rotate(0deg);
    }

    to{
        transform:rotate(360deg);
    }
}

@media(max-width:768px){

.about-image{
    margin-top:30px;
}

.image-placeholder{
    width:280px;
    height:280px;
}

}

@media(max-width:480px){

.image-placeholder{
    width:220px;
    height:220px;
}

}

/* ========= SKILLS ========= */
.skills {
  padding: 5rem 0;
  background: #0f172a;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category h3 {
  margin-bottom: 1rem;
  color: #38bdf8;
}

.skill-item {
  margin-bottom: 1.2rem;
}

.skill-item i {
  color: #38bdf8;
  margin-right: 8px;
}

.skill-bar {
  background: #1e293b;
  height: 8px;
  border-radius: 4px;
  margin-top: 5px;
  overflow: hidden;
}

.skill-progress {
  background: #38bdf8;
  height: 100%;
  width: 0;
  transition: width 1.2s ease;
}

/* ========= PROJECTS ========= */
.projects {
  padding: 5rem 0;
  background: #1e293b;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #0f172a;
  border-radius: 15px;
  overflow: hidden;
  transition: 0.3s;
  border: 1px solid transparent;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: #38bdf8;
}

.project-image {
  position: relative;
  height: 200px;
  width: 400px;
  background: #1e293b;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-placeholder {
  font-size: 3rem;
  color: #38bdf8;
}

.project-overlay {
  position: absolute;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: rgba(56,189,248,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  color: #fff;
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.project-link:hover {
  transform: scale(1.2);
}

.project-content {
  padding: 1.5rem;
}

.project-tech span {
  background: #1e293b;
  color: #38bdf8;
  border-radius: 12px;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  margin-right: 5px;
}

/* ========= CONTACT ========= */
.contact {
  padding: 5rem 0;
  background: #0f172a;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: flex-start;
}

.contact-info {
  flex: 1;
}

.contact-methods {
  margin: 1rem 0;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.7rem;
}

.contact-method i {
  color: #38bdf8;
}

.social-links {
  margin-top: 1rem;
}

.social-link {
  color: #38bdf8;
  font-size: 1.5rem;
  margin-right: 1rem;
  transition: color 0.3s;
}

.social-link:hover {
  color: #0ea5e9;
}

.contact-form {
  flex: 1;
}

.form-group {
  margin-bottom: 1rem;
}
.btn-primary{
    border: none;
    cursor: pointer;
}

input, textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid #1e293b;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 1rem;
  transition: border 0.3s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #38bdf8;
}

/* ========= FOOTER ========= */
.footer {
  text-align: center;
  padding: 2rem 0;
  background: #1e293b;
  font-size: 0.9rem;
  color: #94a3b8;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: #1e293b;
    flex-direction: column;
    width: 200px;
    text-align: right;
    padding: 1rem;
    display: none;
  }
  .contact-form{
    margin: auto;
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .about-content, .contact-content {
    flex-direction: column;
    text-align: center;
  }

  .about-stats {
    justify-content: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .btn {
    padding: 0.7rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .section-title {
    font-size: 1.7rem;
  }
}
