/* --- INHERIT VARIABLES (Ensure these match your main CSS) --- */
:root {
    --primary-color: #6366f1;
    --secondary-color: #ec4899;
    --bg-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --font-main: 'Inter', sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    /* Background Gradients */
    background-image:
        radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(236, 72, 153, 0.15) 0%, transparent 40%);
    background-attachment: fixed; /* Keeps gradient verifying while scrolling */
}

/* --- CONTACT LAYOUT --- */
.contact-section {
    padding: 50px 5% 80px; /* Top padding for fixed navbar */
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, white, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info is smaller, Form is wider */
    gap: 40px;
    align-items: start;
}

/* --- LEFT SIDE: INFO CARDS --- */
.info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: 0.3s;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.info-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: white;
}

.info-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- RIGHT SIDE: FORM --- */
.form-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Custom Input Styling */
.form-control {
    width: 100%;
    background: rgba(15, 23, 42, 0.6); /* Darker inside input */
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: 0.3s;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: rgba(15, 23, 42, 0.9);
}

/* Textarea specific */
textarea.form-control {
    resize: vertical; /* Allow vertical resizing only */
    min-height: 120px;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr; /* Stack vertically */
    }
    
    .section-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 40px 5% 60px;
  }

  .section-header h1 {
    font-size: 2.2rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .form-wrapper {
    padding: 30px;
  }
}
@media (max-width: 480px) {

  /* Header */
  .section-header {
    margin-bottom: 40px;
  }

  .section-header h1 {
    font-size: 1.9rem;
    line-height: 1.2;
  }

  /* Info cards stack better */
  .info-card {
    flex-direction: row;
    gap: 15px;
    padding: 18px;
  }

  .icon-box {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .info-details h3 {
    font-size: 1rem;
  }

  .info-details p {
    font-size: 0.85rem;
    word-break: break-word;
  }

  /* Form spacing */
  .form-wrapper {
    padding: 22px;
    border-radius: 16px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .form-control {
    padding: 13px;
    font-size: 0.95rem;
  }

  textarea.form-control {
    min-height: 100px;
  }

  /* Button */
  .submit-btn {
    padding: 14px;
    font-size: 0.95rem;
    letter-spacing: 0.8px;
  }
}
@media (max-width: 360px) {
  .section-header h1 {
    font-size: 1.7rem;
  }

  .info-card {
    padding: 15px;
  }

  .form-wrapper {
    padding: 18px;
  }
}
