/* Root colors */
:root {
  --bg-dark: #0b1220;
  --bg-light: #f9fafc;
  --card-dark: #111a2b;
  --card-light: #ffffff;
  --text-dark: #e8edf6;
  --text-light: #1e293b;
  --primary: teal;
  --secondary: #3b82f6;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text-dark);
  transition: 0.3s;
}
body.light {
  background: var(--bg-light);
  color: var(--text-light);
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}
.logo {
  background: var(--primary);
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 18px;
}
.nav a {
  margin: 0 12px;
  text-decoration: none;
  color: inherit;
  font-weight: 500;
}
.nav button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
}
.hero-text {
  flex: 1;
  min-width: 280px;
}
.hero-text h2 {
  font-size: 2.2rem;
  color: var(--primary);
}
.hero-text p {
  font-size: 1.1rem;
}
.cta {
  margin: 20px 0;
}
.btn {
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  margin-right: 12px;
  font-weight: 600;
  transition: 0.3s;
  display: inline-block;
}
.btn.primary {
  background: var(--primary);
  color: white;
}
.btn:hover {
  transform: scale(1.05);
}
.socials a {
  margin-right: 15px;
  color: var(--secondary);
  font-weight: 500;
}
.hero-photo img {
  width: 260px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Cards */
.card {
  background: var(--card-dark);
  margin: 20px 0;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: 0.3s;
}
.card:hover {
  transform: translateY(-4px);
}
body.light .card {
  background: var(--card-light);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
h3 {
  margin-top: 0;
  color: var(--primary);
}

/* Skills with progress bars */
.skill-bar {
  margin: 12px 0;
}
.skill-bar span {
  font-weight: 600;
  display: block;
}
.progress {
  background: #1f2937;
  border-radius: 8px;
  overflow: hidden;
  height: 10px;
  margin-top: 6px;
}
.progress div {
  height: 100%;
  background: var(--primary);
  width: 0;
  transition: width 1.5s ease-in-out;
}
body.light .progress {
  background: #e5e7eb;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  margin-top: 30px;
  border-top: 1px solid var(--primary);
}
