* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

:root {
  --primary-white: #ffffff;
  --primary-black: #000000;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --accent-color: #4a5568;
  --accent-hover: #2d3748;
  --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
  --shadow-3d: 0 20px 60px rgba(0, 0, 0, 0.3);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.main-content {
  padding-top: 80px;
  padding-bottom: 5rem;
  min-height: calc(100vh - 200px);
}

.section-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

.contact-hero {
  text-align: center;
  margin-bottom: 4rem;
  animation: slideInUp 0.8s ease-out;
}

.contact-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-black);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.contact-hero p {
  font-size: 1.3rem;
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.info-card {
  background: var(--primary-white);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.info-card h2 {
  font-size: 1.8rem;
  color: var(--primary-black);
  margin-bottom: 2rem;
  font-weight: 700;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.contact-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--gray-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-color);
  flex-shrink: 0;
}

.contact-details h3 {
  font-size: 1.2rem;
  color: var(--primary-black);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-details p {
  color: var(--gray-600);
  line-height: 1.6;
}

.contact-form-container {
  flex: 1;
  min-width: 300px;
  animation: slideInUp 0.8s ease-out 0.4s both;
}

.smartphone-frame {
  background: var(--primary-white);
  border-radius: 40px;
  padding: 3rem;
  box-shadow: var(--shadow-3d);
  border: 12px solid var(--gray-900);
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.smartphone-notch {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 25px;
  background-color: var(--gray-900);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  z-index: 2;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  color: var(--gray-600);
  font-size: 0.9rem;
  padding: 0 0.5rem;
}

.status-time {
  font-weight: 600;
}

.status-icons {
  display: flex;
  gap: 0.5rem;
}

.form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-header h2 {
  font-size: 1.8rem;
  color: var(--primary-black);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.form-header p {
  color: var(--gray-600);
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-group.inline-group {
  display: flex;
  gap: 1.5rem;
}

.form-group.inline-group .input-container {
  flex: 1;
}

.input-container {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 1.2rem 1.5rem;
  font-size: 1rem;
  background-color: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  color: var(--gray-800);
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-color);
  background-color: var(--primary-white);
  box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  top: -10px;
  left: 12px;
  font-size: 0.8rem;
  color: var(--accent-color);
  background-color: var(--primary-white);
  padding: 0 8px;
  z-index: 3;
}

.form-label {
  position: absolute;
  top: 1.2rem;
  left: 1.5rem;
  font-size: 1rem;
  color: var(--gray-500);
  transition: var(--transition);
  pointer-events: none;
  background-color: transparent;
  z-index: 2;
}

textarea.form-input {
  min-height: 150px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
}

.submit-btn {
  background-color: var(--accent-color);
  color: var(--primary-white);
  border: none;
  padding: 1.2rem 2.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 2rem;
}

.submit-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.submit-btn:active {
  transform: translateY(-1px);
}

.form-status {
  text-align: center;
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 500;
  display: none;
}

.form-status.success {
  background-color: rgba(72, 187, 120, 0.1);
  color: #48bb78;
  display: block;
}

.form-status.error {
  background-color: rgba(245, 101, 101, 0.1);
  color: #f56565;
  display: block;
}

@media (max-width: 1199px) {
  .contact-hero h1 { font-size: 3rem; }
  .contact-hero p { font-size: 1.1rem; }
  .smartphone-frame { padding: 2.5rem; }
}

@media (max-width: 991px) {
  .main-content { padding-top: 60px; }
  .contact-hero h1 { font-size: 2.8rem; }
  .contact-container { gap: 3rem; }
}

@media (max-width: 767px) {
  .main-content { padding-top: 50px; padding-bottom: 3rem; }
  .contact-hero h1 { font-size: 2.4rem; }
  .contact-hero p { font-size: 1rem; }
  .contact-container { flex-direction: column; gap: 3rem; }
  .smartphone-frame { padding: 2rem; border-width: 10px; border-radius: 30px; }
  .smartphone-notch { width: 150px; height: 20px; }
  .form-group.inline-group { flex-direction: column; gap: 2rem; }
}

@media (max-width: 575px) {
  .main-content { padding-top: 40px; }
  .contact-hero h1 { font-size: 2rem; }
  .contact-hero p { font-size: 0.95rem; }
  .info-card,
  .smartphone-frame { padding: 1.5rem; }
  .section-container { padding: 0 4%; }
}

@media (max-width: 424px) {
  .main-content { padding-top: 30px; }
  .contact-hero h1 { font-size: 1.8rem; }
  .info-card,
  .smartphone-frame { padding: 1.2rem; border-radius: 20px; }
  .smartphone-frame { border-width: 8px; }
  .smartphone-notch { width: 120px; height: 18px; }
  .contact-item { flex-direction: column; gap: 1rem; }
  .contact-icon { width: 40px; height: 40px; font-size: 1.2rem; }
}

@media (max-width: 374px) {
  .main-content { padding-top: 25px; }
  .contact-hero h1 { font-size: 1.6rem; }
  .contact-hero p { font-size: 0.9rem; }
  .form-input { padding: 1rem 1.2rem; font-size: 0.9rem; }
  .form-label { top: 1rem; left: 1.2rem; font-size: 0.9rem; }
  .submit-btn { padding: 1rem 2rem; font-size: 0.9rem; }
}

@media (max-width: 319px) {
  .contact-hero h1 { font-size: 1.4rem; }
  .contact-hero p { font-size: 0.85rem; }
  .info-card h2,
  .form-header h2 { font-size: 1.5rem; }
}
