/* CSS Variables */
:root {
    --primary-blue: #3b82f6;
    --dark-blue: #111827;
    --dark-gray: #1f2937;
    --text-color: #d1d5db;
    --light-text-color: #9ca3af;
    --border-color: #374151;
    --hover-blue: #2563eb;
    --focus-shadow: rgba(59, 130, 246, 0.3);
    --success-color: #10b981;
    --error-color: #ef4444;
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Keyframe animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    min-height: 100vh;
    line-height: 1.6;
}

body.dark-mode {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-gray) 100%);
    color: var(--text-color);
}

.container {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* Navigation Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.dark-mode .navbar {
    background: rgba(17, 24, 39, 0.9);
    border-bottom: 1px solid var(--border-color);
}

.nav-item {
    color: inherit;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(59, 130, 246, 0.1);
    /* color: var(--primary-blue); */
    transform: translateY(-2px);
}

.navbar-right-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dark-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* Hero Section */
.contact-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-bg);
    opacity: 0.1;
    z-index: -1;
}

.hero-content {
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-blue), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.hero-decoration {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 4rem;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

/* Contact Container */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Contact Information */
.contact-info {
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-blue);
}

.dark-mode .info-card {
    background: var(--dark-gray);
    border-left-color: var(--primary-blue);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.card-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--primary-blue);
}

.card-content p {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    animation: slideInRight 0.8s ease-out 0.4s both;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-mode .contact-form-box {
    background: var(--dark-gray);
    border: 1px solid var(--border-color);
}

.contact-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    text-align: center;
    opacity: 0.7;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--light-text-color);
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem rem 2rem 5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
    font-family: inherit;
}

.dark-mode .form-input,
.dark-mode .form-textarea {
    background: var(--dark-blue);
    color: var(--text-color);
    border-color: var(--border-color);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px var(--focus-shadow);
    transform: translateY(-2px);
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label,
.form-textarea:focus + .form-label,
.form-textarea:not(:placeholder-shown) + .form-label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.95);
    padding: 0 0.5rem;
    border-radius: 4px;
    transform: scale(0.9);
}

.dark-mode .form-input:focus + .form-label,
.dark-mode .form-input:not(:placeholder-shown) + .form-label,
.dark-mode .form-textarea:focus + .form-label,
.dark-mode .form-textarea:not(:placeholder-shown) + .form-label {
    background: var(--dark-gray);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 1rem;
}

.submit-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-blue), var(--hover-blue));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::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.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.hidden {
    display: none;
}

.loading-spinner {
    animation: pulse 1.5s infinite;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        /* flex-direction: column; */
        gap: 1rem;
        padding: 1rem;
    }
    
    .navbar-right-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .contact-hero {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-decoration {
        display: none;
    }
    
    .contact-container {
        padding: 1rem;
    }
    
    .contact-form-box {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .info-cards {
        gap: 1rem;
    }
    
    .info-card {
        padding: 1rem;
    }
}

    /* Back to Top Button Styles */
    #backToTop {
        /* Center the icon */
   display: none;
   align-items: center;
   justify-content: center;
   height: 60px;
   width: 60px;
   position: fixed;
   bottom: 80px;
   right: 20px;
   z-index: 1000;
   background: linear-gradient(135deg, #368dbc, #4facfe);
   color: rgb(98, 107, 187);
   border: none;
   border-radius: 50%;
   font-size: 20px;          /* size of the arrow icon */
  
   cursor: pointer;
   box-shadow: 0 4px 8px rgba(0,0,0,0.2);
   transition: transform 0.3s ease, opacity 0.3s ease;
   opacity: 0;          /* start hidden */
   pointer-events: none;
 
  
 }
 #backToTop.show {
    display:flex;
   opacity: 1;
   pointer-events: auto;
 }
 
 #backToTop:hover {
   transform: scale(1.1);
   opacity: 0.9;
 }
 
 @media (max-width: 600px) {
           #backToTop {
             height: 50px;
             width: 50px;
             font-size: 14px;
             bottom: 20px;
             right: 20px;
            
           }
           }
 
/* ================= Footer Styling (Blog Style) ================= */
.modern-footer {
  width: 100vw; /* Full viewport width */
  margin-left: calc(-50vw + 50%); /* Center it if inside a constrained container */
  background: linear-gradient(135deg, #1f3c88, #2c5aa0);
  color: #fff;
  padding: 60px 20px 20px;
  border-radius: 25px 25px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  overflow-x: hidden;
}


    .footer-top {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 2rem;
      margin-bottom: 30px;
    }

    .footer-brand h2 {
      font-size: 1.8rem;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
    }

    .footer-brand h2 i {
      margin-right: 10px;
      font-size: 1.6rem;
      vertical-align: middle;
    }

    .footer-brand p {
      font-size: 1rem;
      line-height: 1.5;
      opacity: 0.9;
    }

    .footer-links-section h4 {
      font-size: 1.1rem;
      margin-bottom: 10px;
      border-bottom: 2px solid rgba(255, 255, 255, 0.3);
      padding-bottom: 5px;
    }

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

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

    .footer-links-section ul li a {
      color: rgba(255, 255, 255, 0.8);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: 0.3s;
    }

    .footer-links-section ul li a:hover {
      color: #fff;
      transform: translateX(5px);
    }

    .social-icons {
      display: flex;
      gap: 10px;
      margin-top: 5px;
    }

    .social-icons a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 50%;
      color: #fff;
      transition: 0.3s;
    }

    .social-icons a:hover {
      background: #fff;
      color: #2c5aa0;
      transform: scale(1.1);
    }

    .footer-bottom {
      text-align: center;
      border-top: 1px solid rgba(255, 255, 255, 0.2);
      padding-top: 15px;
      font-size: 0.9rem;
      opacity: 0.8;
    }
    .footer-card {
      flex: 1 1 200px;
      background: rgba(255,255,255,0.1);
      border-radius: 12px;
      padding: 20px;
      min-width: 200px;
    }
 .footer-card ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .footer-card ul li {
      margin-bottom: 8px;
    }

    .footer-card ul li a {
      color: rgba(255, 255, 255, 0.8);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: 0.3s;
      
      padding: 5px;
      padding-left: 20px;
    }

    .footer-card ul li a:hover {
      color: #fff;
      transform: translateX(5px);
    }

    @media (max-width: 768px) {
      .footer-top {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 3rem;
      }

      .footer-brand h2 {
        font-size: 1.5rem;
      }

      .footer-links-section h4 {
        font-size: 1rem;
      }

      .footer-links-section ul li a {
        font-size: 0.95rem;
      }

      .social-icons a {
        width: 35px;
        height: 35px;
      }
    }

     @media (max-width: 756px) and (min-width: 730px),
       (max-width: 601px) and (min-width: 540px) {
  .footer-card {
    gap: 4rem;
  }
}

    @media (max-width: 480px) {
      .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
      }

      .social-icons {
        justify-content: center;
      }

      .footer-links-section ul li a {
        justify-content: center;
      }
    }
    .footer-bottom .heart {
  color: inherit;  
}


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Dark Mode Footer Styles */
body.dark-mode .modern-footer {
background: linear-gradient(135deg, #1a202c, #2d3748);
}

body.dark-mode .footer-section h3,
body.dark-mode .footer-section h4 {
color: #e0e0e0;
}

body.dark-mode .footer-section h4 {
border-bottom-color: rgba(224, 224, 224, 0.2);
}

body.dark-mode .footer-links a {
color: rgba(224, 224, 224, 0.8);
}

body.dark-mode .footer-links a:hover {
color: #90cdf4;
}

body.dark-mode .social-links a {
background: rgba(224, 224, 224, 0.1);
color: #e0e0e0;
}

body.dark-mode .social-links a:hover {
background: rgba(144, 205, 244, 0.2);
color: #90cdf4;
}

body.dark-mode .footer-bottom {
background: rgba(0, 0, 0, 0.3);
border-top-color: rgba(224, 224, 224, 0.1);
}
  
