* {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}
.typing {
    max-width: 100%;
    width: fit-content;
}

:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --heading-color: #2A7B9B;
    --card-bg: #ffffff;
    --icon-color: #111111;

    --toggle-bg: #111111;      
    --toggle-text: #ffffff;
}

body.dark {
    --bg-color: #0f172a;
    --text-color: #e5e7eb;
    --heading-color: #38bdf8;
    --card-bg: #1e293b;
    --icon-color: #e5e7eb;
    --toggle-bg: #e5e7eb;     
    --toggle-text: #0f172a;
}
body {
    background-color: var(--bg-color);
    color: var(--text-color);   
    transition: background-color 0.3s ease, color 0.3s ease;
}

main {
    padding: 70px 10px;
}
.navbar-toggler-icon {
    filter: invert(1);
}


.image-mine{
    border-radius:50%;
    width:250px;
    height:250px;
    object-fit:cover;
    border:3px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.typing{
    color: var(--text-color);
    font-size: 18px;
    border-right:3px solid var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3s steps(15) 1s forwards, blink 0.7s step-end infinite;
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    font-style: italic;
}

@keyframes typing{
    from { width: 0; }
    to { width: 100%; }
} 
@media (max-width: 576px) {
    @keyframes typing {
        to { width: 20ch; }
    }
}


@keyframes blink{
    50%{border-color: transparent}
}

.aboutme,
.skill-list,
.projects-2,
.aandc,
.contact-me
{
    font-family:"Ubuntu", sans-serif;
    font-size:30px;
    color: var(--heading-color);
    font-weight:bold;
    text-align:center;
}

.navbar a,
.navbar-brand {
    color: var(--text-color) !important;
}



.skill-box{
    width:150px;
    height:150px;
    border-radius:20px;
    display:flex;
    flex-direction: column;
    align-items:center;
    justify-content:center;
    background: var(--card-bg);
    font-size:1.2rem;
    font-weight:600;
    color:var(--text-color);
    animation:float 3s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skills-container{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:20px;
    padding:20px 30pz;
}

.skill-box:hover{
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.skill-box img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Keep icons visible in dark mode */
body.dark .skill-box img {
    filter: brightness(0.9);
}

.level {
    font-size: 12px;
    opacity: 0.7;
}


@keyframes float{
    0% {transform: translateY(0px);}
    50% {transform: translateY(-10px);}
    100% {transform: translateY(0px);}
}

.projects-2{
    text-align:center;
    padding:40px 20px;
    font-family:"Ubuntu", sans-serif;
}

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

.project-card{
    background: var(--card-bg);
    border-radius:15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width:300px;
    padding:20px;
    transition:transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom:20px;
}

.project-card:hover{
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.project-card img{
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.project-card h3{
    color: var(--text-color);
    font-size:20px;
    font-family:"Ubuntu", sans-serif;
    font-weight:bold;
}

.project-card p{
    color: var(--text-color);
    font-size:0.95rem;
    margin-bottom:15px;
}

.project-card a{
    text-decoration:none;
    color:#fff;
    background-color:#007bff;
    padding:8px 15px;
    border-radius: 5px;
    display:inline-block;
    transition:background 0.3s ease;
}

.project-card a:hover{
    background:#0056b3;
}

.navbar-brand{
    padding-left:20px;
}

#contactme{
    text-align:center;
    padding:30px;
}

.contact-design{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:60px;
}

#contactme div{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
}

#contactme a{
    color:#0077b6;
    text-decoration:none;
    font-weight:bold;
    margin-right:25px;
}

#contactme a:hover{
    text-decoration:underline;
}

#contactme i{
    font-size:1.2rem;
    color: var(--icon-color);
}

#certifications{
    text-align:center;
    padding:40px 20px 0px 20px;
}

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

.cert{
    width:300px;
    background: var(--card-bg);
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
    border-radius:15px;
    padding:25px 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cert:hover{
    transform: translateY(-6px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.cert h3{
    font-size:15px;
    color: var(--text-color);
    margin-bottom:10px;
}

.cert p{
    font-size:0.95rem;
    color: var(--text-color);
    margin-bottom:15px;
    line-height:1.4;
}

.cert-btn{
    display:inline-block;
    background-color:#007bff;
    color:#fff;
    padding:8px 15px;
    border-radius:8px;
    font-size:0.9rem;
    text-decoration:none;
    transition: background 0.3s;
}

.cert-btn:hover{
    background-color:#0056b3;
}
@media (max-width: 576px){
    .project-card,
    .cert{
        width: 90%;
    }

    .skill-box{
        width: 120px;
        height: 120px;
        font-size: 1rem;
    }

    .contact-design{
        flex-direction: row;
        gap: 20px;
    }

    .image-mine{
        width: 180px;
        height: 180px;
    }
    .intro{
        text-align: center; 
        color:var(--text-color);
    }
}

@media (min-width: 577px) and (max-width: 992px){
    .project-card,
    .cert{
        width: 45%;
        margin:auto;
    }

    .skill-box{
        width: 140px;
        height: 140px;
        color: var(--text-color);
        background: var(--card-bg);

    }
}
.project-description {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}
.project-card {
    width: 100%;
    max-width: 400px;        
    margin: 0 auto;          
}

@media (min-width: 993px){
    .project-card,
    .cert{
        width: 300px;
        margin-right: auto;
    }
    .project-description{
        display: flex;
        flex-direction: row;
        justify-content: center;   
    gap: 12px;
    }
}
.aandc{
    font-family:"Ubuntu", sans-serif;
}

#certifications{
    margin-bottom: 0px;
    padding-bottom: 0px;

}
.theme-toggle{
    background-color: var(--toggle-bg);
    color: var(--toggle-text);
    border: 2px solid currentColor;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right:10px;
}

/* .theme-toggle:hover{
    background-color: rgba(0,0,0,0.1);
} */
.navbar {
    background-color: var(--card-bg) !important;
    transition: background-color 0.3s ease;
}

.navbar a,
.navbar-brand {
    color: var(--text-color) !important;
}
.container{
  margin-left: auto;
  margin-right: auto;
}
.container,
.container-fluid,
main,
section {
    background-color: var(--bg-color);
}
.intro{
    color: var(--text-color);
}
.name{
    color: var(--text-color);
}

.contact-mep{
    color:var(--text-color);
}
.skills-subtitle{
    color: var(--text-color);
    font-size:20px;
    font-family:"Ubuntu", sans-serif;
    font-weight:bold;
    text-align:center;
    margin:30px;

}
.services {
    padding: 60px 20px 40px;
    background-color: var(--bg-color);
    text-align: center;
}

/* Cards layout */
.services-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

/* Service card */
.service-card {
    width: 300px;
    background-color: var(--card-bg);
    color: var(--text-color);
    border-radius: 20px;
    padding: 25px 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body:not(.dark) .service-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Hover effect */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}

/* Icon */
.service-card img {
    display: block;
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
}

/* Title */
.service-card h3 {
    font-family: "Ubuntu", sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: var(--heading-color);
    margin-bottom: 10px;
}

/* Description */
.service-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
    opacity: 0.9;
}

/* CTA Button */
.service-cta {
    margin-top: 35px;
    text-align: center;
}

.service-btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: #007bff;
    color: #ffffff;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.service-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

html {
    scroll-behavior: smooth;
}


