/* =====================
   GLOBAL
===================== */
:root {
  --accent: #18d26e;
  --dark: #040404;
  --glass: rgba(255, 255, 255, 0.08);
  --bg: #ffffff;
  --text: #111;
  --muted: #777;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Dark mode */
body.dark {
  --bg: #121212;
  --text: #f1f1f1;
  --glass: rgba(255, 255, 255, 0.05);
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: var(--accent);
  opacity: 0.8;
}

/* Lists */
ul {
  list-style: none;
  padding: 0;
}

/* =====================
   HEADER / HERO
===================== */
#header {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 0;
}

#header h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
}

#header h2 {
  font-size: 1.25rem;
  opacity: 0.85;
}

#header h2 span {
  border-bottom: 2px solid var(--accent);
}

/* Social icons */
.social-link a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--glass);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  transition: all 0.3s ease;
}

.social-link a:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-3px);
}

/* =====================
   SECTIONS
===================== */
section {
  padding: 80px 0;
}

.section-title h2 {
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title p {
  color: var(--muted);
}

/* =====================
   ABOUT
===================== */
.about img {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* =====================
   RESUME
===================== */
.pic {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  align-items: center;
}

.pic img {
  max-width: 100%;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .pic {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* =====================
   SERVICES
===================== */
.box {
  background: var(--glass);
  border-radius: 18px;
  padding: 25px;
  height: 100%;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.box:hover {
  transform: translateY(-8px);
  background: rgba(24, 210, 110, 0.12);
}

.box img {
  width: 64px;
  margin-bottom: 15px;
}

/* =====================
   PROJECTS
===================== */
#projects .col-md-4 {
  padding: 20px;
  border-radius: 16px;
  background: var(--glass);
  margin-bottom: 20px;
  transition: 0.3s;
}

#projects .col-md-4:hover {
  transform: translateY(-6px);
}

/* =====================
   SKILLS
===================== */
.skills .progress {
  background: rgba(255,255,255,0.1);
  height: 10px;
  border-radius: 20px;
  overflow: hidden;
}

.skills .progress-bar {
  background: var(--accent);
  border-radius: 20px;
  transition: width 1s ease;
}

/* =====================
   CONTACT
===================== */
#contact input,
#contact textarea {
  border-radius: 10px;
  border: 1px solid #ccc;
  padding: 10px;
}

#contact button {
  background: var(--accent);
  border: none;
  padding: 10px 20px;
}

#contact button:hover {
  opacity: 0.9;
}

/* =====================
   FOOTER
===================== */
footer {
  background: #020202;
  color: #ccc;
}

footer a {
  color: #ccc;
}

footer a:hover {
  color: var(--accent);
}

/* =====================
   UTILITIES
===================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}
