/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
    --main-color: #00bcd4; /* The cyan/teal color */
    --bg-color: #ffffff;
    --text-color: #333;
    --dark-color: #0b0b0b;
    --light-gray-color: #f4f4f4;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    text-decoration: none;
    list-style: none;
    border: none;
    outline: none;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: 90vh;
    padding: 6rem 10% 2rem;
}

.heading {
    font-size: 0.9rem;
    color: var(--main-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 10px 28px;
    background: var(--main-color);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s;
    border: 2px solid var(--main-color);
}

.btn:hover {
    background: transparent;
    color: var(--main-color);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--dark-color);
    color: var(--main-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    gap: 1rem;
    animation: fadeOut 0.5s 3.5s forwards; /* Fades out after 3.5s */
}

.loader h1 { font-size: 2rem; }
.loader p { color: #888; }
.loader .loader-icon { font-size: 3rem; }
.loader .loader-social { display: flex; gap: 1rem; }
.loader .loader-social i { font-size: 1.5rem; }

/* Loader Animations */
.loader > * {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}
.loader h1 { animation-delay: 0.5s; }
.loader .loader-icon { animation-delay: 1s; }
.loader .loader-social { animation-delay: 1.5s; }
.loader p { animation-delay: 2s; }

@keyframes fadeIn {
    to { opacity: 1; }
}
@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}


/* Header */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 10%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: var(--shadow);
}

.logo {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.navbar a {
    font-size: 1rem;
    color: var(--text-color);
    margin-left: 2rem;
    font-weight: 500;
    transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

/* Home Section */
.home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.home-content .badge {
    display: inline-block;
    padding: 5px 15px;
    background: var(--light-gray-color);
    color: var(--text-color);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.home-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.home-content h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.home-content .typing-text {
    color: var(--main-color);
}

.home-content .info-group {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}
.home-content .info-group span {
    font-weight: 500;
}
.home-content .info-group i {
    color: var(--main-color);
    margin-right: 5px;
}

.home-content .btn-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.social-links a {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: 0.3s;
}
.social-links a:hover {
    color: var(--main-color);
    transform: translateY(-3px);
}

.home-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* About Section */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    background: var(--light-gray-color);
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-content h4 {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.drives-group {
    display: flex;
    gap: 1rem;
}
.drive-card {
    flex-basis: 150px;
    padding: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
}
.drive-card:hover {
    border-color: var(--main-color);
    box-shadow: 0 0 10px var(--main-color);
}
.drive-card i {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 0.5rem;
}
.drive-card strong {
    font-size: 1rem;
}
.drive-card p {
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* Projects Section */
.projects {
    text-align: center;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: left;
    transition: 0.3s;
    overflow: hidden;
}
.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.project-card h4 {
    font-size: 1.2rem;
    padding: 1rem 1.5rem 0.5rem;
}
.project-card p {
    font-size: 0.9rem;
    padding: 0 1.5rem 1rem;
    margin-bottom: 0;
}
.tech-tags {
    padding: 0 1.5rem 1rem;
}
.tech-tags span {
    display: inline-block;
    background: var(--light-gray-color);
    color: #555;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-right: 5px;
}
.project-links {
    display: flex;
    gap: 1rem;
    padding: 0 1.5rem 1.5rem;
}
.btn-outline {
    flex: 1;
    padding: 8px;
    text-align: center;
    border: 1px solid #ccc;
    color: #555;
    border-radius: 5px;
    font-weight: 500;
    transition: 0.3s;
}
.btn-outline:hover {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
}
.btn-outline i {
    margin-right: 5px;
}

/* Services Section */
.services {
    background: var(--light-gray-color);
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 188, 212, 0.3);
}
.service-card i {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}
.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
    text-align: center;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    text-align: left;
    margin-top: 2rem;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.contact-info i {
    font-size: 1.5rem;
    color: var(--main-color);
}
.contact-info span {
    font-size: 1rem;
    font-weight: 500;
}
.contact-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}
.contact-social a {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: 0.3s;
}
.contact-social a:hover {
    color: var(--main-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    background: var(--light-gray-color);
    font-size: 1rem;
}
.contact-form .btn {
    width: fit-content;
    cursor: pointer;
}

/* Footer */
.footer {
    padding: 2rem 10% 1.5rem;
    background: var(--dark-color);
    color: #aaa;
    text-align: center;
}
.footer h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.footer-links a {
    color: #aaa;
    transition: 0.3s;
}
.footer-links a:hover {
    color: var(--main-color);
}
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.footer-social a {
    font-size: 1.3rem;
    color: #aaa;
    transition: 0.3s;
}
.footer-social a:hover {
    color: var(--main-color);
}
.footer p {
    font-size: 0.9rem;
    margin-bottom: 0;
}


/* =================================
   MEDIA QUERIES (RESPONSIVE)
   ================================= */

/* Medium Devices (Tablets, etc.) */
@media (max-width: 992px) {
    .header {
        padding: 1.2rem 5%;
    }
    section {
        padding: 5rem 5% 2rem;
    }

    .home {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .home-img {
        order: -1; /* Puts image on top */
        width: 70%;
        margin: 0 auto 2rem;
    }
    .home-content {
        text-align: center;
    }
    .home-content .info-group,
    .home-content .btn-group,
    .social-links {
        justify-content: center;
    }
    
    .about {
        grid-template-columns: 1fr;
    }
    .about-img {
        width: 70%;
        margin: 0 auto 2rem;
    }
    .about-content {
        text-align: center;
    }
    .drives-group {
        justify-content: center;
        flex-wrap: wrap;.
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-info {
        text-align: center;
    }
    .contact-info .info-item,
    .contact-social {
        justify-content: center;
    }
}


/* Small Devices (Phones) */
@media (max-width: 768px) {
    /* This is where you would add JS for a hamburger menu */
    .navbar {
        display: none; 
    }
    
    .home-content h1 {
        font-size: 2.8rem;
    }
    .home-content h3 {
        font-size: 1.8rem;
    }
    .home-img,
    .about-img {
        width: 90%;
    }

    .project-grid {
        grid-template-columns: 1fr; /* Stack all projects */
    }
    
    .service-grid {
        grid-template-columns: 1fr; /* Stack all services */
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}
