/* =========================================
       RESET & BASE STYLES
       ========================================= */
* {
    box-sizing: border-box;
}

/* =========================================
       CURSOR TRAIL STYLES (ORIGINAL STYLE)
       ========================================= */
.circle-container {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.circle {
    position: absolute;
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--cursor-trail-color);
    opacity: 0.3;
    pointer-events: none;
    transition: transform 0.15s linear;
}

/* =========================================
       NAVBAR STYLES
       ========================================= */
/* Navbar already fine, no big change */

.navbar {
  position: sticky;
  top: 20px;
  z-index: 1000;
  background: linear-gradient(
    to bottom,
    var(--glass-bg),
    var(--navbar-gradient-bottom)
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto 40px;
  box-shadow: var(--navbar-shadow);
}

/* Nav links layout */
/* Icon container */
.nav-links li a {
  width: 20px;
  height: 20px;
  padding: 6px;
  background: transparent;
}

.nav-links li a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  border-radius: 10px;

  /* 🔥 MAGIC */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

.drop-btn img {
  width: 18px;        /* 🔥 THIS IS THE KEY */
  height: 18px;
  object-fit: contain;
}

/* Optional hover */
.nav-links li a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}


/* Remove underline logic (icons don't need it) */
.nav-links img {
  max-width: 18px;
  max-height: 18px;
}


/* Dropdown */
.dropdown {
  position: relative;
}

.drop-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 10px;
  transition: background 0.25s ease;
}

.drop-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Dropdown menu */
.dropdown-menu {
  position: absolute;
  top: 45px;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 8px 0;
  min-width: 180px;
  display: none;
  box-shadow: var(--navbar-shadow);
}

.dropdown-menu li a {
  width: 100%;
  justify-content: flex-start;
  padding: 10px 16px;
  border-radius: 0;
  font-size: 14px;
}

.dropdown-menu li a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: none;
}

/* Show dropdown */
.dropdown:hover .dropdown-menu {
  display: block;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    width: 30px;
    background: transparent;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.theme-toggle {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    backdrop-filter: blur(10px);
    font-weight: 600;
    gap: 8px;
}

.theme-toggle:hover {
    background-color: var(--primary);
    color: var(--bg-primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

/* =========================================
       CONTACT CONTAINER STYLES
       ========================================= */
.contact-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

/* Animated background elements */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(2, 132, 199, 0.08) 0%,
            transparent 70%);
    animation: float 20s infinite linear;
}

.theme-dark .bg-circle {
    background: radial-gradient(circle,
            rgba(59, 130, 246, 0.1) 0%,
            transparent 70%);
}

.bg-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.bg-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
    animation-delay: -10s;
    background: radial-gradient(circle,
            rgba(124, 58, 237, 0.08) 0%,
            transparent 70%);
}

.theme-dark .bg-circle:nth-child(2) {
    background: radial-gradient(circle,
            rgba(139, 92, 246, 0.1) 0%,
            transparent 70%);
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(20px, 20px) rotate(90deg);
    }

    50% {
        transform: translate(0, 40px) rotate(180deg);
    }

    75% {
        transform: translate(-20px, 20px) rotate(270deg);
    }
}

/* CONTACT CONTAINER */
.contact-container {
    width: 100%;
    max-width: 650px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.contact-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.contact-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 20px 20px 0 0;
}

/* Header Section */
.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.header-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: white;
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.2);
    animation: pulse 2s infinite ease-in-out;
}

.theme-dark .header-icon {
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(2, 132, 199, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 30px rgba(2, 132, 199, 0.3);
    }
}

.theme-dark .header-icon {
    animation: pulse-dark 2s infinite ease-in-out;
}

@keyframes pulse-dark {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
    }
}

h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Form Elements */
form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-group {
    position: relative;
}

label {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
    color: var(--text-primary);
    transition: color 0.3s ease;
    background: var(--bg-card);
    padding: 6px 12px;
    border-radius: 8px;
    width: fit-content;
    border-left: 3px solid var(--primary);
}

label i {
    margin-right: 10px;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

input,
select,
textarea {
    width: 100%;
    padding: 18px 20px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
    background: var(--bg-card);
    transform: translateY(-2px);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    font-weight: 400;
    opacity: 0.7;
}

textarea {
    resize: none;
    min-height: 150px;
    line-height: 1.6;
    font-family: inherit;
}

/* Contact Info Section */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

.contact-card {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.contact-card i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 10px;
}

.contact-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-card p, .contact-card a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
}

.contact-card a:hover {
    color: var(--primary);
    text-decoration: underline;
}


/* Submit Button */
button[type="submit"] {
    width: 100%;
    padding: 20px;
    border-radius: 12px;
    border: none;
    background: var(--gradient-button);
    color: white;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(2, 132, 199, 0.25);
}

.theme-dark button[type="submit"]:hover {
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.3);
}

button[type="submit"]:active {
    transform: translateY(-1px);
}

button[type="submit"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.6s ease;
}

button[type="submit"]:hover::before {
    left: 100%;
}

button[type="submit"].loading {
    pointer-events: none;
    opacity: 0.8;
}

button[type="submit"].loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Back Link */
.back-link {
    margin-top: 32px;
    text-align: center;
}

.back-link a {
    color: var(--text-secondary);
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    background: var(--bg-primary);
    border: 1px solid var(--border);
}

.back-link a:hover {
    color: var(--primary);
    background: var(--primary-light);
    transform: translateX(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Character Counter */
.char-counter {
    text-align: right;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 10px;
    transition: color 0.3s ease;
    font-weight: 500;
}

.char-counter.warning {
    color: var(--warning);
}

.char-counter.error {
    color: var(--error);
}

/* Success Message */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(5, 150, 105, 0.95);
    color: white;
    padding: 18px 28px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(5, 150, 105, 0.3);
}

.theme-dark .success-message {
    background: rgba(16, 185, 129, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.success-message.show {
    transform: translateX(0);
}

.success-message i {
    font-size: 22px;
}

/* =========================================
       FOOTER STYLES
       ========================================= */
.footer {
    background: linear-gradient(180deg, #f8fafc, #e5e7eb);
    color: #1f2933;
    padding: 60px 80px 20px;
    font-family: "Inter", sans-serif;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
}

.footer-brand h3 {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #111827;
}

.footer-brand p {
    margin: 12px 0 20px;
    color: #4b5563;
    font-size: 14px;
}

.footer-social-icons {
    display: flex;
    gap: 14px;
}

.footer-social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2933;
    transition: all 0.3s ease;
}

.footer-social-icons a:hover {
    background: #2563eb;
    color: #ffffff;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 14px;
    position: relative;
    color: #111827;
}

.footer-links h4::after {
    content: "";
    width: 30px;
    height: 2px;
    background: #2563eb;
    position: absolute;
    left: 0;
    bottom: -6px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    text-decoration: none;
    color: #4b5563;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #111827;
}

.footer-bottom {
    border-top: 1px solid #d1d5db;
    margin-top: 50px;
    padding-top: 15px;
    text-align: center;
    font-size: 14px;
    color: #4b5563;
}

/* =========================
   FOOTER — DARK MODE
   ========================= */

.theme-dark .footer {
    background: linear-gradient(180deg, #0f172a, #020617);
    color: #e5e7eb;
}

.theme-dark .footer-brand h3 {
    color: #ffffff;
}

.theme-dark .footer-brand p {
    color: #9ca3af;
}

.theme-dark .footer-social-icons a {
    background: #020617;
    color: #e5e7eb;
}

.theme-dark .footer-social-icons a:hover {
    background: #2563eb;
    color: #ffffff;
}

.theme-dark .footer-links h4 {
    color: #ffffff;
}

.theme-dark .footer-links ul li a {
    color: #9ca3af;
}

.theme-dark .footer-links ul li a:hover {
    color: #ffffff;
}

.theme-dark .footer-bottom {
    border-top: 1px solid #1e293b;
    color: #9ca3af;
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer {
        padding: 50px 30px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-dark .scroll-to-top {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

.theme-dark .scroll-to-top:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.scroll-to-top.show {
    display: flex;
}

/* =========================================
       RESPONSIVE DESIGN
       ========================================= */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        margin: 20px auto 30px;
        border-radius: 12px;
    }

    .nav-logo {
        font-size: 1.3rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        right: 20px;
        width: 200px;
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        background: var(--bg-navbar);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid var(--border);
        border-radius: 14px;
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .contact-container {
        padding: 30px;
        max-width: 95%;
    }

    h1 {
        font-size: 28px;
    }

    .header-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }

    input,
    select,
    textarea {
        padding: 16px 18px;
    }

    button[type="submit"] {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .contact-container {
        padding: 24px;
        max-width: 100%;
    }
}

/* Print Styles */
@media print {
    .contact-container {
        box-shadow: none;
        border: 1px solid #ccc;
        max-width: 100%;
    }

    button,
    .back-link {
        display: none;
    }
}