/* Global Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #5e64dc;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #777;
    --white: #fff;
    --black: #000;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: capitalize;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    margin: 10px 5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.section-title {
    text-align: center;
    margin-bottom: 25px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

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

/* Header Styles */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);

}

#header.scrolled {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: var(--transition);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}


#header.scrolled .logo {
color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--white);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

#header.scrolled .nav-links a {
    color: var(--secondary-color);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
}

#header.scrolled .mobile-menu {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-color));
    color: var(--white);
    padding: 210px 0 160px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}


.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:   linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
        url('../images/images.png') no-repeat center center / cover;
    opacity: 0.1;
    z-index: 0;
}

.profile-photo-container {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    animation: float 3s ease-in-out infinite;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: slideInRight 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.9;
    animation: slideInRight 1.2s ease;
}

.hero-btns {
    animation: slideInRight 1.4s ease;
}


/* About Section Styles */
.about {
  background-color: #f9f9f9;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 20px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #3498db;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
  padding-right: 30px;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 25px;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid #3498db;
  transition: all 0.3s ease;
}

.about-text p:hover {
  transform: translateX(10px);
  background-color: rgba(52, 152, 219, 0.05);
  padding: 15px;
  border-radius: 5px;
}

.about-image {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  aspect-ratio: 1/1; /* Square by default */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5; /* Fallback color */
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.5s ease;
}
/* Animation Effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-text {
  animation: fadeInUp 0.8s ease forwards;
}

.about-image {
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .about-text {
    padding-right: 0;
    text-align: center;
  }
  
  .about-text p {
    padding-left: 0;
    border-left: none;
    border-bottom: 3px solid #3498db;
    padding-bottom: 15px;
  }
  
  .about-text p:hover {
    transform: translateY(5px);
    padding: 10px;
  }
  
  .about-image {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .about {
    padding: 60px 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .about-text p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .about-text p {
    margin-bottom: 20px;
  }
}
/* Features/Services Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary-color);
    font-size: 2rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.feature-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
}

/* Qualifications Section */
.qualifications-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 5px;
}

.qualification-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.qualification-card:hover {
    transform: translateY(-5px);
}

.qualification-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qualification-card p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.qualification-card strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.date {
    display: inline-block;
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Testimonials Section */
.testimonials {
    background-color: #f9f9f9;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    display: none;
    animation: fadeIn 1s ease;
}

.testimonial.active {
    display: block;
}

.testimonial img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--primary-color);
}

.testimonial p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
    position: relative;
}

.testimonial p::before,
.testimonial p::after {
    content: '"';
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
}

.testimonial p::before {
    top: -20px;
    left: -10px;
}

.testimonial p::after {
    bottom: -40px;
    right: -10px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.testimonial-role {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* CTA Section */
.cta {
    background:var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
    opacity: 0.9;
    position: relative;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta button {
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.cta button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Contact Form Popup */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    width: 90%;
    max-width: 600px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.contact-form.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--accent-color);
}

.contact-form h2 {
    color: var(--secondary-color);
    margin-bottom: 30px;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-message {
    margin-top: 20px;
    padding: 10px 15px;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
    animation: fadeIn 0.5s ease;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Footer Styles */
footer {
    background-color: #2c3e50; /* Dark blue-gray background */
    color: #ffffff;
    padding: 60px 0 20px;
    text-align: center;
    font-family: 'Arial', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: #ecf0f1;
    margin-bottom: 25px;
    padding-bottom: 10px;
    position: relative;
    font-size: 1.2rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: #3498db;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.footer-links a:hover {
    color: #3498db;
    padding-left: 5px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

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

.social-links a:hover {
    background-color: #3498db;
    transform: translateY(-3px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info p {
    color: #bdc3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    font-size: 0.95rem;
}

.contact-info i {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .footer-column {
        width: 100%;
        max-width: 100%;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .contact-info p {
        justify-content: center;
    }
}
/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-photo-container {
        margin-bottom: 40px;
    }
    
    .about-content {
        flex-direction: column;
    }
}

/* Updated Mobile Menu Styles */
@media (max-width: 768px) {
    #header {
        padding: 15px 0;
    }
    
    #header.scrolled {
        padding: 10px 0;
    }
    
    nav {
        padding: 0;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        padding: 20px;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        overflow-y: auto;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-links a {
        color: var(--secondary-color);
        font-size: 1rem;
        padding: 15px 10px;
        display: block;
        width: 100%;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        color: var(--primary-color);
        background-color: rgba(52, 152, 219, 0.1);
        border-radius: 5px;
        padding-left: 15px;
    }
    
    .mobile-menu {
        display: block;
        z-index: 1001;
        padding: 5px;
    }
    
    /* Close icon when menu is active */
    .mobile-menu.active {
        color: var(--primary-color);
    }
    
    /* Hero adjustments for mobile */
    .hero {
        padding: 120px 0 50px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .profile-photo-container {
        width: 220px;
        height: 220px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .hero {
        padding: 100px 0 40px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .profile-photo-container {
        width: 200px;
        height: 200px;
    }
}