/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
/* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Skills Section */
#skills {
    padding: 60px 20px;
    background: var(--light-bg);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-item {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.skill-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.skill-item:hover img {
    transform: scale(1.1);
}

.skill-item p {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }
    
    .skill-item {
        padding: 15px;
    }
    
    .skill-item img {
        width: 50px;
        height: 50px;
    }
    
    .skill-item p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .skills-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

:root {
    --primary-color: #073362;
    --secondary-color: #ffcd00;
    --accent-color: #03eefa;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #fff;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text-color);
}

/* Header & Navigation */
header {
    width: 100%;
    background-color: var(--primary-color);
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    color: var(--white);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 600;
    text-transform: uppercase;
}

.logo span {
    color: var(--secondary-color);
}

.navbar {
    display: flex;
    list-style: none;
}

.navbar li {
    margin-left: 20px;
}

.navbar li a {
    text-decoration: none;
    color: var(--white);
    text-transform: uppercase;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    transition: 0.3s;
}

.navbar li a:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    z-index: 100;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* Hero Content */
.content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    flex-wrap: wrap;
}

.text {
    color: var(--white);
    flex: 1 1 50%;
    min-width: 300px;
    padding-right: 20px;
}

.text h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 15px;
    line-height: 1.3;
}

.text span {
    color: var(--accent-color);
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
}

.text button {
    width: 200px;
    height: 50px;
    background-color: #72fa03;
    color: var(--white);
    border: 2px solid #fa03c4;
    outline: none;
    cursor: pointer;
    margin-top: 30px;
    border-radius: 5px;
    font-size: 1rem;
    transition: 0.3s;
    font-weight: 600;
}

.text button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cercle {
    flex: 1 1 40%;
    min-width: 200px;
    max-width: 300px;
    height: auto;
    border-radius: 50%;
    overflow: hidden;
    margin: 20px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cercle {
        width: min(300px, 80vw);
        height: min(300px, 80vw);
          /* Set equal height to make a perfect circle */
    border-radius: 50%; /* This makes it circular */
    overflow: hidden;   /* Ensures the image stays within the circle */
    position: relative; /* For advanced positioning if needed */
    margin: 0 auto;     /* Centers the circle */
    border: 5px solid #fff; /* Optional: adds a white border */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Optional: adds shadow */
}

.cercle img {
    width: 100%;        /* Makes image fill container width */
    height: 100%;       /* Makes image fill container height */
    object-fit:cover;  /* Ensures image covers area without distortion */
    object-position: center; /* Centers the image in the circle */
    display: block;     /* Removes extra space below image */
}

/* Sections */
section {
    padding: 60px 20px;
    background-color: var(--light-bg);
}

.hidden {
    display: none;
}

.about-container, 
.services-container, 
.contact-container,
.project-container {
    max-width: 800px;
    margin: 0 auto;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
}

h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin: 25px 0 15px;
    color: var(--primary-color);
}

p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: 20px;
}

strong {
    color: var(--primary-color);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h3 {
    margin: 15px 0;
}

/* Projects Section */
.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.project-item {
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.project-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-item p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.project-item a {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.project-item a:hover {
    background-color: var(--accent-color);
}

/* Contact Section */
.contact-info {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.contact-info p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 25px;
    text-align: center;
}

.contact-info a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .navbar {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: left 0.3s ease;
    }

    .navbar.active {
        left: 0;
    }

    .navbar li {
        margin: 15px 0;
    }

    .content {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .text {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }

    .cercle {
        margin: 0 auto;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .project-list {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .text button {
        width: 100%;
    }
}