body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: #333;
}

header,
section,
footer {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}


/* General section styling */
section {
    padding: 80px 20px;
}

section h2.title,
h1.title {
    font-size: 2.5rem;
    font-weight: 700;
}

p.description {
    font-size: 22px;
}

h4 {
    font-size: 1.1rem;
}

.hero {
    background-size: cover;
    background-position: center;
    padding: 50px 20px;
    text-align: center;
    color: white;
    background-image: url('images/banner.jpg');
    /* Fallback for browsers without image-set() */
    background-image:
        image-set(url('images/banner.webp') type('image/webp'),
            url('images/banner.jpg') type('image/jpeg'));
    border-radius: 10px;
    margin-top: 30px;
}

.hero-content {
    max-width: 800px;
    min-height: 250px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
}

.hero-content .title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.hero-content .social-icons a {
    font-size: 1.5rem;
    margin: 0 10px;
    color: #333;
    transition: color 0.3s ease;
}

.hero-content .social-icons a:hover {
    color: #009ad5;
}

/* About Me Styling */
.text-center .title {
    font-size: 3rem;
    /* Slightly larger for emphasis */
    color: #009ad5;
    /* A rich purple for elegance */
    margin-bottom: 15px;
    text-transform: capitalize;
    /* Keeps the style formal and clean */
    letter-spacing: 1px;
    /* Subtle spacing for readability */
}

.text-center .description {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #333;
    /* Soft contrast for readability */
    margin-top: 20px;
}

.text-center {
    margin-bottom: 50px;
    /* Adds space before next section */
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.buttons button,
.social-icons a {
    margin: 5px;
}

.social-icons a {
    color: #555;
    font-size: 1.2rem;
    text-decoration: none;
}

/* About section */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.feature-box {
    flex: 1 1 250px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-sizing: border-box;
}

.feature-box:hover {
    background: linear-gradient(135deg, #6a5acd, #1e90ff);
    /* Smooth gradient */
    color: #fff;
    /* White text for readability */
    transition: background 0.3s ease, color 0.3s ease;
    /* Smooth transition */
}

.feature-box .icon {
    font-size: 2rem;
    margin-bottom: 10px;
    align-self: center;
}

/* Projects */
.projects .project-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
    align-items: stretch;
}

.project-card {
    flex: 1 1 400px;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 40px 20px;
    position: relative;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.project-card h2,
.project-card .card-description {
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.whisper-image {
    background-image: url('images/headphones.jpg');
    background-image:
        image-set(url('images/headphones.webp') type('image/webp'),
            url('images/headphones.jpg') type('image/jpeg'));
}

.echosharp-image {
    background-image: url('images/audio-processing.jpg');
    background-image:
        image-set(url('images/audio-processing.webp') type('image/webp'),
            url('images/audio-processing.jpg') type('image/jpeg'));
}

.courses-image {
    background-image: url('images/graduation.jpg');
    background-image:
        image-set(url('images/graduation.webp') type('image/webp'),
            url('images/graduation.jpg') type('image/jpeg'));
}

.printer-image {
    background-image: url('images/printer.jpg');
    background-image:
        image-set(url('images/printer.webp') type('image/webp'),
            url('images/printer.jpg') type('image/jpeg'));
}

.badges {
    margin-top: 10px;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 5px;
    font-size: 0.9rem;
}

.info-block {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    border-radius: 8px;
    padding: 6px;
    box-sizing: border-box;
    background: #f9f9f9;
}

.info-block:hover {
    background: linear-gradient(135deg, #6a5acd, #1e90ff);
    /* Smooth gradient */
    color: #fff;
    /* White text for readability */
    transition: background 0.3s ease, color 0.3s ease;
    /* Smooth transition */
}

.info-block-last {
    margin-bottom: 0px;
}

.info-block .icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #4c5bd4;
}

.info-block:hover .icon {
    color: #333;
}

.separator-line {
    width: 100%;
    height: 2px;
    background: #00bcd4;
    margin: 60px 0;
}

/* Experience */
.experience .job-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.job-card {
    display: flex;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.job-card img {
    width: 100%;
    max-width: 200px;
    object-fit: cover;
    display: block;
    height: 100%;
}

.job-card-content {
    padding: 20px;
    flex: 1;
}

.job-card h4 {
    margin-top: 0;
    font-size: 1.5rem;
}

.job-card h6 {
    margin: 5px 0 10px 0;
    color: #333;
    font-size: 1rem;
}

.job-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.job-card-footer a {
    margin-right: 10px;
    color: #555;
    font-size: 1.2rem;
    text-decoration: none;
}

.job-card-footer a:hover {
    color: #009ad5;
}


footer {
    text-align: center;
    font-size: 0.9rem;
    color: #747474;
    margin-bottom: 40px;
}

@media (max-width:768px) {
    .features {
        flex-direction: column;
    }

    .project-row {
        flex-direction: column;
    }

    .job-card {
        flex-direction: column;
        align-items: center;
    }

    .job-card img {
        max-width: 100%;
    }
}

.feature-title {
    display: flex;
    place-items: center;

    h4 {
        margin-left: 20px;
    }
}

.info-block {
    h4 {
        margin-top: 10px;
    }

    .icon {
        margin-top: 10px;
    }
}

/* Light Theme */
@media (prefers-color-scheme: light) {
    body {
        background-color: #ffffff;
        color: #333333;
    }

    .hero-content {
        background: rgba(255, 255, 255, 0.8);
        color: #000;
    }

    .feature-box {
        background: #f1f1f1;
        color: #333;
    }

    .text-center .description {
        color: #333;
    }

    .hero-content .social-icons a {
        color: #555;
    }

    .feature-box:hover {
        background: linear-gradient(135deg, #6a5acd, #1e90ff);
        color: #fff;
    }

    .info-block {
        background: #f1f1f1;
        color: #333;
    }

    .info-block:hover .icon {
        color: #333;
    }

    .separator-line {
        background: #0078D4;
    }

    .job-card {
        background: #f9f9f9;
    }

    .job-card-footer a {
        color: #555;
    }

    .job-card h6 {
        color: #333;
    }

    footer {
        color: #747474;
    }
}

/* Dark Theme */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }

    .hero-content {
        background: rgba(0, 0, 0, 0.7);
        color: #fff;
    }

    .hero-content .social-icons a {
        color: #ddd;
    }

    .feature-box {
        background: #1e1e1e;
        color: #ddd;
    }

    .text-center .description {
        color: #ddd;
    }

    .feature-box:hover {
        background: linear-gradient(135deg, #4c5bd4, #2428f7);
        color: #fff;
    }

    .separator-line {
        background: #4c5bd4;
    }

    .info-block {
        background: #1e1e1e;
        color: #ddd;
    }

    .info-block:hover .icon {
        color: #ddd;
    }

    .job-card {
        background: #1e1e1e;
        /* Darker background for dark mode */
        border: 1px solid #333;
        /* Optional: Add contrast */
    }


    .job-card-footer a {
        color: #fff;
    }

    .job-card h6 {
        color: #ddd;
    }

    footer {
        color: #828282;
    }
}