/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/* Theme Variables */
:root{
  --bg:#f4f4f4;
  --text:#111;
  --card:#ffffff;
  --primary:#0077ff;
  --shadow:0 8px 25px rgba(0,0,0,0.08);
}

/* Dark Mode */
body.dark-mode{
  --bg:#0f172a;
  --text:#e2e8f0;
  --card:#1e293b;
}

/* Global Style */
html{
  scroll-behavior:smooth;
}

body{
  font-family:'Poppins',sans-serif;
  margin:0;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  transition:0.3s;
}

/* Header */
header{
  background:#111;
  color:white;
  padding:60px 20px;
  text-align:center;
}

header h1{
  font-size:40px;
  letter-spacing:1px;
}

.tagline{
  font-size:18px;
  margin-top:10px;
  opacity:0.9;
}

/* Navigation */
nav{
  margin-top:20px;
}

nav a{
  color:white;
  text-decoration:none;
  margin:0 15px;
  font-weight:500;
  transition:0.3s;
}

nav a:hover{
  color:#0077ff;
}

/* Sections */
section{
  max-width:1100px;
  margin:auto;
  padding:70px 20px;
}

h2{
  text-align:center;
  margin-bottom:40px;
  font-size:32px;
  position:relative;
}

/* Skills */
.skills{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:15px;
}

.skills div{
  background:var(--primary);
  color:white;
  padding:10px 20px;
  border-radius:25px;
  font-size:14px;
  transition:0.3s;
}

.skills div:hover{
  transform:scale(1.08);
}

/* Projects Grid */
.projects{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:30px;
}

/* Project Card */
.card{
  background:var(--card);
  border-radius:12px;
  box-shadow:var(--shadow);
  padding:20px;
  text-align:center;
  transition:0.3s;
}

.card:hover{
  transform:translateY(-10px);
  box-shadow:0 15px 35px rgba(0,0,0,0.15);
}

.card img{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:8px;
}

/* Buttons */
button{
  margin-top:15px;
  padding:10px 18px;
  border:none;
  background:var(--primary);
  color:white;
  border-radius:6px;
  cursor:pointer;
  transition:0.3s;
  font-weight:500;
}

button:hover{
  background:#0056cc;
  transform:scale(1.05);
}

/* Contact Form */
form{
  max-width:500px;
  margin:auto;
  display:flex;
  flex-direction:column;
  gap:15px;
}

input, textarea{
  padding:12px;
  border-radius:6px;
  border:1px solid #ccc;
  font-size:15px;
}

textarea{
  resize:none;
}

/* Footer */
footer{
  background:#111;
  color:white;
  text-align:center;
  padding:25px;
  margin-top:40px;
}

/* Dark Mode Toggle Button */
.theme-toggle{
  position:fixed;
  top:20px;
  right:20px;
  background:#0077ff;
  color:white;
  border:none;
  padding:10px 14px;
  border-radius:50px;
  cursor:pointer;
  font-size:14px;
}