/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
body {
  background: #f0f7ff;
  color: #333;
  text-align: center;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10%;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  border-bottom: 2px solid #1565C0;
}
.logo img {
  height: 50px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}
.nav-links li {
  display: inline;
}
.nav-links a {
  color: #0D47A1;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: #1565C0;
}
.btn-login {
  background: #1565C0;
  padding: 8px 15px;
  border-radius: 5px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}
.btn-login:hover {
  background: #0D47A1;
}
.menu-icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #1565C0;
}
@media (max-width: 768px) {
  .menu-icon {
    display: block;
    z-index: 1100;
  }
  .nav-links {
    position: absolute;
    top: 75px;
    right: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 0;
    text-align: center;
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  .nav-links.active {
    height: auto;
    padding: 10px 0;
  }
  .nav-links li {
    padding: 10px;
    border-bottom: 1px solid #eee;
  }
}

/* User Email */
#userEmail {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  padding: 0 10px;
  color: #0D47A1;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #5c6bc0, #1f3b93);
  color: white;
  padding: 80px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 20%, transparent 70%);
  animation: heroGlow 12s infinite linear;
}
@keyframes heroGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.hero-section h1 {
  font-size: 42px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.hero-section p {
  font-size: 20px;
  margin-top: 12px;
  opacity: 0.95;
}

/* Contact Form */
.contact-form {
  max-width: 620px;
  background: white;
  padding: 36px;
  margin: 60px auto;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  text-align: center;
  animation: floatBox 6s ease-in-out infinite;
}
@keyframes floatBox {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.contact-form h2 {
  font-size: 28px;
  color: #0D47A1;
  margin-bottom: 24px;
  font-weight: 700;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  margin: 10px 0;
  border: 2px solid #1565C0;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #f9fbff;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: #1E88E5;
  box-shadow: 0 0 12px rgba(21, 101, 192, 0.3);
  outline: none;
}
.contact-form button {
  background: linear-gradient(135deg, #1565C0, #0D47A1);
  color: white;
  padding: 14px 30px;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s ease;
}
.contact-form button:hover {
  background: linear-gradient(135deg, #0D47A1, #1565C0);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 6px 14px rgba(13, 71, 161, 0.3);
}

/* ========== Super Enhanced Contact Section ========== */
#reach {
    background: linear-gradient(135deg, #f4f6fb 0%, #e8eef9 100%);
    padding: 80px 20px;
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#reach::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231f3b93' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

#reach h2 {
    font-size: 38px;
    color: #1f3b93;
    font-weight: 700;
    margin-bottom: 50px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    animation: fadeInDown 1s ease-out;
}

.contact-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.contact-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 25px;
    width: 280px;
    box-shadow: 0 8px 25px rgba(31, 59, 147, 0.15);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    animation: contactBoxEntrance 0.8s ease-out forwards;
}

.contact-box:nth-child(1) { animation-delay: 0.1s; }
.contact-box:nth-child(2) { animation-delay: 0.2s; }
.contact-box:nth-child(3) { animation-delay: 0.3s; }

@keyframes contactBoxEntrance {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #1f3b93, #4b6cb7);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.contact-box:hover::before {
    transform: scaleX(1);
}

.contact-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 59, 147, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.contact-box:hover::after {
    opacity: 1;
}

.contact-box:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 35px rgba(31, 59, 147, 0.2);
}

.icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e1e9ff;
    transition: all 0.4s ease;
    position: relative;
}

.contact-box:hover .icon-container {
    background: #1f3b93;
    transform: rotateY(180deg);
}

.contact-box:hover .icon-container img {
    filter: brightness(0) invert(1);
}

.icon-container img {
    width: 44px;
    transition: all 0.4s ease;
}

.contact-box h3 {
    font-size: 20px;
    margin: 10px 0 8px;
    color: #1f3b93;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-box:hover h3 {
    color: #162c6d;
}

.contact-box p {
    color: #333;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.contact-box:hover p {
    color: #444;
}

/* Floating elements for contact section */
.contact-floating {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.contact-floating-element {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(31, 59, 147, 0.1);
    animation: floatContact 8s infinite ease-in-out;
}

.contact-floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 15px;
    height: 15px;
    animation-delay: 0s;
    animation-duration: 10s;
}

.contact-floating-element:nth-child(2) {
    top: 60%;
    left: 85%;
    width: 25px;
    height: 25px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.contact-floating-element:nth-child(3) {
    top: 80%;
    left: 15%;
    width: 18px;
    height: 18px;
    animation-delay: 4s;
    animation-duration: 9s;
}

@keyframes floatContact {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

@media (max-width: 768px) {
    #reach h2 {
        font-size: 30px;
    }
    
    .contact-container {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-box {
        width: 100%;
        max-width: 300px;
    }
}

/* ========== Super Enhanced Footer ========== */
footer {
    position: relative;
    background: linear-gradient(135deg, #dbe4f8 0%, #e1e7fa 100%);
    color: #333;
    padding: 80px 10% 40px;
    overflow: hidden;
    border-top: 5px solid #1f3b93;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231f3b93' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.footer-intro {
    max-width: 800px;
    text-align: left;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-intro h2 {
    font-size: 32px;
    color: #1f3b93;
    margin-bottom: 15px;
    font-weight: 700;
    animation: fadeInRight 1s ease-out;
}

.underline {
    width: 460px;
    height: 3px;
    background: linear-gradient(to right, #1f3b93, #4b6cb7, #1f3b93);
    margin-bottom: 20px;
    border-radius: 2px;
    animation: expandLine 1.5s ease-out;
}

@keyframes expandLine {
    0% {
        width: 0;
    }
    100% {
        width: 460px;
    }
}

.footer-intro p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    animation: fadeIn 1.2s ease-out 0.4s both;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/circles-light.png');
    opacity: 0.08;
    animation: bgAnimation 15s infinite alternate;
    z-index: 0;
}

@keyframes bgAnimation {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
    z-index: 1;
    margin-top: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
    color: #1f3b93;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, #1f3b93, #4b6cb7);
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 12px 0;
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease;
}

.footer-section ul li::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    color: #1f3b93;
    transition: all 0.3s ease;
}

.footer-section ul li:hover {
    padding-left: 20px;
}

.footer-section ul li:hover::before {
    opacity: 1;
    left: 0;
}

.footer-section ul li a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-section ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #1f3b93;
    transition: width 0.3s ease;
}

.footer-section ul li a:hover {
    color: #1f3b93;
}

.footer-section ul li a:hover::after {
    width: 100%;
}

.footer-section p a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section p a:hover {
    color: #1f3b93;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(31, 59, 147, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1f3b93, #4b6cb7);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.social-icons a:hover::before {
    opacity: 1;
}

.social-icons a:hover {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 8px 15px rgba(31, 59, 147, 0.3);
}

.social-icons img {
    width: 24px;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-icons a:hover img {
    filter: brightness(0) invert(1);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(31, 59, 147, 0.2);
    text-align: center;
    font-size: 15px;
    color: #333;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin: 8px 0;
}

.policy-link {
    color: #1f3b93 !important;
    text-decoration: none !important;
    font-weight: 600;
    position: relative !important;
    z-index: 9999 !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
}

.policy-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1f3b93;
    transition: width 0.3s ease;
}

.policy-link:hover {
    transform: translateY(-2px);
}

.policy-link:hover::after {
    width: 100%;
}

/* Floating elements for footer */
.footer-floating {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.footer-floating-element {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(31, 59, 147, 0.08);
    animation: floatFooter 10s infinite ease-in-out;
}

.footer-floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.footer-floating-element:nth-child(2) {
    top: 60%;
    left: 85%;
    animation-delay: 3s;
    animation-duration: 12s;
}

.footer-floating-element:nth-child(3) {
    top: 80%;
    left: 15%;
    animation-delay: 6s;
    animation-duration: 18s;
}

@keyframes floatFooter {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(10deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    footer {
        padding: 60px 5% 30px;
    }
    
    .footer-intro h2 {
        font-size: 28px;
    }
    
    .underline {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Animation keyframes */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}