/* A pre-set font from google APIs  */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body, header, section, .card, .form, input, .message {
    transition: background-color 0.3s ease, color 0.3s ease;
}

#theme-toggle {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    margin-left: 20px;
    color: #fff;
}


:root{
    --main-bule: #3a6cf4
}

/* -----------------DarkMode Function----------------- */
.dark-mode {
    background-color: #121212;
    color: white;
}

.dark-mode header {
    background-color: #1e1e1e;
}

.dark-mode .card {
    background-color: #222;
    color: white;
}

.dark-mode a {
    color: #4e9eff;
}

.dark-mode .form{
    background-color: #222;
    color: white;
    box-shadow: 0px 5px 10px rgba(255, 255, 255, 0.2); 
}

.dark-mode input,
.dark-mode .message{
    background-color: #333;
    color: #fff;
    border: 2px solid #4e9eff;
}


.dark-mode .submitbtn:hover {
    background: #3a6cf4;
}

.dark-mode .contact {
    background-color: #121212;
}


/* -----------------DarkMode Function----------------- */


*{
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}


header {
    background-color: #f0f0f0;
    width: 100%;
    position: fixed;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 200px ;
    top:0;
    transition: top 0.3 ease-in-out;
}

.logo{
    text-decoration: none;
    color: var(--main-bule);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.8em;
    text-align: left;
    padding-left: 15px;
}

.navigation a {
    
    color: var(--main-bule) ;
    text-decoration: none  ;
    font-size: 1.1em;
    font-weight: 500;
    padding-left: 30px;
}


.navigation a:hover{
    color: #601cfc;
}

section {
    padding: 100px 200px;
}

.main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: start;
    background: url(../Images/background.png) no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.main h2 {
    color: #fff;
    font-size: 1.4em;
    font-weight: 500;
}

.main h2 span {
    display: inline-block;
    margin-top: 10px;
    color: #4e9eff;
    font-size: 3em;
    font-weight: 600;
}

.main h3 {
    color: #fff;
    font-size: 2em;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 10px;
    margin-bottom: 30px;
}

.main-btn {
    color: #fff;
    background: linear-gradient(45deg, #3a6cf4, #4e9eff);
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    display: inline-block;
    padding: 0.9375em 2.1875em;
    letter-spacing: 1px;
    border-radius: 25px;
    margin: 2em auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 108, 244, 0.3);
    width: fit-content;
}

.main-btn:hover {
    background: linear-gradient(45deg, #4e9eff, #3a6cf4);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(58, 108, 244, 0.4);
}

.social-icons a {
    color: #fff;
    font-size: 1.7em;
    padding-right: 30px;
}

.title{
    display: flex;
    justify-content: center;
    font-size: 2.2em;
    font-weight: 800;
    margin-bottom:  30px;
    color: var(--main-bule);
}

.content{
    display: flex;
    flex-wrap:wrap ;
    justify-content: center;
    gap: 20px;
}

.card{
    background-color: #fff;
    width: calc(33.33% - 40px);
    max-width: 350px; /* Prevents oversized cards */
    min-width: 250px; /* Ensures they don't get too small */
    border-radius: 10px;
    padding: 25px;
    margin: 15px;
    box-shadow: 0 5px 25px black;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease-in-out;

}

.card:hover{
    transform: scale(1.05);
}

.card .icon{
    color: var(--main-bule);
    font-size: 8em;
    text-align: center;

}

.card img{
    display: block;
    width: 20em;
    overflow: hidden;
    height: auto;
    padding: 10px;
    margin: auto;
    height: 11.25em;
}

.nav-links{
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s;
}

.hamburger{
    display: none;
    font-size: 30px;
    cursor: pointer;
}

.contact{
    text-align: center;
    padding: 40px 20px;
    background: white;
    margin-top: 20px;
}

.form{
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0px 5px 10px black;
    width: 100%;
    text-align:start;
}   

.form-h2{
    margin-bottom: 15px;
    color: #333;
}

input {
    width: 30%;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #ddd;
    font-size: 16px;
    border-radius: 15px;
    transition: border-color 0.3s ease;
}

input:focus {
    border-color: var(--main-bule);
    outline: none;
}

.message{
    width: 100%;
    height: 250px;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #ddd;
    font-size: 15px;
    border-radius: 15px ;
    transition: border-color 0.3 ease;
    

}

.message:focus{
    border-color: var(--main-bule);
    outline: none;
}

.submitbtn{
    width: 350px;
    padding: 12px;
    margin: 10px 0;
    background: var(--main-bule) ;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submitbtn:hover {
    background: #2a5cf9;
}

.call {
    display: flex;
    flex-direction:row ;
    align-items: end;
    justify-content: end;
    position: absolute;
    right: 100px;
}

.card .info h3 i {
    color: var(--main-bule);
    margin-right: 10px;
    font-size: 0.9em;
}

.card .info h3 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

/* About Section */
#about {
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--main-bule);
  margin-bottom: 30px;
}

.about-content {
  max-width: 800px;
  margin: auto;
  text-align: center;
  color: #cbd5f5;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 20px;
}


.highlight {
  color: #38bdf8;
  font-weight: 600;
}



/* --------------------- Small Screens --------------------- */
@media (max-width : 768px){

    .logo{
        position: absolute;
        left: 20px;
        top: 10px;
    }

    .main{
        flex-direction: column; 
        text-align: center;
        
    }


    .main h2 {
        font-size: 20px;
    }

    .main h3 {
        font-size: 18px;
    }

    .main .main-btn {
        padding: 10px 20px;
        font-size: 16px;
    }

    .nav-links {
        display: flex; /* Keep flex so it doesn't break */
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: -200px; /* Start off-screen */
        background: whitesmoke;
        width: 150px;
        border-radius: 8px;
        padding: 10px;
        transition: right 0.3s ease-in-out; /* Smooth slide effect */
    }

    .nav-links.show {
        right:50px; /* Slide in */
    }

    .hamburger {
        display: block;
    }   

    .card {
        width: 90%; /* Take up most of the screen */
        
    }
    .card img{
        width: 95%;
    }

    .form{
        width: 320px;
    }

    input ,.message{
        width: 100%;
    }

    .submitbtn{
        width: 100px;
    }


    .btn-primary{
        width: 100px;
        height: 20px;
        
        font-size: xx-small;
    }


}


  /* Medium Screens */
  
  @media (max-width: 1024px) {
    .card {
        width: calc(50% - 40px);
    }
    .card img{
        width: 95%;
    }
}

/*  Large screens */
@media (min-width: 1200px) {
    .card {
        width: calc(33.33% - 40px);
    }
    .card img{
        width: 95%;
    }
}

