/* ---------------------------------- */
/* 1. Global Reset & Typography       */
/* ---------------------------------- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background: #000000;#f8f8f8;
    color: #333;
    /* Smooth scroll for navigation links */
    scroll-behavior: smooth; 
}

h1, h2, h3 {
    font-weight: 600;
    color: deepblue;
}

/* ---------------------------------- */
/* 2. Navigation Styling (Flexbox)    */
/* ---------------------------------- */

.main-header {
    background-color: #000000;white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: 600;
    color: white;#007bff;
}

.main-nav a {
    text-decoration: none;
    color: #ccc;
    margin-left: 25px;
    font-weight: 300;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #007bff;
    box-shadow: 0 2px 5px #23e600;
}

.menu-toggle {
    display: none; /* Hide on desktop */
    font-size: 1.5em;
    background: none;
    border: none;
    cursor: pointer;
    color: #23e600;#333;
}

/* ---------------------------------- */
/* 3. General Layout & CTA Button     */
/* ---------------------------------- */

section {
    padding: 80px 5%;
    text-align: center;
}

.cta-button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #23e600;#0056b3;
}

/* ---------------------------------- */
/* 4. Hero Section                    */
/* ---------------------------------- */

.hero-section {
background: linear-gradient(to right, #000000, #23e600);
color: white;
padding: 100px 5%;
animation: color 6s infinite;
}

@keyframes color {
0%, 33% {
background: linear-gradient(to right, #000000, #23e600);
}
34%, 66% {
background: linear-gradient(to left, #23e600, #ccc);
}
67%, 100% {
background: linear-gradient(to down, #ccc, #000000);
}
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: snowwhite;  
}

/* ---------------------------------- */
/* 5. Projects Section (Grid)         */
/* ---------------------------------- */

.projects-section {
    background-color: #000000;white;
}

.project-grid {
    display: grid;
    /* Creates a 2-column layout for larger screens */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px #23e600;
}

.card-image {
    height: 150px;
    background-color: #eee;
    margin-bottom: 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.9em;
}
.card-image img {
    height: 150px;
    width: 100%;
}


/* ---------------------------------- */
/* 7. Contact                         */
/* ---------------------------------- */

.contact-section {
    background: linear-gradient(to right, #23e600,#000000);
    color: white;
}    


/* ---------------------------------- */
/* 8. Footer                          */
/* ---------------------------------- */

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    border-radius: 10px 10px 0 0;
}

footer a {
    color: #007bff;
    text-decoration: none;
}

/* ---------------------------------- */
/* 9. Media Queries (Responsiveness)  */
/* ---------------------------------- */

/* Tablet and below (max-width: 768px) */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5em;
    }
}

/* Mobile Devices (max-width: 600px) */
@media (max-width: 600px) {
/* Show the menu toggle button */
.menu-toggle {
display: block; 
}

/* Hide the navigation menu by default */
.main-nav {
display: none; 
position: absolute;
top: 60px; /* Below the header */
left: 0;
width: 100%;
background-color: white;
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
flex-direction: column; /* Stack links vertically */
padding-bottom: 10px;
}
    
/* Style for navigation links when stacked */
.main-nav a {
display: block;
margin: 10px 0;
padding: 10px 5%;
border-bottom: 1px solid #eee;
}

/* JavaScript will add this class to show the menu */
.main-nav.active { 
display: flex;
}
    
/* Project grid becomes a single column */
.project-grid {
grid-template-columns: 1fr;
}

section {
padding: 50px 5%;
}
/* Hero Content */
.hero-content h1 {
font-weight: 600;
font-size: 22px;
}
p,a {
font-size: 12px;
}
}
