/* EasyPrimeTech - Main Stylesheet */
/* Premium Tech Company Website */

/* CSS Variables for Theme Switching */
:root {
  /* Dark Theme (Default) */
  --primary-bg: #0f172a;
  --secondary-bg: #1e293b;
  --text-color: #f8fafc;
  --text-secondary: #cbd5e1;
  --accent-color: #f97316;
  --accent-light: #fb923c;
  --accent-dark: #ea580c;
  --card-bg: rgba(30, 41, 59, 0.8);
  --border-color: #334155;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --navbar-bg: rgba(15, 23, 42, 0.95);
  --accent-color-rgb: 249, 115, 22;
}

[data-theme="light"] {
  /* Light Theme */
  --primary-bg: #f8fafc;
  --secondary-bg: #ffffff;
  --text-color: #1e293b;
  --text-secondary: #475569;
  --accent-color: #f97316;
  --accent-light: #fb923c;
  --accent-dark: #ea580c;
  --card-bg: rgba(255, 255, 255, 0.9);
  --border-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.08);
  --navbar-bg: rgba(248, 250, 252, 0.95);
  --accent-color-rgb: 249, 115, 22;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Prevent horizontal scrolling */
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  /* Ensure body doesn't exceed viewport */
  max-width: 100vw;
  width: 100%;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  /* Prevent container from exceeding viewport */
  overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  /* Prevent text overflow */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1 {
  font-size: 3.5rem;
  background: linear-gradient(to right, var(--accent-color), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  /* Prevent text overflow */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-light);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background-color: var(--accent-color);
  color: white;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px var(--shadow-color);
  /* Prevent button overflow */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn:hover {
  background-color: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px var(--shadow-color);
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.btn-outline:hover {
  background-color: var(--accent-color);
  color: white;
}

/* ============================
   UPDATED THEME SWITCHER
   ============================ */
.theme-switcher {
    position: fixed;
    top: 1.5rem;
    right: 6rem;
    z-index: 1000;
    background-color: var(--secondary-bg);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    padding: 0;
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
}

.theme-toggle i {
    transition: all 0.3s ease;
}

/* Hide the label text, show only icon */
.theme-label {
    display: none;
}

/* ============================
   NAVIGATION
   ============================ */

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: white;
    padding: 8px 16px;
    z-index: 1001;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 0;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Enhanced Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--navbar-bg);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: all 0.3s ease;
    /* Ensure navbar doesn't cause horizontal scroll */
    max-width: 100vw;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
 width: 20%;
 height: auto;
}
.author-avatar img{
  width: 60px;
}
.logo img {
   width: 100%;
   height: auto;
   /* Ensure image is responsive */
   max-width: 100%;
}
.easy img{
  width: 110px;
}
/* Desktop Navigation */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 2rem;
    position: relative;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
    /* Prevent text overflow */
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent-color);
}

.nav-link.active::after {
    width: 100%;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.nav-link.has-dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--navbar-bg);
    backdrop-filter: blur(15px);
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--shadow-color);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid var(--border-color);
    list-style: none;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background-color: rgba(var(--accent-color-rgb), 0.1);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
}

/* Contact Button in Nav */
.nav-cta {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 101;
    font-size: 1.2rem;
}

.mobile-menu-btn:hover {
    background: var(--accent-dark);
}

.mobile-menu-btn.active {
    background: var(--accent-dark);
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),  url(assets/home1.jpg);
  background-position: center;
  background-size: cover;
  /* Ensure hero doesn't exceed viewport */
  width: 100%;
  max-width: 100vw;
}

.mobile{
    color: #cbd5e1!important;
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),  url(assets/mobile.jpg);
}

.web2{
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),  url(assets/web-service.jpg);
  background-size: cover;
  background-position: center;

}
.edu{
        color: #cbd5e1!important;
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),  url(assets/blog-slide2.jpg);
  background-size: cover;

}
.hero-content {
  max-width: 800px;
  z-index: 2;
  width: 100%;
}

.hero h1 {
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 1s ease 0.4s both;
  flex-wrap: wrap;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-color), transparent 70%);
  opacity: 0.1;
  z-index: 1;
}

.about{
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(assets/about-us.jpg);
  background-position: center;
  background-size: cover;
}
.web{
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(assets/web.jpg);
  background-position: center;
  background-size: cover;
}
.core{
  background-image:  url(assets/core.jpg);
  background-position: center;
  background-size: cover;
}

/* Sections */
.section {
  padding: 6rem 0;
  /* Ensure sections don't exceed viewport */
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}
.why{
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),  url(assets/why.jpg);
  background-position: center;
  background-attachment: fixed;
  background-size:cover ;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 700px;
  margin: 0 auto;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  /* Ensure card content fits */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

/* Services Overview */
.services-overview {
  background-color: var(--secondary-bg);
}

/* Why Choose EasyPrimeTech Responsive Components */
.why-choose-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    flex-shrink: 0;
}

.feature-text h4 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.feature-text p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.commitment-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.commitment-stats .stat-item {
    padding: 1rem;
}

.commitment-stats .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
}

.commitment-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Why Choose EasyPrimeTech Grid */
.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Stats */
.stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}

.stat-item {
  flex: 1;
  min-width: 200px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonial-slider {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  background-color: var(--card-bg);
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-color);
  margin: 0 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-size: 4rem;
  color: var(--accent-color);
  position: absolute;
  top: -1.5rem;
  left: -1rem;
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-color);
  margin-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--card-bg);
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: all 0.3s ease;
  position: relative;
}

.portfolio-item:hover {
  transform: translateY(-10px);
}

.portfolio-img {
  height: 250px;
  background-color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
}

.portfolio-content {
  padding: 1.5rem;
}

/* Call to Action */
.cta {
  text-align: center;
  background-color: var(--secondary-bg);
  padding: 5rem 0;
}

.cta h2 {
  margin-bottom: 1.5rem;
}

.cta p {
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

/* Footer */
.footer {
  background-color: var(--secondary-bg);
  padding: 4rem 0 2rem;
  width: 100%;
  max-width: 100vw;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.footer-links h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* Contact Form */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-color);
  font-size: 1rem;
  transition: border-color 0.3s ease;
  /* Ensure form controls don't overflow */
  max-width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Page Header */
.page-header {
  padding: 8rem 0 4rem;
  text-align: center;
  background-color: var(--secondary-bg);
}

.page-header h1 {
  margin-bottom: 1rem;
}

/* Service Detail */
.service-detail {
  max-width: 900px;
  margin: 0 auto;
}

.service-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

/* ============================
   CONTACT PAGE RESPONSIVENESS
   ============================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Contact form specific styles */
.contact-form-container {
    margin-bottom: 3rem;
}

.contact-info-container {
    margin-bottom: 3rem;
}

.contact-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h4 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.contact-text p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.department-contacts {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.department-contacts h4 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.department-item {
    margin-bottom: 1.5rem;
}

.department-item h5 {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    font-size: 1rem;
}

/* Social media grid */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.real{
  display: block!important;
}
.social-card {
    padding: 2rem 1.5rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
}

.social-icon {
    width: 80px;
    height: 80px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.social-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.social-card p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* FAQ styles */
.faq-item {
    margin-bottom: 1.5rem;
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.faq-item h4 {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.real{
  display: block!important;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================
   RESPONSIVE BREAKPOINTS
   ============================ */

/* Desktop adjustments */
@media (min-width: 769px) and (max-width: 992px) {
    .nav-links li {
        margin-left: 1.5rem;
    }
    .real{
  display: block!important;
}
    .nav-cta {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .why-choose-grid {
        gap: 3rem;
    }
}

/* Tablet and Mobile */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero-bg {
        width: 70%;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
    
    .why-choose-image {
        order: -1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form-container,
    .contact-info-container {
        margin-bottom: 0;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    /* Ensure viewport is properly constrained */
    html, body {
        width: 100%;
        overflow-x: hidden;
        position: relative;
    }
    
    /* Theme Switcher Mobile - Position in the middle */
    .theme-switcher {
        position: fixed;
        top: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: 44px;
        height: 44px;
        z-index: 102;
        background-color: var(--secondary-bg);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px var(--shadow-color);
    }
    
    /* Navbar Mobile */
    .navbar {
        padding: 0.8rem 0;
        width: 100%;
        max-width: 100vw;
    }
    
    .navbar .container {
        padding: 0 1.5rem;
        justify-content: space-between;
        width: 100%;
        max-width: 100%;
    }
    
    .logo {
        font-size: 1.5rem;
        margin-right: auto;
        width: 30%;
    }
    
    /* Mobile Menu Button - Positioned on the right */
    .mobile-menu-btn {
        display: flex;
        order: 3;
        margin-left: auto;
    }
    
    /* Mobile Navigation Links */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--primary-bg);
        backdrop-filter: blur(20px);
        padding: 100px 1.5rem 2rem;
        flex-direction: column;
        align-items: flex-start;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 100;
        margin: 0;
        box-sizing: border-box;
    }
    
    .nav-links.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        margin: 0 0 1rem 0;
        width: 100%;
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.3s ease;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Staggered animation for menu items */
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(6) { transition-delay: 0.35s; }
    
    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1.2rem;
        font-weight: 600;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        white-space: normal;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-cta {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1.1rem;
        margin-top: 1rem;
        border: 2px solid var(--accent-color);
    }
    
    /* Mobile Dropdown */
    .has-dropdown {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        background-color: transparent;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        width: 100%;
        margin-top: 0.5rem;
        border-left: 2px solid var(--accent-color);
    }
    
    .dropdown-menu.active {
        max-height: 300px;
    }
    
    .dropdown-menu a {
        padding: 0.8rem 0;
        border-left: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .dropdown-menu a:hover {
        background-color: transparent;
        border-left: none;
    }
    
    .hero {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 4rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-btns .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-bg {
        width: 100%;
        opacity: 0.05;
    }
    
    /* Container adjustments for mobile */
    .container {
        padding: 0 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    /* Section adjustments */
    .section {
        padding: 4rem 0;
    }
    
    /* Grid adjustments */
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    /* Stats adjustments */
    .commitment-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        min-width: 100%;
        margin-bottom: 2rem;
    }
    
    .why-choose-feature {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    /* Contact page adjustments */
    .contact-card,
    .department-contacts {
        padding: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-card {
        padding: 1.5rem;
    }
    
    .faq-item {
        padding: 1.2rem;
    }
    
    /* Footer adjustments */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Ensure all images are responsive */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix for inline styles in HTML */
    .why-choose-grid[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    h2::after {
        width: 40px;
        height: 3px;
        bottom: -8px;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    .real{
  display: block!important;
}
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .testimonial {
        padding: 1.5rem;
        margin: 0;
    }
    
    .portfolio-img {
        height: 200px;
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .theme-switcher {
        top: 1rem;
        width: 40px;
        height: 40px;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    /* Fix for logo size on very small screens */
    .logo {
        width: 35%;
    }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .card-grid {
        gap: 1.5rem;
    }
    
    .portfolio-grid {
        gap: 1.5rem;
    }
    
    .logo {
        width: 40%;
    }
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Improved accessibility for navigation */
.nav-links a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Improved focus styles */
:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}