/* --- General Setup & Variables --- */
:root {
    --bg-color: #f4f7ff;
    --dark-section-bg: #111827;
    --text-color: #333;
    --light-text-color: #E5E7EB;
    --primary-gradient: linear-gradient(90deg, #00C9FF, #92FE9D);
    --secondary-gradient: linear-gradient(90deg, #6a11cb, #2575fc);
    --dark-bg: rgba(30, 30, 42, 0.6);
    --white: #ffffff;
    --primary-blue: #00C9FF;
    --border-color: #dbe1f1;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-section-bg);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
}

body.nav-open {
    overflow: hidden; /* Prevent scrolling when mobile nav is open */
}

/* --- Background Blobs --- */
.blob-container {
    position: fixed;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.7;
    transition: transform 0.5s ease-out;
}

.blob:nth-child(1) {
    width: 350px;
    height: 350px;
    background: var(--primary-gradient);
    top: -50px;
    left: -50px;
}

.blob:nth-child(2) {
    width: 450px;
    height: 450px;
    background: var(--secondary-gradient);
    bottom: -100px;
    right: -100px;
}

/* --- Header & Navigation --- */
.main-header {
    position: fixed;
    top: 1.5rem; /* Adjusted for a slightly higher position */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    z-index: 100;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* MODIFICATION: Reduced padding for a smaller navbar */
    padding: 0.5rem 1.25rem;
    background: var(--dark-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.nav-logo img {
    width: 35px; /* MODIFICATION: Slightly smaller logo */
    height: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    /* MODIFICATION: Reduced gap to bring links closer */
    gap: 1.2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-size: 0.9rem; /* MODIFICATION: Slightly smaller font */
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

/* NEW: Style for the active navigation link */
.nav-links a.active {
    color: var(--primary-blue);
    font-weight: 600;
}

.hamburger-menu {
    display: none; /* Hidden by default on large screens */
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001; /* Above the nav background */
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    background-color: var(--bg-color);
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
}

.hero-text {
    flex: 1.5;
}

h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.gradient-text {
    display: block;
    background: linear-gradient(90deg, #00A3CC, #2575fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.social-icons a {
    color: #333;
    font-size: 1.5rem;
    text-decoration: none;
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 201, 255, 0.3);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-blue);
    transform: translateY(-3px);
}

.hero-image-container {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 350px;
}

.image-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
    opacity: 0.8;
}

.hero-image {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* --- Shared Section Styles --- */
section { /* Added for scroll-margin-top */
    scroll-margin-top: 100px;
}

.dark-section {
    background-color: var(--dark-section-bg);
    color: var(--light-text-color);
    padding: 6rem 5%;
    position: relative;
    z-index: 1;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-content h2 span {
    color: var(--primary-blue);
}

.section-content .section-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3.5rem;
    line-height: 1.6;
    color: #D1D5DB;
}

/* --- About Section --- */
.about-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.about-card {
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease-in-out;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 201, 255, 0.1);
}

.about-card:hover::after {
    width: 50%;
}

.about-card .icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.about-card p {
    color: #9CA3AF;
}

/* --- Projects Section --- */
.projects-section {
    background-color: var(--bg-color);
    padding: 6rem 0;
    position: relative;
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.projects-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.projects-header h2 {
    font-size: 3rem;
    color: var(--text-color);
}

.projects-header h2 span {
    background: linear-gradient(90deg, #FF8C00, #FF6F00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.projects-header p {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 1rem auto 0;
}

.projects-carousel {
    position: relative;
}

.projects-scroll-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem;
    scrollbar-width: none;
    /* Firefox */
}

.projects-scroll-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.project-card {
    flex: 0 0 320px;
    background-color: #1a1a2e;
    color: var(--light-text-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.project-image {
    height: 200px;
    overflow: hidden;
}

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

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tags span {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.project-content p {
    font-size: 0.9rem;
    color: #bdc1d1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-button {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary-blue);
    color: var(--dark-section-bg);
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-button:hover {
    background-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 201, 255, 0.3);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ff8c00;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: grid;
    place-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.arrow-left {
    left: -20px;
}

.arrow-right {
    right: -20px;
}


/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category-card {
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    transition: all 0.4s ease-in-out;
    cursor: pointer;
    overflow: hidden;
}

.skill-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 201, 255, 0.1);
}

.skill-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.skill-summary .large-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.skill-summary h4 {
    font-size: 1.25rem;
    color: var(--white);
}

.skill-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.skill-details h4 {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.skill-category-card.active {
    border-color: var(--primary-blue);
    background-color: #1F2937;
}

.skill-category-card.active .skill-summary {
    opacity: 0;
    transform: scale(0.9);
    max-height: 0;
}

.skill-category-card.active .skill-details {
    max-height: 500px;
    opacity: 1;
}

.skill-icons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: auto;
}

.skill-item {
    background-color: rgba(62, 77, 98, 0.5);
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--light-text-color);
    font-size: 0.9rem;
}

.skill-item i {
    font-size: 1.2rem;
}

.skill-item img {
    width: 20px;
    height: 20px;
}

.skill-category-card.frontend .large-icon {
    color: var(--primary-blue);
}

.skill-category-card.backend .large-icon {
    color: #8CC84B;
}

.skill-category-card.designing .large-icon {
    color: #A75FF3;
}

.skill-category-card.ml .large-icon {
    color: #FFD43B;
}

.skill-category-card.blockchain .large-icon {
    color: #6A11CB;
}

.skill-category-card.communication .large-icon {
    color: #FF416C;
}

.skill-category-card.content .large-icon {
    color: #F7971E;
}

/* --- Achievements & Awards Section --- */
.awards-section {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 6rem 5%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.awards-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.awards-gallery {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.awards-list {
    flex: 1.2;
    text-align: left;
}

.awards-list h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.awards-list h2 span {
    background: linear-gradient(90deg, #FF6F00, #FFD000);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.awards-list .section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin: 0 0 2.5rem 0;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.award-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: var(--white);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

.award-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.award-item .icon {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #FFD000, #FF8C00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.award-item-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.award-item-text span {
    font-size: 0.85rem;
    color: #666;
}

.img-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* --- Journey Section --- */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.tab-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(31, 41, 55, 0.8);
    color: var(--light-text-color);
}

.tab-btn.active {
    background-color: var(--primary-blue);
    color: var(--dark-section-bg);
    box-shadow: 0 5px 15px rgba(0, 201, 255, 0.2);
}

.journey-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.journey-grid.active {
    display: grid;
}

.journey-card {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 10px;
    color: var(--dark-section-bg);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.journey-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-left-color: var(--primary-blue);
}

.journey-card:hover .date {
    background-color: rgba(0, 201, 255, 0.2);
    color: #007A99;
}

.journey-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1F2937;
}

.journey-card .org {
    font-size: 0.9rem;
    color: #4B5563;
    margin-bottom: 1rem;
    font-weight: 500;
}

.journey-card .date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(31, 41, 55, 0.1);
    color: #1F2937;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* --- Certifications Section --- */
.certifications-section {
    background-color: var(--bg-color);
    padding: 6rem 0;
    position: relative;
}

.certifications-section .section-content h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.certifications-section .section-content .section-description {
    color: #555;
    margin-bottom: 3.5rem;
}

.certifications-section .section-content h2 span {
    background: linear-gradient(90deg, #FF6F00, #FFD000);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.certifications-carousel {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 40px;
}

.certifications-grid {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.certifications-grid::-webkit-scrollbar {
    display: none;
}

.certification-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    flex: 0 0 320px;
}

.certification-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.certification-card h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.certification-card p {
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.certification-card .view-credential {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.certification-card .view-credential:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.certifications-carousel .carousel-arrow {
    position: absolute;
    top: 50%;
    background-color: var(--white);
    color: var(--primary-blue);
    border: 1px solid var(--border-color);
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.certifications-carousel .carousel-arrow:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-50%) scale(1.05);
}

.certifications-carousel .cert-arrow-left {
    left: 0;
    transform: translateY(-50%);
}

.certifications-carousel .cert-arrow-right {
    right: 0;
    transform: translateY(-50%);
}


/* --- Motivation Section --- */
.motivation-quote {
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 2rem;
    border-left: 4px solid var(--primary-blue);
    background-color: #1F2937;
    border-radius: 0 8px 8px 0;
}

.motivation-quote blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--light-text-color);
    margin-bottom: 1rem;
}

.motivation-quote cite {
    font-size: 1rem;
    color: var(--primary-blue);
    font-weight: 600;
}

/* --- Footer --- */
footer {
    background-color: #0d121c;
    color: var(--light-text-color);
    padding: 3rem 5% 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo span {
    font-weight: 500;
    font-size: 1.1rem;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-social span {
    margin-right: 0.5rem;
}

.footer-social a {
    color: #9CA3AF;
    font-size: 1.5rem;
    text-decoration: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary-blue);
    color: var(--dark-section-bg);
}

.footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: #9CA3AF;
}

.footer-copyright .heart {
    color: #e25555;
}

/* --- Modal (Lightbox) Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
}

.modal-content img {
    width: 100%;
    border-radius: 5px;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* --- Responsive Design --- */

/* Laptops and Desktops (Breakpoint for Hamburger) */
@media (max-width: 1024px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 300px;
        background-color: #1F2937;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    .nav-links.active {
        transform: translateX(0);
    }
    .nav-links li a {
        font-size: 1.2rem;
    }
    .hamburger-menu {
        display: block;
    }
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    h1 {
        font-size: 3.8rem;
    }

    .awards-content {
        gap: 2rem;
    }

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

/* Tablets */
@media (max-width: 768px) {
    .main-header {
        top: 1rem;
    }
    .hero {
        padding-top: 8rem;
        padding-bottom: 4rem;
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        order: 2;
    }
    .hero-image-container {
        order: 1;
        margin-bottom: 2rem;
        max-width: 280px;
    }
    .social-icons,
    .cta-buttons {
        justify-content: center;
    }

    .section-content h2, .projects-header h2, .awards-list h2 {
        font-size: 2.5rem;
    }

    .awards-content {
        flex-direction: column;
        text-align: center;
    }
    .awards-list {
        text-align: center;
    }
    .awards-list .section-description {
        margin: 0 auto 2.5rem;
    }
    .awards-gallery {
        margin-bottom: 2rem;
    }
    .img-wrapper {
        width: 200px;
        height: 200px;
    }
    .carousel-arrow, .certifications-carousel .carousel-arrow {
        display: none; /* Hide arrows on touch devices */
    }
    .projects-container, .certifications-carousel {
        padding: 0 1rem; /* Adjust padding for scroll areas */
    }

    .project-card, .certification-card {
        flex: 0 0 290px;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    h1 {
        font-size: 2.8rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    .project-card, .certification-card {
        flex: 0 0 85%; /* Let cards take up more width */
    }

    .journey-grid {
        grid-template-columns: 1fr;
    }
    .motivation-quote blockquote {
        font-size: 1.2rem;
    }
}