:root {
  --bg-color: #121212;
  --text-color: #ffffff;
  --input-bg: #1e1e1e;
  --border-color: #08f700;
  --button-bg: #00ff2a;
  --button-hover: #00ff2a;
  --image-glow: rgba(4, 241, 56, 0.4);
}

body.light {
  --bg-color: #f1eae3;
  --text-color: #000000;
  --input-bg: #ffffff;
  --border-color: #08ff3d;
  --button-bg: #06fa2f;
  --button-hover: #0be215;
  --image-glow: rgba(155, 89, 182, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background 0.4s, color 0.4s;
  animation: fadeIn 1s ease-in;
}

/* Toggle Theme */
.theme-toggle {
  text-align: right;
  padding: 10px 30px;
}

#toggleTheme {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  padding: 8px 16px;
  background-color: var(--button-bg);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s ease;
}

#toggleTheme:hover {
  background-color: var(--button-hover);
}

#themeIcon {
  font-size: 20px;
  transition: transform 0.3s;
}

#toggleTheme:hover #themeIcon {
  transform: rotate(180deg);
}

/* Layout */
.container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-height: 90vh;
  padding: 20px 40px;
  gap: 30px;
  flex-wrap: wrap;
}

/* Image Section */
.left-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-wrapper {
  border: 4px solid var(--border-color);
  border-radius: 15px;
  padding: 5px;
  background-color: var(--image-glow);
  box-shadow: 0 0 30px var(--image-glow);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.image-wrapper:hover {
  transform: scale(1.03);
  box-shadow: 0 0 50px var(--border-color);
}

.contact-image {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  display: block;
}

/* Form Section */
.right-section {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.form-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

form {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea {
  padding: 10px 15px;
  font-size: 16px;
  background: var(--input-bg);
  border: 2px solid var(--border-color);
  color: var(--text-color);
  border-radius: 5px;
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  transform: scale(1.03);
}

textarea {
  resize: vertical;
  height: 80px;
}

button[type="submit"] {
  padding: 12px;
  background-color: var(--button-bg);
  color: white;
  border: none;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}

button[type="submit"]:hover {
  background-color: var(--button-hover);
  transform: scale(1.05);
}

/* Info Block */
.info {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
}

.info a {
  color: var(--text-color);
  text-decoration: none;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-icons img {
  width: 24px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s;
}

.social-icons img:hover {
  transform: scale(1.2);
}

/* Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    padding: 20px;
  }

  .form-container {
    flex-direction: column;
  }

  .contact-image {
    max-width: 100%;
  }

  .theme-toggle {
    text-align: center;
  }
}
