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

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  padding: 2rem;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 4rem;
  background: linear-gradient(to right, #d0ebf3, #021730);
    -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  margin: 1rem 0;
  font-size: 1.2rem;
  color: #ccc;
}

.tags span {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  margin: 0.3rem;
  border-radius: 20px;
  font-size: 0.9rem;
  display: inline-block;
}

/* Hero Image */
.hero-image img {
  /* max-width: 500px;
  width: 100%;
  height: 50%;*/
   animation: float 3s ease-in-out infinite;          
  border-radius: 50%;   
  object-fit: cover;     
  border: 4px solid #091013; /* optional border */
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); 
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Social Icons */
footer.social-icons {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
}

footer.social-icons img {
  width: 35px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

footer.social-icons img:hover {
  transform: scale(1.2);
}
/* resposive */
/* ========== RESPONSIVE DESIGN ========== */

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-image img,
  .circle-img {
    max-width: 300px;
  }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .tags span {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
  }

  .hero-image img,
  .circle-img {
    width: 200px;
    height: 200px;
  }

  .about, .projects {
    padding: 1rem;
  }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }

  .navbar h2 {
    font-size: 1.2rem;
  }

  #theme-toggle {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  footer.social-icons img {
    width: 28px;
  }
}
/* project */
/* -------- Base / Theme -------- */
:root{
  --bg: #0b0e13;
  --card: #11151c;
  --text: #e8ecf1;
  --muted: #a6b0bf;
  --primary: #5b8cff;
  --ring: #93b4ff55;
  --border: #1c2330;
  --tag: #1b2332;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

@media (prefers-color-scheme: light) {
  :root{
    --bg:#f7f8fb;
    --card:#fff;
    --text:#0c1320;
    --muted:#526179;
    --primary:#3b6cff;
    --ring:#3b6cff22;
    --border:#e8ecf1;
    --tag:#edf2ff;
    --shadow: 0 10px 25px rgba(20,30,55,.08);
  }
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol";
  color:var(--text);
  background: radial-gradient(1200px 600px at 20% -10%, #1b2140 0%, transparent 40%), var(--bg);
  line-height:1.6;
}

/* -------- Layout -------- */
.container{
  max-width: 1100px;
  margin: 48px auto;
  padding: 0 20px;
}

.header h1{
  margin:0 0 40px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing:.3px;
  padding-top: 790px;
}

.subtitle{
  margin:0 0 28px;
  color:var(--muted);
  font-size: 0.98rem;
}

/* -------- Grid -------- */
.projects-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.project-card{
  
  grid-column: span 12;
  display:flex;
  flex-direction: column;
  background: var(--card);
  border:1px solid var(--border);
  border-radius: 16px;
  overflow:hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.project-card:hover{
  transform: translateY(-4px);
  border-color: var(--ring);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}

/* 2 columns on medium, 3 on large */
@media (min-width: 1024px){
  .project-card{ grid-column: span 6; }
}
@media (min-width: 1024px){
  .project-card{ grid-column: span 4; }
}

/* -------- Thumbnail -------- */
.thumb{
  display:block;
  aspect-ratio: 16/9;
  background: #0f1525;
  overflow:hidden;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: scale(1.02);
  transition: transform .35s ease;
}
.project-card:hover .thumb img{
  transform: scale(1.06);
}

/* -------- Content -------- */
.content{
  padding: 16px 16px 18px;
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.title{
  margin: 4px 0 0;
  font-size: 1.1rem;
}
.desc{
  margin:0;
  color: var(--muted);
  font-size: .95rem;
}

/* -------- Tags -------- */
.tags{
  list-style:none;
  padding:0;
  margin: 2px 0 2px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.tags li{
  font-size:.78rem;
  padding: 6px 10px;
  background: var(--tag);
  color: var(--text);
  border:1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
}

/* -------- Buttons -------- */
.actions{
  margin-top: 6px;
  display:flex;
  gap:10px;
}
.btn{
  display:inline-block;
  text-decoration:none;
  font-size:.9rem;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 6px 16px var(--ring);
}
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0); }

.btn.outline{
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}
.btn.outline:hover{
  border-color: var(--ring);
}
/* contact us */
:root {
  --bg: #0b0f12;
  --card: #0f1720;
  --muted: #98a0aa;
  --accent: #7c5cff;
  --accent-2: #00d4ff;
  --text: #e6eef7;
  --input-bg: rgba(255,255,255,0.03);
  --glass: rgba(255,255,255,0.02);
  --error: #ff6b6b;
  --radius: 12px;
  --transition: 220ms ease;
}
body.light {
  --bg: #f5f7fb;
  --card: #ffffff;
  --muted: #586273;
  --accent: #5b3cff;
  --accent-2: #007bff;
  --text: #0b1220;
  --input-bg: rgba(11,18,32,0.05);
  --glass: rgba(11,18,32,0.02);
  --error: #d64545;
}
* {box-sizing: border-box}
body {
  margin:0;
  font-family: Inter, sans-serif;
  background: var(--bg);
  color:var(--text);
  padding:40px 20px;
  display:flex;
  justify-content:center;
}
.contact-wrap {
  max-width:1100px;
  width:100%;
  background: var(--card);
  border-radius: var(--radius);
  padding:28px;
  display:grid;
  grid-template-columns: 1fr 420px;
  gap:24px;
}
.contact-left h2 {margin:0 0 8px}
.lead {color:var(--muted)}
.header-row {
  display:flex; justify-content:space-between; align-items:center; margin-bottom:12px;
}
.contact-form {display:flex; flex-direction:column; gap:14px;}
.row {display:flex; gap:12px;}
.col {flex:1;}
label {font-size:13px; color:var(--muted);}
input, textarea {
  width:100%; padding:12px; border-radius:10px;
  background:var(--input-bg); color:var(--text);
  border:1px solid transparent; font-size:14px;
}
textarea{min-height:120px;}
input:focus, textarea:focus{border-color:var(--accent);}
.btn {
  background: linear-gradient(90deg,var(--accent),var(--accent-2));
  color:white; border:0; padding:12px 16px;
  border-radius:10px; font-weight:600; cursor:pointer;
}
.error {color:var(--error); font-size:13px; display:none;}
.note {font-size:13px; color:var(--muted);}
.contact-right {display:flex; flex-direction:column; gap:12px;}
.divider {height:1px; background:var(--glass);}
.info-item {display:flex; gap:8px;}
.socials {display:flex; gap:10px;}
.theme-toggle {cursor:pointer; padding:6px; border-radius:50%; background:var(--glass);}
#responseMsg {margin-top:8px;}
.success {color:var(--accent);}
@media(max-width:980px){.contact-wrap{grid-template-columns:1fr;}}