/* Global Styles */
:root {
    --primary-color: #3a86ff;
    --secondary-color: #8338ec;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --white-color: #ffffff;
    --black-color: #000000;
    --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, body {
  overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
    overflow-x: hidden;
}

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

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    color: var(--dark-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-color);
    text-align: center;
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}


.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
}

.logo img {
    height: 40px;
    transition: var(--transition);
    border-radius: 50px;
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar ul li {
    margin-left: 30px;
}

.navbar ul li a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.navbar ul li a:hover::after,
.navbar ul li a.active::after {
    width: 100%;
}

.navbar ul li a:hover,
.navbar ul li a.active {
    color: var(--primary-color);
}

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

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.1) 0%, rgba(131, 56, 236, 0.1) 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 span {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 30px;
}

.hero-image {
    width: 500px;
    height: 400px;
}

.hero-image .image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

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

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray-color);
}

.skills {
    margin-top: 30px;
}

.skills h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.skill-bar {
    margin-bottom: 15px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: 500;
}

.skill-level {
    height: 25px;
    background-color: yellow;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-level::after {
    content: attr(data-level);
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 1.5s ease;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    color: var(--dark-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    transform: translateY(-3px);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.project-image {
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--gray-color);
    margin-bottom: 15px;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-color);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin: 0 15px;
}

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

.testimonial-content::before,
.testimonial-content::after {
    content: '"';
    font-size: 3rem;
    color: rgba(58, 134, 255, 0.2);
    position: absolute;
}

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

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

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.author-info p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Certificates Section */
.certificate-container {
    display: flex;
    justify-content: center;
}

.certificate-card {
    max-width: 600px;
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    display: flex;
    transition: var(--transition);
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.certificate-image {
    flex: 1;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.certificate-info {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.certificate-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.certificate-info p {
    color: var(--gray-color);
    margin-bottom: 15px;
}

.certificate-info span {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-form {
    flex: 1;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 40px;
    transition: var(--transition);
    border-radius: 50px;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-links ul {
    list-style: none;
}

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

.footer-links ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #adb5bd;
}

.footer-contact i {
    color: var(--primary-color);
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--box-shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    pointer-events: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

@media (max-width: 950px) {
    .back-to-top {
        right: 10px;
        bottom: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeIn {
    animation-name: fadeIn;
}

.animate__delay-1 {
    animation-delay: 0.5s;
}

.animate__delay-2 {
    animation-delay: 1s;
}

/* Clients Section */
.clients {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.clients-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.client-icon {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 10px 30px rgba(58, 134, 255, 0.3);
}

.client-icon i {
    font-size: 4rem;
    margin-bottom: 10px;
}

.client-counter {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.client-timeline {
    width: 100%;
    max-width: 600px;
}

.timeline-item {
    margin-bottom: 20px;
}

.timeline-item .year {
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-item .count {
    color: var(--gray-color);
    margin-bottom: 10px;
}

.progress-bar {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    transition: width 1.5s ease;
}

.timeline-item.current .year {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .client-icon {
        width: 150px;
        height: 150px;
    }
    
    .client-icon i {
        font-size: 3rem;
    }
    
    .client-counter {
        font-size: 2rem;
    }
}

/* Responsive 992px */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .about-content,
  .contact-content {
    flex-direction: column;
    gap: 30px;
  }
}

/* Responsive 768px */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .navbar {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--white-color);
    transition: var(--transition);
    z-index: 999;
  }

  .navbar.active {
    left: 0;
  }

  .navbar ul {
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
  }

  .navbar ul li {
    margin: 15px 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .certificate-card {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .client-icon {
    width: 140px;
    height: 140px;
  }

  .client-icon i {
    font-size: 2.5rem;
  }

  .client-counter {
    font-size: 2rem;
  }
}

@media (max-width: 516px) {
  .hero-image .image-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: var(--box-shadow);
  }

  .hero-image .image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .about-image .image-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: var(--box-shadow);
  }

  .about-image .image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  .navbar {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(15px);
    background-color: rgba(255, 255, 255, 0.6); /* semi-transparent white */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }

  .navbar ul li a {
    color: var(--dark-color);
  }
}

/* Responsive 576px */
@media (max-width: 576px) {
  .hero {
    padding: 100px 0 50px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }
}
