/* ========== THEME VARIABLES ========== */

:root {
    width: 100%;
  --bg: #ffffff;
  --bg-card: #f7f8fa;
  --text: #111;
  --text-light: #555;
  --accent: #0d49e1;
  border: 2px solid #2f81f7;
}



/* SWITCHING LIGHT */
/* Light Mode */
:root[data-theme="light"] {
  --bg: #ffffff;
  --text: #111;
  --accent: #0d49e1;
  --card-bg: #f7f7f7;
}

/* Dark Mode */
:root[data-theme="dark"] {
  --bg: #0e0e0e;
  --text: #f1f1f1;
  --accent: #5a8bff;
  --card-bg: #1a1a1a;
}

/* Apply theme */
body {
  background: var(--bg);
  color: var(--text);
  transition: background 0.4s ease, color 0.4s ease;
}

/* Animated Fade */
html.theme-transition,
html.theme-transition * {
  transition: background 0.4s ease, color 0.4s ease !important;
}

/* Toggle Button Design */
.theme-toggle {
  position: fixed;
  top: 22px;
  right: 20px;
  z-index: 10000;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Glow */
.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 18px var(--accent);
}

/* Icon animation */
.theme-toggle i {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.theme-toggle:hover i {
  transform: rotate(20deg);
  opacity: 0.8;
}


/* ========== GLOBAL STYLES ========== */

body {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  font-family: "Segoe UI", sans-serif;
}

/* ========== HEADER ========== */
.header {
  height: 10vh;
  padding: 2px;
  background: var(--bg-card);
  border-bottom: 3px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header img {
  width: 50px;
  border-radius: 8px;
  transition: 0.3s;
}

.header img:hover {
  transform: scale(1.05);
  background-color: green;
}

.actions {
  display: flex;
  gap: 18px;
  font-size: 1.4rem;
}

.actions a,
.theme-toggle {
  color: var(--text);
  padding: 8px;
  border-radius: 50%;
  transition: 0.3s;
}

.actions a:hover,
.theme-toggle:hover {
  background: var(--accent);
  color: #fff;
}

.theme-toggle {
  background: none;
  border: 2px solid var(--accent);
  cursor: pointer;
}

/* ========== HERO ========== */
.hero {
  text-align: center;
  padding: 40px 20px;

}

.hero-image {
  width: 110px;
  height: 110px;
  border-radius: 40%;
  border: 4px solid var(--accent);
  object-fit: fill;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  
}

.hero-title {
  font-size: 2rem;
  margin-top: 20px;
  color: var(--text);
}

/* ========== FORM ========== */
.contact-container {
  width: 90%;
  max-width: 950px;
  margin: auto;
  padding: 20px;
}

.form {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* GRID FIELDS */
.input-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.field {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.field input {
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  background: transparent;
  color: var(--text);
}

.field label {
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: var(--text-light);
}

.select-field select {
  height: 48px;
  border-radius: 8px;
  border: 2px solid var(--border);
  font-size: 1rem;
}

.textarea textarea {
  height: 160px;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
}

/* SUBMIT BUTTON */
.submit-btn {
  background: var(--accent);
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.3s;
}

.submit-btn:hover {
  background: #0737b8;
}

/* ========== FOOTER ========== */
.footer {
  text-align: center;
  padding: 40px 15px;
  margin-top: 30px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.social-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.social-links a {
  color: var(--text);
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: 0.3s;
  font-size: 1.2rem;
}

.social-links a:hover {
  background: var(--accent);
  color: #fff;
}

.crafted {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .input-group {
    flex-direction: column;
  }

  .header {
    padding: 10px 20px;
  }
}
