/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@600&family=Open+Sans:wght@400&display=swap');

/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    /* padding and border ik hi cheez mn add krdeta without affecting the width */


}


/* Navbar styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 20px;
    background-color: hsl(219, 30%, 18%);
}

/* Logo styling */
.logo a {
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 20px;
}

/* Navigation links */
.nav-links {
    list-style: none;
    display: flex;
    margin-right: 20px;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #cccccc; /* Dull white */
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 400;
    position: relative;
    transition: color 0.3s ease;
}

/* Hover effect */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover {
    color: white;
}

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

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0px 20px;
    background-color: hsl(219, 30%, 18%);
 
   
}

/* When this class is added, it will fade in */
.hero-image.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}
/* Hero Image */
.hero-image {
   
    margin-bottom:50px;
    
    transform: translateY(50px); /* Start position */
    transition: opacity 1s ease-out, transform 1s ease-out; 
    display: block; /* Ensure it remains in the layout */
   

}

/* Hero Heading */
.hero h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: white;
    max-width: 600px;
    line-height: 1.3;
    margin-bottom: 10px;
}

/* Hero Paragraph */
.hero p {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    color: #cccccc;
    max-width: 600px;
    margin-bottom: 20px;
}

/* Hero Button */
.hero-button {
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    padding: 10px 60px;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
    color: white;
    background: linear-gradient(90deg, hsl(176, 68%, 64%), hsl(198, 60%, 50%));
    border-radius: 25px;
    transition: 0.3s ease-in-out;
}

.hero-button:hover {
    background: linear-gradient(90deg, hsl(198, 60%, 50%), hsl(176, 68%, 64%));
}

/* Wrapper: Full Width with Background */
.features-wrapper {
    width: 100%;
    background: url('./images/bg-curvy-desktop.svg') no-repeat center center/cover;
    padding: 80px 0; /* Space above and below */
    display: flex;
    justify-content: center;
    background-color: hsl(219, 30%, 18%);
   
    
}

/* Features Container: Limited Width */
.features {
    width: 900px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-align: center;

    color:white;
}


/* Feature Box */
.feature-box {
    max-width: 350px;
    display: flex;
    flex-direction: column; /* Ensures content stacks properly */
    align-items: center; /* Centers everything */
    text-align: center;
    height: 100%; /* Ensures all boxes have equal height */
    opacity: 0; /* Initially hidden */
    transform: translateX(0px); /* Default offset (for right fade-in) */
    transition: opacity 1s ease-out, transform 1s ease-out;

}
/* Fade-in from left */
.feature-box.fade-in-left {
    opacity: 1;
    transform: translateX(-50px);
}

/* Fade-in from right */
.feature-box.fade-in-right {
    opacity: 1;
    transform: translateX(50px);
}

/* Feature Images */
.feature-box img {
    width: 80px; /* Adjust as needed */
    height: 80px; /* Keep a consistent size */
    object-fit: contain; /* Prevents distortion */
    margin-bottom: 15px;
   
}

/* Heading */
.feature-box h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 22px;
    margin-bottom: 12px;
  
}

/* Text (Three Lines) */
.feature-box p {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto;
    height: 4.5em;
    overflow: hidden;
    text-overflow: ellipsis;

}

/* About Section */
.about-section {
    width: 100%;
    padding: 100px 0;
    display: flex;
    justify-content: center;
    background-color: hsl(218, 28%, 13%);
}

/* Grid Container */
.about-container {
    width: 90%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 1x1 grid */
    align-items: center;
    gap: 50px;
    background-color: transparent;
}


.about-image, .about-content {
    opacity: 0;
    transform: translateX(0);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-left {
    opacity: 1;
    transform: translateX(-50px);
}

.fade-in-right {
    opacity: 1;
    transform: translateX(50px);
}

/* Left Side: Image */
.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  
}

/* Right Side: Content */
.about-content {
    text-align: left;
   
   
}

/* Heading */
.about-content h2 {
    font-size: 42px;
    font-family: "Raleway", sans-serif;
    margin-bottom: 15px;
   color: white;
}

/* Paragraph */
.about-content p {
    font-size: 16px;
    font-family: "Open Sans", sans-serif;
    line-height: 1.6;
    margin-bottom: 20px;
    color:white;
}

/* Button */
.about-btn {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    font-family: "Open Sans", sans-serif;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7); /* Dull white */
   
  
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    background: transparent;
}

/* Arrow inside button */
.about-btn .arrow {
    margin-left: 10px;
    transition: transform 0.3s ease-in-out;
}

/* Hover Effect (Same as Nav) */
.about-btn:hover {
    color: white;
    border-color: white;
    
}

.about-btn:hover .arrow {
    transform: translateX(5px);
}

/* Testimonial Section */
.testimonial-section {
    width: 100%;
    padding: 100px 0;
    display: flex;
    justify-content: center;
    background-color: hsl(218, 28%, 13%);
   
}

/* Grid Layout */
.testimonial-container {
    width: 80%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 1x3 Grid */
    gap: 40px;
    z-index: 1;
    position: relative;
}

/* Testimonial Card */
.testimonial-card {
  background-color: hsl(219, 30%, 18%);
    padding: 30px;
    border-radius: 10px;
   
    position: relative;
    text-align: start;
     
  
}



/* Quote Image (Behind First Card) */
.testimonial-card:first-child .quote-img {
    position: absolute;
    top: -50px;
    left: -5px;
    width: 80px;
    z-index: -1;

}

/* Testimonial Text */
.testimonial-text {
    font-size: 16px;
    font-family: "Open Sans", sans-serif;
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Author Info (Circle Image + Text) */
.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: stretch;
    gap: 15px;
    margin-top: 15px;
    
}

/* Circular Image */
.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    
}

/* Name & Designation */
.author-info h4 {
    font-size: 18px;
    font-family: "Raleway", sans-serif;
    margin-bottom: 5px;
    color: white;
}

.author-info p {
    font-size: 10px;
    font-family: "Raleway", sans-serif;
   
    color: #ffffff;
    margin: 0;
}

.signup-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh; /* Adjust as needed */
    background-color: hsl(218, 28%, 13%);
    padding: 30px 20px;
   
   
}


.signup-box {
    background-color: hsl(219, 30%, 18%);
    padding: 60px 40px;
    width: 800px; /* Less than 800px */

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Soft shadow */
    text-align: center;
}

.signup-box h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
    color:white;
}

.signup-box p {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: white;
    margin-bottom: 40px;
}

form {
    display: flex;
    gap: 10px;
}

input[type="email"] {
    flex: 1;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 24px;
    font-size: 16px;
}

button {
    background: linear-gradient(90deg, hsl(176, 68%, 64%), hsl(198, 60%, 50%));
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 24px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

button:hover {
    background: white;
    color: hsl(198, 60%, 50%);
    border: 1px solid hsl(198, 60%, 50%);
}

.footer {
    background-color: hsl(216, 53%, 9%);
    color: white;
    padding: 100px 20px;
    margin-top: -80px;
    display: flex;
    justify-content: center;
    align-items: center;
   

}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-col {
    flex: 1;
    min-width: 180px;
    gap: 12px;
   
}

.footer-logo {
    width: 150px; /* Adjust logo size */
    margin-bottom: 20px;
}

.footer p, .footer a {
    font-family: 'Open Sans', sans-serif;
    color: #bbb;
    text-decoration: none;
    font-size: 14px;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

.footer ul {
    list-style: none;
    padding: 10px 0px;
}

.footer h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-col p img {
    width: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Social Links Container */
.social-links {
    display: flex;
    gap: 10px; /* Reduce spacing between icons */
}

/* Social Link Wrappers */
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;  /* Adjusted circle size */
    height: 36px; /* Adjusted circle size */
    border-radius: 50%; /* Circular shape */
    background-color: hsl(219, 30%, 18%);
    transition: background 0.3s ease, transform 0.2s ease;
}

/* Ensure Images Fit Perfectly Inside */
.social-links a img {
    width: 18px;  /* Smaller icon size */
    height: 18px; /* Smaller icon size */
    object-fit: contain; /* Prevents distortion */
}

/* Hover Effect */
.social-links a:hover {
    background-color: hsl(176, 68%, 64%);
    transform: scale(1.1);
}


/* Responsive design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin: 10px 0;
    }

    .nav-links {
        flex-direction: column;
        margin-right: 0;
        gap: 10px;
    }

    .nav-links li {
        margin: 5px 0;
    }
    .hero {
        padding: 50px 15px;
    }

    .hero-image {
        max-width: 80%; /* Reduce image size */
        margin-bottom: 15px;
    }

    .hero h1 {
        font-size: 20px; /* Reduce heading size */
        max-width: 90%;
    }

    .hero p {
        font-size: 14px; /* Reduce paragraph size */
        max-width: 90%;
    }

    .hero-button {
        padding: 10px 40px;
        font-size: 16px;
    }
    /* Wrapper: Full Width with Background */
.features-wrapper {
  
    background: url('./images/bg-curvy-mobile.svg') no-repeat center center/cover;
    background-color: hsl(219, 30%, 18%);
   


}

    .features {
        grid-template-columns: 1fr; /* Stack in one column */
        padding: 60px 15px;
    }

    .feature-box {
        padding: 30px;
        max-width: 100%;
    }

    .about-container {
        grid-template-columns: 1fr; /* Stack on smaller screens */
        text-align: center;
    }

  /* Heading */
.about-content h2 {
    font-size: 30px;
    font-family: "Raleway", sans-serif;
    margin-bottom: 15px;
   color: white;
}

/* Paragraph */
.about-content p {
    font-size: 14px;
    font-family: "Open Sans", sans-serif;
    line-height: 1.6;
    margin-bottom: 20px;
    color:white;
}

.testimonial-container {
    grid-template-columns: 1fr; /* Stack testimonials */
}

.testimonial-card {
    max-width: 80%;
    margin: 0 auto;
}
.signup-box {
    width: 90%;
}

form {
    flex-direction: column;
}

input[type="email"], button {
    width: 100%;
}

.footer-container {
    flex-direction: column; /* Stack items vertically */
    align-items: center;
    text-align: center;
    gap: 20px; /* Add more space between sections */
}

.footer-col {
    width: 100%; /* Make each column take full width */
}

.footer .social-links {
    justify-content: center; /* Center social links */
}
}
