/* Import Montserrat font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap');

body {
    background-color: #0f0f0f;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Navbar */
.navbar {
    background: #000;
    padding: 10px 5px;
    border-radius: 50px;
    display: flex;
    position: sticky;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 5px;
    padding: 0;
    margin: 0;
}

.navbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: 0.3s;
}

/* Hover effect */
.navbar li:hover a {
    transform: scale(0.8);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Optional: Add a tooltip effect */
.navbar li::after {
    content: attr(data-title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.navbar li:hover::after {
    opacity: 1;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-top: 200px;
}

.hero h1 {
    margin-bottom: 0px;
    font-size: 50px;
    font-weight: 800;
    color: #818181;
}

.hero h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 50px;
    font-weight: 800;
}

.hero p {
    margin-bottom: 50px;
    font-size: 20px;
    color: #818181;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn.primary {
    background: #007bff;
    color: #fff;
}

.btn.secondary {
    background: #222;
    color: #fff;
}

.hero-image img {
    margin-top: 40px;
    width: 300px;
    max-width: 100%;
}

/* =========================
   Extra Responsive Adjustments
   ========================= */

/* Small screens (phones) */
@media (max-width: 480px) {

    /* Navbar */
    .navbar {
        padding: 6px 4px;
        border-radius: 20px;
    }
    .navbar a {
        width: 40px;
        height: 40px;
    }
    .navbar li::after {
        font-size: 10px;
        bottom: -24px;
    }

    /* Hero */
    .hero {
        margin-top: 120px;
        padding: 0 10px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero h2 {
        font-size: 28px;
    }
    .hero p {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .buttons {
        flex-direction: column;
        gap: 12px;
    }
    .btn {
        width: 100%;
        max-width: 240px;
        text-align: center;
    }

    /* Service cards single column */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Carousel */
    .carousel img {
        height: 36px;
    }

    /* Testimonials */
    .testimonial-container {
        gap: 15px;
        padding: 0 10px;
    }
    .testimonial {
        font-size: 13px;
    }

    /* Footer */
    .footer-section ul li {
        text-align: center;
    }
}

/* Medium screens (tablets) */
@media (min-width: 481px) and (max-width: 900px) {

    /* Navbar spacing */
    .navbar a {
        width: 45px;
        height: 45px;
    }

    /* Hero */
    .hero h1 {
        font-size: 40px;
    }
    .hero h2 {
        font-size: 34px;
    }

    /* Services grid in two columns */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    /* Testimonials side-by-side */
    .testimonial-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }
    .testimonial-left,
    .testimonial-right {
        width: 45%;
    }
}

/* Large screens (desktops) */
@media (min-width: 901px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* Recent Projects Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: bold;
}

.section-header .see-all {
    color: #1E90FF;
    text-decoration: none;
    font-size: 16px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-item {
    background: #000000;
    padding: 10px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
 
.project-item video {
    width: 100%;
    height: auto;
    border-radius: 20px;    
}

/* Custom styling for video */
.project-item.video video {
    max-height: 400px;
}
.project-item {
  background-color: #111111;
  padding: 24px;
  margin: 0 auto 60px auto;
  border-radius: 16px;
  text-align: center;
  max-width: 720px; /* or 100% */
  box-shadow: 0 0 12px rgba(0,0,0,0.3);

  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-title {
  font-size: 20px;
  font-weight: 600;
  color: #dcdcdc;
  margin-bottom: 12px;
}

.project-video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0 auto;
  display: block;
}

.project-description {
  font-size: 14.5px;
  color: #dcdcdc;
  margin-top: 16px;
  line-height: 1.6;
  max-width: 90%;
}

/* What I Do Section */
.what-i-do {
    padding: 60px 20px;
    color: #fff;
    text-align: left;
    margin-top: 50px; /* Adds space above "What I Do" */
}

.what-i-do h2 {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 30px;
}

/* Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
    max-width: 720px;
    margin: auto;
}

/* Individual Service Cards */
.service-card {
    a {
        color: white; /* Change this to any color you want */
        text-decoration: none; /* Removes the underline */
    }
    
    a:hover {
        color: gray; /* Change this to the hover color you prefer */
}
}
.service-card {
    background: #111;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.service-card:hover {
    transform: translateY(-5px);
}

/* Icon Circle */
.icon {
    width: 60px;
    height: 60px;
    background: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    margin-bottom: 15px;
}

/* Icon Images */
.icon img {
    width: 30px;
}

/* Titles */
.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Descriptions */
.service-card p {
    font-size: 14px;
    color: #bbb;
}
/* responsive adjustment*/
@media (max-width: 768px) {
    .what-i-do h2 {
        font-size: 1.8rem;
    }
    .what-i-do-container {
        grid-template-columns: 1fr; /* Stack items on smaller screens */
    }
}

/* Software I Use Section */
.software-i-use {
    text-align: center;
    background: #0f0f0f;
    color: #fff;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.software-i-use h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Carousel Wrapper */
.carousel {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
    padding: 40px 0;
}

/* Scrolling Effect */
.carousel-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scroll-left 10s linear infinite;
}

/* Software Logos */
.carousel img {
    height: 50px; /* Adjust based on logo size */
    filter: grayscale(100%);
    opacity: 6;
    transition: opacity 0.3s, filter 0.3s;
}

.carousel img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Keyframes for Scrolling Right to Left */
@keyframes scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Fade Effect on Both Sides */
.carousel::before,
.carousel::after {
    content: "";
    position: absolute;
    top: 0;
    width: 200px; /* Adjust fade width */
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.carousel::before {
    left: 0;
    background: linear-gradient(to right, #0f0f0f, rgba(0, 0, 0, 0));
}

.carousel::after {
    right: 0;
    background: linear-gradient(to left, #0f0f0f, rgba(0, 0, 0, 0));
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .carousel-track {
        animation-duration: 15s;
    }
    .carousel img {
        height: 40px;
    }
}

/* Spacing Between Sections */
.testimonial-section {
    margin-top: 60px; /* Adds space below "Software I Use" */
    padding: 40px 20px;
}

/* "What Others Say" Title */
.testimonial-section h2 {
    font-size: 2rem;
    margin-bottom: 50px;
    text-align: center;
    padding-left: 20px;
}

/* Testimonial Container */
.testimonial-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    overflow: hidden;
    padding: 20px 0;
}

/* Left & Right Columns */
.testimonial-left,
.testimonial-right {
    width: 300px;
    height: 400px; /* Adjust as needed */
    overflow: hidden;
    position: relative;
}



/* Testimonial Track */
.testimonial-track {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: absolute;
}

/* Left Moves Top to Bottom */
.testimonial-left .testimonial-track {
    animation: scroll-down 35s linear infinite;
}

/* Right Moves Bottom to Top */
.testimonial-right .testimonial-track {
    animation: scroll-up 35s linear infinite;
}

/* Keyframes for Infinite Scrolling */
@keyframes scroll-down {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0%);
    }
}

@keyframes scroll-up {
    from {
        transform: translateY(0%);
    }
    to {
        transform: translateY(-100%);
    }
}

/* Testimonial Cards */
.testimonial {
    background: #111;
    padding: 20px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.1);
}

/* Profile Info */
.testimonial img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.testimonial .name {
    font-weight: bold;
}

.testimonial .role {
    font-size: 12px;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonial-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .testimonial-left, .testimonial-right {
        width: 90%;
    }
}

/* Call-to-Action (CTA) Section */
.cta-section {
    margin-top: 80px; /* Space below the testimonials */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}

/* CTA Card */
.cta-card {
    background-image: linear-gradient(to top, #434343 0%, black 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 700px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: background 0.5s ease-in-out;
}

/* Gradient Animation on Scroll */
@keyframes gradient-shift {
    0% { background-position: left top; }
    100% { background-position: right bottom; }
}

.cta-card.scrolled {
    background: linear-gradient(135deg, #002C60, #003A80);
    animation: gradient-shift 1s ease-in-out;
}

/* CTA Heading */
.cta-card h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* CTA Description */
.cta-card p {
    font-size: 16px;
    opacity: 0.8;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    background: #3F86F6;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #5A9CFF;
}

/* Responsive */
@media (max-width: 768px) {
    .cta-card {
        max-width: 90%;
        padding: 30px;
    }
    
    .cta-card h2 {
        font-size: 22px;
    }
    
    .cta-card p {
        font-size: 14px;
    }
}

footer {
    background-color: #0f0f0f;
    color: white;
    padding: 20px;
    text-align: center;
  }
  .footer-container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    max-width: 1000px;
    margin: auto;
    border-top: 1px solid white;

  }
  .footer-section h4 {
    font-weight: bold;
  }
  .footer-section ul {
    a {
        color: white; /* Change this to any color you want */
        text-decoration: none; /* Removes the underline */
    }
    
    a:hover {
        color: gray; /* Change this to the hover color you prefer */
    }
    
    list-style: none;
    padding: 0;
  }
  .footer-section ul li {
    margin: 5px 0;
    font-weight: 800;
    text-align: left;
  }
  .footer-section ul li a {
    color: white;
    text-decoration: none;
  }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    max-width: 1000px;
    margin: auto;
    border-top: 1px solid white;
  }
  @media (max-width: 768px) {
    .footer-container {
      flex-direction: column;
      text-align: center;
    }
    .footer-bottom {
      flex-direction: column;
      text-align: center;
    }
  }