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

/* Add this to your existing styles */
@media (max-width: 576px) {
    body {
        overflow-x: hidden;
        /* Prevent horizontal scrolling */
    }
}

body {
    font-family: 'Roboto', sans-serif;
    color: #fff;
    background-color: #000;
    line-height: 1.6;
    overflow-y: auto;
}

/* Title Bar Styling */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.navbar .name {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    margin: 0 20px;
    font-weight: 500;
}

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

.glass-morphism {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    z-index: 0;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    position: relative;
    padding-top: 60px;
    z-index: 1;
}

header h1 {
    background: red;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: unset;
    font-size: 3.5rem;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 20px;
    transition: filter 0.3s;
}

header h1:hover,
header h1:focus {
    filter: brightness(1.2) drop-shadow(0 2px 8px #00c6ff88);
    outline: none;
}

.typed-text {
    position: relative;
    z-index: 2;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: magenta;
}

.btn {
    padding: 12px 40px;
    font-size: 1rem;
    background-color: blue;
    border: 2px solid #fff;
    color: #fff;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.btn:hover {
    background-color: #fff;
    color: #000;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.7;
}

.dots {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/black-dots.png') repeat;
    opacity: 0.2;
}

/* Colors for specific words */
.rahul {
    color: yellowgreen;
}

.scientist {
    color: yellow;
}

.analyst {
    color: coral;
}

.developer {
    color: orange;
}

.site {
    color: khaki;
}

/* About Me Section Styling */
.about-me {
    padding: 80px 40px;
    background-color: #0a0a0a;
    min-height: 100vh;
}

.section-title {
    color: #ff0000;
    font-size: 1.2rem;
    margin-bottom: 10px;
    margin-left: 100px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100px;
    height: 2px;
    background-color: #ff0000;
}

.about-heading {
    color: #333;
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 50px;
    margin-left: 100px;
}

@media (max-width: 576px) {
    .about-heading {
        color: #333;
        font-size: 2rem;
        font-weight: bold;
        margin-bottom: 50px;
        margin-left: 20px;
    }
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 100px;
    gap: 50px;
}

.text {
    max-width: 600px;
    font-size: 1.2rem;
    line-height: 1.8;
    color: white;
    text-align: justify;
}

.image-container {
    width: 350px;
    height: 350px;
    margin-left: 50px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-container:hover {
    border: 4px solid #ff0000;
    transform: scale(1.05);
}

.image-container:hover img {
    transform: scale(1.1);
}

@media (max-width: 576px) {
    .about-content {
        flex-direction: column;
        padding: 0 20px;
        gap: 30px;
    }

    .image-container {
        order: 1;
        margin: 0;
        width: 300px;
        height: 300px;
    }

    .text {
        order: 2;
    }

    .section-title,
    .about-heading {
        margin-left: 20px;
    }
}

/* Skills Section Styling */
.skills {
    padding: 80px 40px;
    background-color: #0a0a0a;
    min-height: 100vh;
}

.technical-skills {
    color: #333;
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 50px;
    margin-left: 100px;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    padding: 0 100px;
}

.skill-card {
    background: #111;
    width: 150px;
    height: 150px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.skill-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
}

.skill-card p {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    text-transform: capitalize;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.7);
    border: 2px solid #ff0000;
}

/* Projects Section Styling */
.projects {
    padding: 80px 40px;
    background-color: #0a0a0a;
    min-height: 100vh;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 4fr));
    gap: 30px;
    padding: 0 100px;
}

.project-card {
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 200px;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.project-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.project-description {
    color: #ccc;
    margin-bottom: 15px;
    flex-grow: 1;
    text-align: left;
}

.project-tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: left;
    margin-bottom: 10px;
}

.tech-tag {
    background: #222;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.view-live {
    display: inline-block;
    background: #ff0066;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
    text-align: center;
    margin-top: 20px;
}

.view-live:hover {
    background: #cc0052;
}

/* Experience Section Styling */
.experience {
    padding: 80px 40px;
    background-color: #0a0a0a;
    min-height: 100vh;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 100px;
}

.experience-card {
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}

.experience-card:hover {
    transform: translateY(-5px);
}

.experience-image {
    width: 100%;
    height: 200px;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.experience-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-content {
    padding: 20px;
}

.experience-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.company-name {
    color: #ff0000;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.experience-duration {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.experience-description {
    color: #fff;
    margin: 15px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

/* Opportunities Section Styling */
.opportunities {
    padding: 80px 40px;
    background-color: #0a0a0a;
    min-height: auto;
    margin-top: 0;
    color: #fff;
}

.opportunities-heading {
    color: #333;
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 50px;
    margin-left: 100px;
}

/* Add padding to align the text content */
.opportunities-content {
    padding: 0 100px;
    /* Match the horizontal padding of other content sections */
}

@media (max-width: 576px) {
    .opportunities-heading {
        font-size: 2rem;
        margin-left: 20px;
    }

    /* Adjust padding for smaller screens */
    .opportunities-content {
        padding: 0 20px;
    }
}

/* Social Section Styling */
.social {
    padding: 80px 40px;
    background-color: #0a0a0a;
    min-height: auto;
    margin-top: -20px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 100px;
    max-width: 1400px;
    margin: 0 auto;
}

.social-card {
    background: #111;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-card:hover {
    transform: translateY(-5px);
    background: #1a1a1a;
    border-color: #ff0000;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2);
}

.social-card i {
    font-size: 24px;
    transition: all 0.3s ease;
}

.social-card:hover i {
    transform: scale(1.2);
}

/* Footer Styling */
.footer {
    background-color: #111;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 0 20px;
}

.footer-section h3 {
    color: #ff0000;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li i {
    margin-right: 10px;
    color: #ff0000;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #666;
    font-size: 0.9rem;
}

/* Navigation Wheel Styling */
@media (max-width: 576px) {
    .nav-wheel {
        display: none !important;
    }
}

@media (min-width: 577px) {
    .nav-wheel {
        display: none !important;
    }
}

/* Resume Buttons Styling */
.resume-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.resume-buttons .btn {
    position: static;
    transform: none;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 576px) {
    .navbar .name {
        margin-bottom: 18px;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-section {
        text-align: center;
    }
}

/* Animation for sections */
.about-me,
.skills,
.projects,
.experience,
.social {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Active link style */
.navbar a.active {
    color: #ff0000;
}

html {
    scroll-behavior: smooth;
}

/* All CSS from index.html <style> tags goes here. */
/* ... (CSS already provided in your previous style.css and all <style> blocks from index.html) ... */

/* Combined styles for all main section headings */
.technical-skills,
.recent-projects,
.recent-experience,
.connect-heading,
.opportunities-heading {
    /* Add the other heading classes here */
    color: #333;
    /* Use the same color */
    font-size: 3.5rem;
    /* Use the same base size */
    font-weight: bold;
    margin-bottom: 50px;
    margin-left: 100px;
    /* Use the same base margin */
}

@media (max-width: 576px) {

    /* Apply consistent styling for all main section headings on small screens */
    .technical-skills,
    .about-heading,
    /* Keep about-heading separate as it has different behavior */
    .recent-projects,
    .recent-experience,
    .connect-heading,
    .opportunities-heading {
        /* Add the other heading classes here */
        /* color: #333; This is already in the combined rule */
        font-size: 2rem;
        /* Use the same smaller size */
        /* font-weight: bold; This is already in the combined rule */
        /* margin-bottom: 50px; This is already in the combined rule */
        margin-left: 20px;
        /* Use the same smaller margin */
    }
}

/* Remove specific styling for .recent-projects here */
/* .recent-projects {
    color: #333;
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 50px;
    margin-left: 100px;
} */

/* Remove specific styling for .recent-experience here */
/* .recent-experience {
    color: #333;
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 50px;
    margin-left: 100px;
} */

/* Remove specific styling for .opportunities-heading here */
/* .opportunities-heading {
    color: #333;
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 50px;
    margin-left: 100px;
} */

/* Remove specific styling for .connect-heading here */
/* .connect-heading {
    color: #333;
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 50px;
    margin-left: 100px;
} */

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 576px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 15px 0;
        font-size: 1.2rem;
    }

    /* Hamburger animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Update the media queries for mobile responsiveness */

@media (max-width: 576px) {

    /* Skills Section Mobile Fix */
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 20px;
    }

    .skill-card {
        width: 100%;
        height: 120px;
    }

    /* Projects Section Mobile Fix */
    .projects-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 20px;
        padding: 0 10px 20px 10px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .project-card {
        min-width: 85vw;
        max-width: 90vw;
        flex: 0 0 auto;
        scroll-snap-align: start;
        margin: 0;
    }

    /* Hide scrollbar for Webkit browsers */
    .projects-grid::-webkit-scrollbar {
        display: none;
    }

    /* Hide scrollbar for Firefox */
    .projects-grid {
        scrollbar-width: none;
    }

    .project-image {
        height: 180px;
    }

    /* Experience Section Mobile Fix */
    .experience-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 20px;
        padding: 0 10px 20px 10px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .experience-card {
        min-width: 85vw;
        max-width: 90vw;
        flex: 0 0 auto;
        scroll-snap-align: start;
        margin: 0;
    }

    /* Hide scrollbar for Webkit browsers */
    .experience-grid::-webkit-scrollbar {
        display: none;
    }

    /* Hide scrollbar for Firefox */
    .experience-grid {
        scrollbar-width: none;
    }

    .experience-image {
        height: 180px;
    }

    /* Social Grid Mobile Fix */
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 20px;
    }

    /* General Section Padding Fix */
    .about-me,
    .skills,
    .projects,
    .experience,
    .opportunities,
    .social {
        padding: 60px 20px;
    }

    /* Section Title and Heading Fix */
    .section-title {
        margin-left: 20px;
    }

    .about-heading,
    .technical-skills,
    .recent-projects,
    .recent-experience,
    .connect-heading,
    .opportunities-heading {
        margin-left: 20px;
        font-size: 2rem;
    }

    /* Project Content Fix */
    .project-content {
        padding: 15px;
    }

    .project-tech {
        gap: 5px;
    }

    .tech-tag {
        font-size: 0.8rem;
        padding: 3px 8px;
    }

    /* Experience Content Fix */
    .experience-content {
        padding: 15px;
    }

    .tech-stack {
        gap: 5px;
    }
}

/* Update tablet view */
@media (min-width: 577px) and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 40px;
    }
}

/* Desktop view */
@media (min-width: 769px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 100px;
    }
}

/* Add these styles */
.show-more-container {
    text-align: center;
    margin-top: 30px;
    padding: 0 20px;
}

.show-more-btn {
    display: inline-block;
    background: #ff0066;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.show-more-btn:hover {
    background: transparent;
    border-color: #ff0066;
    color: #ff0066;
}

.show-more-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.show-more-btn:hover i {
    transform: translateX(5px);
}

/* Certifications Section Styling */
.certifications {
    padding: 80px 40px;
    background-color: #0a0a0a;
    min-height: auto;
    margin-top: 0;
}

.certifications-heading {
    color: #333;
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 50px;
    margin-left: 100px;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 100px;
}

.certification-card {
    background: #111;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.certification-card:hover {
    transform: translateY(-5px);
    border-color: #ff0000;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2);
}

.certification-icon {
    width: 60px;
    height: 60px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.certification-icon i {
    font-size: 24px;
    color: #ff0000;
}

.certification-content {
    flex: 1;
}

.certification-content h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.certification-content p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.certification-date {
    color: #ff0000;
    font-size: 0.8rem;
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

.view-certificate {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.view-certificate:hover {
    color: #ff0000;
}

.view-certificate i {
    margin-left: 5px;
    font-size: 0.8rem;
}

/* Achievements Section Styling */
.achievements {
    padding: 80px 40px;
    background-color: #0a0a0a;
    min-height: auto;
    margin-top: 0;
}

.achievements-heading {
    color: #333;
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 50px;
    margin-left: 100px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 100px;
}

.achievement-card {
    background: #111;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.achievement-card:hover {
    transform: translateY(-5px);
    border-color: #ff0000;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.achievement-icon i {
    font-size: 24px;
    color: #ff0000;
}

.achievement-content {
    flex: 1;
}

.achievement-content h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.achievement-content p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.achievement-date {
    color: #ff0000;
    font-size: 0.8rem;
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

.achievement-description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 10px;
}

@media (max-width: 576px) {

    .certifications-heading,
    .achievements-heading {
        font-size: 2rem;
        margin-left: 20px;
        margin-bottom: 30px;
    }

    .certifications-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .certification-card,
    .achievement-card {
        padding: 15px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .certification-icon,
    .achievement-icon {
        margin-bottom: 15px;
    }

    .certification-content h3 {
        font-size: 1.1rem;
    }

    .certification-content p {
        font-size: 0.85rem;
    }

    .view-certificate {
        margin-top: 15px;
        display: inline-block;
    }

    .achievement-description {
        font-size: 0.85rem;
        margin-top: 15px;
        text-align: center;
    }

    /* General Section Padding Fix */
    .certifications,
    .achievements {
        padding: 40px 20px;
    }

    /* Section Title Fix */
    .section-title {
        margin-left: 20px;
        font-size: 1rem;
    }
}

/* Add tablet view optimization */
@media (min-width: 577px) and (max-width: 768px) {

    .certifications-grid,
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 40px;
    }

    .certifications-heading,
    .achievements-heading {
        font-size: 2.5rem;
        margin-left: 40px;
    }

    .section-title {
        margin-left: 40px;
    }
}

/* Add styles for better card spacing on all devices */
.certification-card,
.achievement-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.certification-content,
.achievement-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Improve text readability */
.certification-content p,
.achievement-content p {
    line-height: 1.4;
}

.achievement-description {
    line-height: 1.5;
}

/* Updated Services Section Styling to match other sections */
.services-section {
    padding: 80px 40px;
    background-color: #0a0a0a;
    min-height: 60vh;
    color: #fff;
    text-align: center;
    position: relative;
}

.services-section .section-title {
    color: #ff0000;
    font-size: 1.2rem;
    margin-bottom: 10px;
    margin-left: 100px;
    position: relative;
    text-align: left;
}

.services-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100px;
    height: 2px;
    background-color: #ff0000;
}

.services-section .opportunities-heading {
    color: #333;
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 50px;
    margin-left: 100px;
    text-align: left;
}

.services-intro {
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 1.2rem;
    color: #fff;
}

.services-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 100px;
    margin-bottom: 40px;
}

.service-card {
    background: #111;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
    border: 2px solid transparent;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.service-card:hover,
.service-card:focus {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.7);
    border: 2px solid #ff0000;
    outline: none;
}

.service-icon {
    font-size: 3rem;
    color: #ff0000;
    margin-bottom: 18px;
    text-shadow: none;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
    letter-spacing: 1px;
}

.service-desc {
    font-size: 1.05rem;
    color: #ccc;
    margin-bottom: 0;
    line-height: 1.6;
    text-align: center;
}

.services-cta {
    margin-top: 30px;
    font-size: 1.2rem;
    color: #fff;
}

.cta-link {
    color: #ff0000;
    font-weight: bold;
    text-decoration: underline;
    transition: color 0.2s;
}

.cta-link:hover,
.cta-link:focus {
    color: blues;
    background: none;
    border-radius: 0;
    padding: 0;
    outline: none;
}

@media (max-width: 900px) {
    .services-cards {
        grid-template-columns: 1fr;
        padding: 0 40px;
    }

    .services-section .opportunities-heading,
    .services-section .section-title {
        margin-left: 40px;
    }
}

@media (max-width: 576px) {
    .services-section {
        padding: 40px 10px;
    }

    .services-section .opportunities-heading {
        font-size: 2rem;
        margin-left: 20px;
        margin-bottom: 30px;
    }

    .services-section .section-title {
        margin-left: 20px;
        font-size: 1rem;
    }

    .services-cards {
        padding: 0 10px;
        gap: 15px;
    }

    .service-card {
        padding: 18px 8px;
    }

    .service-title {
        font-size: 1.1rem;
    }

    .service-icon {
        font-size: 2rem;
    }

    .services-intro {
        font-size: 1rem;
    }

    .services-cta {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {

    .experience {
        position: relative;
    }

    .scroll-arrows-container.mobile-only {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 30;
    }

    .scroll-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: transparent !important;
        color: ff0066;
        border: none;
        border-radius: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        box-shadow: none;
        cursor: pointer;
        transition: color 0.2s;
        outline: none;
        pointer-events: auto;
        z-index: 40;
    }

    .scroll-arrow:active,
    .scroll-arrow:focus {
        color: #fff;
        background: transparent !important;
        box-shadow: none;
    }

    #experience-left-arrow {
        left: 0;
    }

    #experience-right-arrow {
        right: 0;
    }

    .scroll-arrow:active,
    .scroll-arrow:focus {
        background: #fff;
        color: #ff0066;
        box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
    }

    .experience-grid {
        position: relative;
    }
}

@media (min-width: 577px) {
    .scroll-arrows-container.mobile-only {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .certifications-grid {
        display: block;
        padding: 0 5px;
    }

    .certification-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        background: #181818;
        color: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
        border: 1.5px solid #222;
        padding: 10px 12px;
        margin-bottom: 12px;
        gap: 14px;
        min-height: 70px;
    }

    .certification-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        background: #222;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0;
    }

    .certification-icon i {
        font-size: 1.3rem;
        color: #ff0000;
    }

    .certification-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .certification-content h3 {
        font-size: 1rem;
        color: #fff;
        margin-bottom: 2px;
    }

    .certification-content p {
        font-size: 0.85rem;
        color: #ccc;
        margin-bottom: 0;
    }

    .certification-date {
        font-size: 0.8rem;
        color: #ff0000;
        margin-bottom: 0;
    }

    .view-certificate {
        font-size: 0.8rem;
        color: #ff0000;
        margin-top: 2px;
    }
}

@media (max-width: 576px) {
    .achievements-grid {
        display: block;
        padding: 0 5px;
    }

    .achievement-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        background: #181818;
        color: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
        border: 1.5px solid #222;
        padding: 10px 12px;
        margin-bottom: 12px;
        gap: 14px;
        min-height: 70px;
    }

    .achievement-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        background: #222;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0;
    }

    .achievement-icon i {
        font-size: 1.3rem;
        color: #ff0000;
    }

    .achievement-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .achievement-content h3 {
        font-size: 1rem;
        color: #fff;
        margin-bottom: 2px;
    }

    .achievement-content p {
        font-size: 0.85rem;
        color: #ccc;
        margin-bottom: 0;
    }

    .achievement-date {
        font-size: 0.8rem;
        color: #ff0000;
        margin-bottom: 0;
    }

    .achievement-description {
        font-size: 0.8rem;
        color: #ccc;
        margin-top: 2px;
        text-align: left;
    }
}

/* Services Section - Single Card Style */
.service-single-card {
    max-width: 75%;
    margin: 40px auto 0 auto;
    background: #111;
    /* darker for your theme */
    border-radius: 18px;
    box-shadow: 0 2px 24px 0 rgba(0, 0, 0, 0.18);
    border: 1.5px solid #222;
    padding: 40px 32px 32px 32px;
    text-align: center;
    color: #fff;
    position: relative;
    transition: box-shadow 0.3s;
}

.service-single-card:hover {
    box-shadow: 0 4px 32px 0 #ff000088;
}

.service-main-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #ff0000;
    /* red accent */
    letter-spacing: 1px;
}

.service-main-desc {
    font-size: 1.15rem;
    color: #ccc;
    margin-bottom: 32px;
    line-height: 1.6;
}

.service-contact-btn {
    display: inline-block;
    padding: 14px 38px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #ff0000 0%, #ff0066 100%);
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 16px 0 rgba(255, 0, 0, 0.10);
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}

.service-contact-btn:hover,
.service-contact-btn:focus {
    background: linear-gradient(90deg, #ff0066 0%, #ff0000 100%);
    color: #fff;
    box-shadow: 0 6px 24px 0 #ff006688;
    outline: none;
}

@media (max-width: 576px) {
    .service-single-card {
        padding: 16px 6px 14px 6px;
        margin: 18px 2px 0 2px;
        width: 100%;
        max-width: 98vw;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
        background: #111;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #ff0000;
    }

    .service-main-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
        color: inherit;
    }

    .service-main-desc {
        font-size: 0.95rem;
        margin-bottom: 18px;
        justify-content: flex-start;
        color: #fff;
    }

    .service-contact-btn {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        margin-top: 10px;
        padding: 10px 0;
        font-size: 1rem;
        border-radius: 24px;
        background: linear-gradient(90deg, #ff0000 0%, #ff0066 100%);
        border: none;
        color: #fff;
        border: none;
        font-weight: 700;
        box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.10);
        transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    }

    .service-contact-btn:hover,
    .service-contact-btn:focus {
        background: linear-gradient(90deg, #ff0066 0%, #ff0000 100%);
        color: #fff;
        box-shadow: 0 6px 24px 0 #ff006688;
        outline: none;
    }
}

/* Unified red shadow hover/focus effect for all cards and buttons */
.skill-card:hover,
.skill-card:focus,
.project-card:hover,
.project-card:focus,
.experience-card:hover,
.experience-card:focus,
.certification-card:hover,
.certification-card:focus,
.achievement-card:hover,
.achievement-card:focus,
.service-card:hover,
.service-card:focus,
.service-single-card:hover,
.service-single-card:focus,
.social-card:hover,
.social-card:focus,
.show-more-btn:hover,
.show-more-btn:focus,
.btn:hover,
.btn:focus,
.service-contact-btn:hover,
.service-contact-btn:focus {
    box-shadow: 0 0 32px 0 #ff0000cc, 0 8px 15px rgba(0, 0, 0, 0.7);
    transform: translateY(-5px);
    outline: none;
    transition: box-shadow 0.3s, transform 0.3s;
}

/* Desktop grid for certifications and achievements */
.certifications-grid,
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    padding: 0 40px;
    justify-content: center;
}

.certification-card,
.achievement-card {
    background: #111;
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    border: none;
    padding: 28px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 180px;
    transition: box-shadow 0.3s, transform 0.3s;
}

.certification-icon,
.achievement-icon {
    width: 48px;
    height: 48px;
    background: #00171f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.certification-icon i,
.achievement-icon i {
    font-size: 1.6rem;
    color: #ff0000cc;
}

.certification-content h3,
.achievement-content h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.certification-content p,
.achievement-content p {
    color: #ff0000cc;
    font-size: 0.98rem;
    margin-bottom: 2px;
}

.certification-date,
.achievement-date {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.view-certificate {
    color: #fff;
    font-size: 0.9rem;
    margin-top: 6px;
    text-decoration: underline;
}

@media (max-width: 576px) {

    .certifications-grid,
    .achievements-grid {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 0 6px;
    }

    .certification-card,
    .achievement-card {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 14px 10px;
        min-height: 70px;
    }

    .certification-icon,
    .achievement-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        margin-bottom: 0;
        margin-right: 12px;
    }

    .certification-content,
    .achievement-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .certification-content h3,
    .achievement-content h3 {
        font-size: 1rem;
        margin-bottom: 2px;
    }

    .certification-content p,
    .achievement-content p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    .certification-date,
    .achievement-date {
        font-size: 0.8rem;
        margin-bottom: 0;
    }

    .view-certificate {
        font-size: 0.8rem;
        margin-top: 2px;
    }
}

.scroll-dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #444;
    border-radius: 50%;
    transition: background 0.2s;
}

.dot.active {
    background: #ff0066;
}