/* GLOBAL */
body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f4f8;
    color: #1e293b;
    line-height: 1.6;
}

/* NAVBAR */
.navbar {
    background-color: #0f4c81;
    padding: 16px 0;
    text-align: center;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 18px;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #c7ddf5;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #0f4c81, #1e88e5);
    color: white;
    text-align: center;
    padding: 90px 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero h2 {
    font-weight: 300;
    opacity: 0.9;
}

/* SECTIONS */
section {
    max-width: 900px;
    margin: 70px auto;
    padding: 0 20px;
}

section h1, section h2 {
    color: #0f4c81;
    margin-bottom: 20px;
    border-bottom: 3px solid #1e88e5;
    display: inline-block;
    padding-bottom: 5px;
}

/* LISTS */
ul {
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

/* FOOTER */
footer {
    background-color: #0f4c81;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 80px;  
}
.project-image {
    width: 100%;          /* Makes image fill the card width */
    max-width: 500px;     /* Prevents it from being too big */
    height: auto;         /* Keeps correct aspect ratio */
    display: block;
    margin: 20px auto;    /* Centers the image */
    border-radius: 8px;   /* Rounded corners for a professional look */
    box-shadow: 0 6px 15px rgba(0,0,0,0.15); /* Soft shadow for depth */
}
.card {
    background: white;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-left: 6px solid #1e88e5;
    max-width: 1000px;    /* Prevent cards from getting too wide */
    margin-left: auto;
    margin-right: auto;
}
/* MOBILE RESPONSIVE STYLES */
@media (max-width: 768px) {
    /* Make navbar links stack vertically */
    .navbar {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }

    .navbar a {
        margin: 8px 0; /* space between links */
        font-size: 1.1rem;
    }

    /* Cards should fill most of the screen width */
    .card {
        max-width: 90%;   /* smaller than full width with margin */
        padding: 20px;
    }

    /* Hero section text smaller and centered */
    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Images inside cards scale nicely */
    .project-image {
        width: 100%;
        max-width: 100%;
    }

    /* Sections have smaller padding */
    section {
        margin: 40px auto;
        padding: 0 10px;
    }
}
.button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #1e88e5;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 10px;
}

.button:hover {
    background-color: #1565c0;
}
/* Default size for desktop */
.certification-image {
    width: 500px;      /* small on desktop */
    height: auto;
    display: block;
    margin: 20px auto;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .certification-image {
        width: 250px;   /* bigger on tablets & phones */
        max-width: 80%; /* ensures it doesn't overflow */
    }
}

:root {
    --primary-blue: #1e88e5;
    --hover-blue: #1565c0;
}

.navbar a:hover,
.button:hover,
.card {
    border-left-color: var(--primary-blue);
}
.button {
    background-color: var(--primary-blue);
}
.button:hover {
    background-color: var(--hover-blue);
}
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}
section {
    border-top: 2px solid #1e88e5;
    padding-top: 40px;
    margin-top: 40px;
}
<div class="card">
    <img src="images/solidworks.png" alt="SolidWorks logo" class="card-icon">
    <h3>CAD & Design</h3>
    <p>Experienced in SolidWorks...</p>
</div>
/* Floating icons animation */
.floating-icons {
    position: relative;
    width: 100%;
    height: 100px; /* space for floating icons */
}

.floating-icon {
    position: absolute;
    width: 40px;
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

/* Different starting positions */
.floating-icon:nth-child(1) { left: 10%; animation-delay: 0s; }
.floating-icon:nth-child(2) { left: 45%; animation-delay: 2s; }
.floating-icon:nth-child(3) { left: 75%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
/* Floating icons container */
.floating-icons {
    position: absolute; /* position relative to hero */
    top: 120px;          /* distance from top of hero section */
    width: 100%;
    height: 100px;
    pointer-events: none; /* so they don’t block clicks */
}

/* All floating icons */
.floating-icon {
    position: absolute;
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
    filter: grayscale(100%) brightness(1.2); /* makes all icons match color theme */
}

/* Individual positions and sizes */
.floating-icon:nth-child(1) { 
    left: 15%; 
    width: 60px; /* SolidWorks logo bigger */
    animation-delay: 0s; 
}

.floating-icon:nth-child(2) { 
    left: 45%; 
    width: 50px; 
    animation-delay: 2s; 
}

.floating-icon:nth-child(3) { 
    left: 75%; 
    width: 50px; 
    animation-delay: 4s; 
}

/* Float animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .floating-icon {
        width: 50px !important;
    }
    .floating-icons {
        top: 30px;
        height: 80px;
    }
}
.floating-icon {
    filter: brightness(0) invert(1); /* makes all icons white */
}
.floating-icon {
    position: absolute;
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;

    /* force uniform size */
    width: 60px !important;
    height: 60px !important;
}
.hero {
    text-align: center;
    background-color: #1e88e5;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.05),
        rgba(255,255,255,0.05) 1px,
        transparent 1px,
        transparent 10px
    );
    color: white;
    padding: 80px 20px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 1000px;
}

