

/* Reset-ish */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; color: #111; background: transparent; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }

.container { width: 92%; max-width: 1100px; margin: 0 auto; }

/* Header */
.site-header { position: sticky; top: 0; background: rgba(255,255,255,0.9); backdrop-filter: blur(6px); z-index: 50; border-bottom: 1px solid rgba(0,0,0,0.04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { font-weight: 700; letter-spacing: 0.6px; color: #0f1724; text-decoration: none; font-size: 18px; }
.nav { display: flex; gap: 14px; align-items: center; }
.nav a { text-decoration: none; color: #0f1724; padding: 8px 10px; border-radius: 8px; font-weight: 500; }
.nav a:hover { background: rgba(15,23,36,0.06); }
.btn-cv { padding: 8px 12px; border-radius: 8px; background: #5373b1; color: #fff;  text-decoration: none; }

/* Default Light Theme */
body {
  background: #fff;
  color: #111;
  position: relative;
}

/* Dark Theme */
body.dark {
  background: #0d1117;
  color: #e6edf3;
}

body.dark .site-header {
  background: rgba(13,17,23,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

body.dark .nav a {
  color: #e6edf3;
}
body.dark .btn-cv {
  background: #238636;
}
body.dark .btn.primary {
  background: #238636;
}
body.dark .btn.ghost {
  border: 1px solid rgba(255,255,255,0.2);
  color: #e6edf3;
}
body.dark .section {
  background: rgba(13, 17, 23, 0.72);
}
body.dark .contact-form{
  background: #0d1117;
}
body.dark .service-card {
  background: #161b22;
  color: #e6edf3;
}
body.dark .contact-section {
  background: rgba(22, 27, 34, 0.72);
  color: #e6edf3;
}
body.dark .site-footer {
  background: rgba(13, 17, 23, 0.75);
  color: #8b949e;
}
body.dark .section-title{
  color: #a39595;
}
body.dark .h3{
  color: #9ca1a7;
}
body.dark .logo{
  color: #fff;
}
body.dark .hero{
  background: rgba(13, 17, 23, 0.6);
}
/* Theme toggle button */
.theme-btn {
  margin-left: 12px;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: #eee;
  font-size: 16px;
}
body.dark .theme-btn {
  background: #30363d;
  color: #f0f6fc;
}
body.dark .project{
  background: #30363d ;
  
}
body.dark .btn.project {
   background:#ebecee; 
  color:#160101; 
  padding: 10px;
  margin-top: 40px;
  font-size: 15px;
}


/* Mobile nav toggle */
#nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
#nav-toggle span { display: block; width: 20px; height: 2px; background: #111827; margin: 4px 0; transition: all .2s ease; }

#nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

#nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* HERO */
.hero { padding: 48px 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: center; }
.hero-text h1 { font-size: 30px; margin-bottom: 8px; line-height: 1.05; }
.accent { color: #0f62fe; }
.tagline { color: #4b5563; font-weight: 600; margin-bottom: 14px; }
.intro { margin-bottom: 18px; color: #374151; }
.hero-ctas { display:flex; gap:10px; margin-bottom:12px; }
.btn { display:inline-block; padding:10px 14px; border-radius:10px; text-decoration:none; font-weight:600; }
.btn.primary { background:#0f62fe; color:#fff; }
.btn.ghost { border:1px solid rgba(15,23,36,0.08); color:#0f1724; background:transparent; }

/* Photo */
.photo-frame { width: 320px; max-width:100%; border-radius:14px; overflow:hidden; box-shadow: 0 8px 30px rgba(2,6,23,0.12); border: 1px solid rgba(15,23,36,0.04); transform: translateY(0); transition: transform .35s cubic-bezier(.2,.9,.3,1); }
.photo-frame img { display:block; width:100%; height:auto; object-fit:cover; aspect-ratio: 3/4; }

/* Sections */
.section { padding: 56px 0; }
.section-title { font-size:22px; margin-bottom:12px; }
.muted { color: #6b7280; margin-bottom:18px; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.skills { list-style: none; margin-top: 12px; color: #374151; }
.skills li { margin: 8px 0; }

/* SERVICES */

  .services {
    padding: 60px 20px;
    background: rgba(249,249,249,0.8);
    text-align: center;
  }

  .section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }

  .service-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 119, 255, 0.15);
  }

  .service-card .icon {
    margin-bottom: 15px;
  }

  .service-card svg {
    display: block;
    margin: 0 auto;
    transition: stroke 0.3s ease, transform 0.3s ease;
  }

  .service-card:hover svg {
    stroke: #005fcc;
    transform: scale(1.1);
  }

  .service-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #222;
  }

  .service-card p {
    color: #666;
    font-size: 1rem;
  }


/* PORTFOLIO 
.portfolio-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap:18px; margin-top:18px; }
.project { border-radius:12px; overflow:hidden; background:#fff; border:1px solid rgba(15,23,36,0.04); box-shadow:0 6px 18px rgba(2,6,23,0.05); display:flex; flex-direction:column; }
.project-visual { height:150px; display:flex; align-items:center; justify-content:center; color:#9ca3af; font-weight:600; background:linear-gradient(180deg,#f7f9fc,#ffffff); }
*/

/* PORTFOLIO */

  .portfolio {
    padding: 60px 20px;
    background: rgba(249,249,249,0.8);
    text-align: center;
  }

  .portfolio-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
  }

  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }

  .project {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

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

  .project-visual {
    margin-bottom: 15px;
  }

  .project-visual img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
  }

  .project-visual svg {
    display: block;
    margin: 0 auto;
    transition: stroke 0.3s ease, transform 0.3s ease;
  }

  .project-visual:hover svg {
    stroke: #005fcc;
    transform: scale(1.1);
  }

  .project h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #222;
  }

  .project p {
    color: #666;
    font-size: 1rem;
  }
.btn.project {
   background:#66a0d6; 
  color:#fff; 
  padding: 10px;
  margin-top: 40px;
  font-size: 15px;
}

/*Contact Form*/

  .contact-section {
    background: rgba(249,249,249,0.8);
    padding: 60px 20px;
    text-align: center;
  }

  .contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
  }

  .contact-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #666;
  }

  .contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
  }

  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
  }

  .form-group input:focus,
  .form-group textarea:focus {
    border-color: #0077ff;
    outline: none;
    box-shadow: 0 0 8px rgba(0, 119, 255, 0.2);
  }

  .btn-submit {
    display: inline-block;
    width: 100%;
    padding: 14px;
    background: #0077ff;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s;
  }

  .btn-submit:hover {
    background: #005fcc;
    transform: translateY(-2px);
  }

  @media (max-width: 768px) {
    .contact-section h2 {
      font-size: 2rem;
    }

    .contact-form {
      padding: 20px;
    }
  }

/* Footer */
.site-footer { padding:20px 0; border-top:1px solid rgba(0,0,0,0.04); background: #fff; }
.footer-inner { display:flex; gap:10px; align-items:center; justify-content:space-between; color:#6b7280; font-size:14px; }

/* Utilities */
.muted { color:#6b7280; }
.stat { margin-bottom:10px; color:#374151; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr 300px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .photo-frame { margin: 0 auto; width: 260px; }
  .nav { position: absolute; right:16px; top:68px; background: #fff; flex-direction:column; border-radius:10px; padding:10px; opacity:0; transform: translateY(-20px); pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease; box-shadow:0 12px 36px rgba(2,6,23,0.12);}
  .nav.show { opacity:1; transform: translateY(0); pointer-events: auto; }
  #nav-toggle { display:inline-block; }
  .header-inner { position:relative; }
  .footer-inner { flex-direction:column; gap:8px; text-align:center;}
  body.dark .nav { background: #0d1117; }
  body.dark #nav-toggle span { background: #e6edf3; }
}
#bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* below content, above page background */
  pointer-events: none; /* Let clicks pass through */
}
main,
.site-footer {
  position: relative;
  z-index: 1;
}
body.dark #bg-animation {
  background: #0d1117;
}
