:root {
  --bg-color: #f0f4f8;
  --text-color: #333;
  --section-bg: #fff;
  --primary-color: #007bff;
  --accent-color: #28a745;
  --footer-bg: #222;
  --header-bg: linear-gradient(to right, #007bff, #0056b3);
}

body.dark {
  --bg-color: #1e1e2f;
  --text-color: #f0f0f0;
  --section-bg: #2b2b3d;
  --primary-color: #3399ff;
  --accent-color: #45d97a;
  --footer-bg: #111;
  --header-bg: linear-gradient(to right, #111c44, #0d0c29);
}

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

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
}

.hero {
  background: var(--header-bg);
  color: white;
  padding: 2rem 1rem;
  border-radius: 0 0 1rem 1rem;
  transition: background 0.3s;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.cv-button {
  background: var(--accent-color);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.cv-button:hover {
  opacity: 0.9;
}

.theme-toggle {
  padding: 0.6rem 1.2rem;
  background: #444;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.theme-toggle:hover {
  background: #666;
}

.social-links {
  margin-top: 1rem;
}

.social-links a {
  margin: 0 10px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.content {
  padding: 2rem 0;
}

.section {
  background: var(--section-bg);
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

footer {
  text-align: center;
  padding: 1.5rem 0;
  background: var(--footer-bg);
  color: #fff;
  border-radius: 1rem 1rem 0 0;
  margin-top: 2rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.col {
  flex: 1 1 100%;
}

@media (min-width: 992px) {
  .col {
    flex: 0 0 48%;
  }
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  padding: 0.8rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.contact-form button:hover {
  background: #0056b3;
}

/* Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1e1e2f;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ddd;
  border-top: 6px solid #28a745;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Animation */
.animated {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
