:root {
    --navy-blue: #0a192f;
    --light-navy: #112240;
    --lightest-navy: #233554;
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --white: #e6f1ff;
    --vibrant-teal: #64ffda;
    --header-height: 70px;
}

/* --- HIDE ALL SCROLLBARS --- */
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    display: none;
}

body, * {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}


* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--navy-blue);
    color: var(--light-slate);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    cursor: default;
    overflow-x: hidden;
}
body.mobile-nav-open {
    overflow-y: hidden;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
h1, h2, h3 { color: var(--lightest-slate); font-weight: 600; }
h1 { font-size: clamp(40px, 8vw, 80px); }
h2 {
    font-size: clamp(28px, 5vw, 40px);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
    border-radius: 4px;
}
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--vibrant-teal);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(100, 255, 218, 0.7);
}
#contact h2::after {
    width: 100%;
    left: 0;
}
.section-padding { padding: 80px 0; }
#skills.section-padding {
    padding-top: 120px;
    padding-bottom: 120px;
}
#sticky-header {
    position: fixed;
    top: -150px;
    left: 0;
    width: 100%;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    transition: top 0.3s ease-in-out;
    height: var(--header-height);
}
#sticky-header.visible { top: 0; }
#sticky-header .container { display: flex; justify-content: space-between; align-items: center; }
#sticky-header .logo { color: var(--vibrant-teal); font-weight: bold; text-decoration: none; transition: transform 0.3s ease; display: inline-block; }
#sticky-header .logo:hover { transform: translateY(-2px); }

/* Navigation Base */
#main-nav { display: flex; align-items: center; gap: 1rem; }
#main-nav a { color: var(--lightest-slate); text-decoration: none; transition: color 0.3s, transform 0.3s ease; display: inline-block; cursor: pointer; padding: 5px 8px; }
#main-nav a:hover { color: var(--vibrant-teal); transform: translateY(-2px); }
.hamburger-menu { display: none; }

/* Dropdown Base */
#main-nav .nav-item {
    position: relative;
    display: inline-block;
}
#main-nav .nav-item > a::after {
    content: ' ▾';
    font-size: 0.8em;
}
#main-nav .dropdown-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background-color: var(--light-navy);
    min-width: 220px;
    max-width: 350px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    padding: 8px 0;
    margin-top: 10px;
    border: 1px solid var(--lightest-navy);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    max-height: 250px;
    overflow-y: auto;
}
#main-nav .dropdown-fit-content {
    min-width: 0;
    width: max-content;
}
#main-nav .dropdown-content a {
    color: var(--light-slate);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    text-align: center; /* Center text inside all dropdowns */
    transition: background-color 0.3s, color 0.3s;
}
#main-nav .dropdown-fit-content a {
    white-space: nowrap;
}
#main-nav .dropdown-content a:hover {
    background-color: var(--lightest-navy);
    color: var(--vibrant-teal);
    transform: none;
}
#main-nav .nav-item:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
}


#hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; color: var(--white); position: relative; padding: 4rem 1rem; }
.hero-content { display: flex; align-items: center; gap: 2rem; }
.hero-left { flex: 1; display: flex; justify-content: center; align-items: center; }

#profile-pic-container {
    width: 290px;
    height: 290px;
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

#profile-pic-content {
    width: 80%;
    height: 80%;
    background-color: var(--light-navy);
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 3px solid var(--light-navy);
    transition: transform 0.4s ease;
}

#profile-pic-container:hover #profile-pic-content {
    transform: scale(1.05);
}

.ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-style: solid;
    border-color: transparent;
    z-index: 1;
}

.outer-ring {
    border-width: 3px;
    border-top-color: var(--vibrant-teal);
    border-right-color: var(--vibrant-teal);
    animation: rotate-clockwise 10s linear infinite;
    filter: drop-shadow(0 0 3px var(--vibrant-teal));
}

.inner-ring {
    width: 90%;
    height: 90%;
    top: 5%;
    left: 5%;
    border-width: 2px;
    border-bottom-color: var(--light-slate);
    border-left-color: var(--light-slate);
    animation: rotate-counter-clockwise 8s linear infinite;
}

@keyframes rotate-clockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-counter-clockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.hero-right { flex: 2; }
.hero-right h1 { font-size: clamp(2.5rem, 7vw, 5rem); color: var(--white); margin: 0; }
.hero-right h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); color: var(--vibrant-teal); margin: 0.5rem 0; }
.hero-right h2::after { display: none; }
.hero-right p { font-size: 1.1rem; max-width: 550px; color: var(--light-slate); margin: 1.5rem 0; }
.hero-buttons { margin-top: 2rem; }
.btn { padding: 0.8rem 1.8rem; text-decoration: none; border-radius: 4px; font-weight: 600; transition: all 0.3s ease; margin-right: 1rem; cursor: pointer; }
.btn-primary { background-color: transparent; border: 1px solid var(--vibrant-teal); color: var(--vibrant-teal); }
.btn-primary:hover { background-color: rgba(100, 255, 218, 0.1); transform: translateY(-3px); box-shadow: 0 4px 15px rgba(100, 255, 218, 0.2); }
.btn-secondary { background-color: transparent; color: var(--light-slate); border: 1px solid var(--light-slate); }
.btn-secondary:hover { background-color: rgba(204, 214, 246, 0.1); transform: translateY(-3px); }
.about-content { max-width: 800px; font-size: 1.1rem; }

.about-content ul {
    list-style-type: none; 
    padding-left: 0;
}

.about-content ul li {
    position: relative;
    padding-left: 30px; 
    margin-bottom: 1rem; 
    font-size: 1.1rem; 
    color: var(--light-slate);
}

.about-content ul li::before {
    content: '▶'; 
    position: absolute;
    left: 0;
    top: 0;
    color: var(--vibrant-teal); 
    font-size: 1em;
    line-height: 1.6;
}

#skills-grid {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    padding-left: calc((100vw - 1100px) / 2 + 2rem);
    padding-right: 2rem;
    box-sizing: border-box;
    clip-path: inset(0 0 0 0);
}

.skill-card {
    flex: 0 0 320px;
    background-color: var(--light-navy);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--lightest-navy);
    cursor: pointer;
    opacity: 0;
    transform: translateX(100px);
    position: relative;
    overflow: hidden;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.skill-card.animate {
    opacity: 1;
    transform: translateX(0);
}

.skill-card.animate:hover {
    transform: translateY(-10px) translateX(0);
}

.skill-card h3 { color: var(--lightest-slate); margin-bottom: 1rem; }
.skill-card ul { list-style: none; padding: 0; }
.skill-card li { color: var(--slate); margin-bottom: 0.5rem; }

#projects-container { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.project-card {
    background-color: var(--light-navy);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--lightest-navy);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.project-card h3 { color: var(--vibrant-teal); margin-bottom: 0.5rem; }
.project-outcome-title {
    color: var(--lightest-slate);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.project-tools { margin-top: 1rem; }
.project-tools span { background-color: var(--lightest-navy); color: var(--vibrant-teal); padding: 0.3rem 0.7rem; border-radius: 15px; font-size: 0.8rem; margin-right: 0.5rem; font-weight: 500; }

#timeline-container { position: relative; max-width: 800px; margin: 3rem auto 0; }
#timeline-container::after { content: ''; position: absolute; width: 3px; background-color: var(--lightest-navy); top: 0; bottom: 0; left: 50%; margin-left: -1.5px; }
.timeline-item { padding: 10px 40px; position: relative; width: 50%; }
.timeline-item::after { content: ''; position: absolute; width: 20px; height: 20px; right: -10px; background-color: var(--navy-blue); border: 4px solid var(--vibrant-teal); top: 20px; border-radius: 50%; z-index: 1; }
.timeline-left { left: 0; text-align: right; }
.timeline-right { left: 50%; }
.timeline-right::after { left: -10px; }
.timeline-content {
    padding: 20px 30px;
    background-color: var(--light-navy);
    position: relative;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
}
.timeline-content h3 { color: var(--lightest-slate); margin-bottom: 0.2rem; }
.timeline-content .date { font-size: 0.9rem; color: var(--vibrant-teal); font-weight: bold; }

#resume-cover-letter-container { text-align: center; }
#contact { text-align: center; }
#contact p { max-width: 600px; margin: 1rem auto 2rem; }
.email-link { display: inline-block; color: var(--vibrant-teal); font-size: 1.2rem; text-decoration: none; border: 1px solid var(--vibrant-teal); padding: 1rem 2rem; border-radius: 4px; margin-bottom: 2rem; transition: background-color 0.3s; }
.email-link:hover { background-color: rgba(100, 255, 218, 0.1); }
.social-icons a { color: var(--light-slate); font-size: 2.5rem; margin: 0 1rem; transition: color 0.3s, transform 0.3s; cursor: pointer; }
.social-icons a:hover { color: var(--vibrant-teal); transform: translateY(-5px); }
footer { text-align: center; padding: 2rem 0; color: var(--slate); font-size: 0.9rem; }
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
#certificates-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
.certificate-card {
    background-color: var(--light-navy);
    border-radius: 8px;
    border: 1px solid var(--lightest-navy);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.certificate-card img {
    width: 100%;
    display: block;
    height: 200px;
    object-fit: cover;
}
.certificate-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}
.certificate-info h3 {
    color: var(--lightest-slate);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.certificate-info p {
    color: var(--vibrant-teal);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    flex-grow: 1;
}
.certificate-verification {
    margin-top: auto;
}

.certificate-info a {
    color: var(--vibrant-teal);
    text-decoration: none;
    border: 1px solid var(--vibrant-teal);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}
.certificate-info a:hover {
    background-color: rgba(100, 255, 218, 0.1);
}
.resume-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem; }
.resume-card { width: 391px; height: 520px; background-color: var(--light-navy); border-radius: 8px; border: 1px solid var(--lightest-navy); overflow: hidden; position: relative; cursor: pointer; flex-shrink: 0; }
.resume-image-container { width: 100%; height: 100%; overflow: hidden; }
.resume-card img { width: 100%; height: 100%; display: block; object-fit: cover; }
.resume-card .download-icon { position: absolute; top: 1rem; right: 1rem; font-size: 1.5rem; color: var(--white); text-decoration: none; transition: color 0.3s; z-index: 2; }
.resume-card .download-icon:hover { color: var(--vibrant-teal); }
.resume-card-title { position: absolute; bottom: 0; left: 0; right: 0; color: var(--vibrant-teal); text-align: center; padding: 1rem; font-weight: 600; background-color: rgba(17, 34, 64, 0.7); transition: background-color 0.3s ease; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; position: relative; }
.section-header h2, .section-header h3 { margin-bottom: 0; }

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.modal-overlay.visible {
    display: flex;
}
.image-modal-content-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#image-modal .modal-content {
    max-width: 95%;
    max-height: 95%;
    transform-origin: center center;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    cursor: grab;
}
#image-modal .modal-content:active {
    cursor: grabbing;
}
.close-image-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}
.close-image-modal:hover, .close-image-modal:focus {
    color: #bbb;
    text-decoration: none;
}

/* =============================================== */
/* ============== UNIFIED CARD STYLES ============ */
/* =============================================== */

/* --- Base Card Transition (FIXED) --- */
/* Applies a smooth transition to all card types, including the 'show-more' container. */
.project-card,
.certificate-card,
.timeline-content,
.resume-card,
.show-more-container {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease-out;
}

/* --- Card Hover Effect (FIXED) --- */
/* This single, unified rule applies the pop-up and glow effect to all cards on hover, including the 'show-more' container. */
.skill-card:hover,
.project-card:hover,
.certificate-card:hover,
.timeline-content:hover,
.resume-card:hover,
.show-more-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2), 0 0 25px rgba(100, 255, 218, 0.5);
}

/* Stylish underline for specific cards on all devices */
.skill-card::after,
.project-card::after,
.resume-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 25%;
    height: 4px;
    background-color: var(--vibrant-teal);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.skill-card:hover::after,
.project-card:hover::after,
.resume-card:hover::after {
    width: 80%;
}


/* --- BLINKING/HIGHLIGHTING ANIMATIONS --- */

/* For Nav Tab Background */
@keyframes blink-background {
    50% {
        background-color: rgba(100, 255, 218, 0.15);
    }
}

#main-nav a.active-link {
    animation: blink-background 1.2s ease-in-out;
    border-radius: 4px;
}

/* For Cards and other elements */
@keyframes highlight-effect {
    0%, 100% {
        box-shadow: none;
    }
    50% {
        box-shadow: 0 10px 20px rgba(0,0,0,0.2), 0 0 25px rgba(100, 255, 218, 0.5);
    }
}

.highlight {
    animation: highlight-effect 1.2s ease-in-out;
}

/* Special case for timeline items to highlight the inner box */
.timeline-item.highlight {
    animation: none;
}
.timeline-item.highlight .timeline-content {
    animation: highlight-effect 1.2s ease-in-out;
}

/* For Section Headings */
@keyframes heading-glow-effect {
    50% {
        color: var(--vibrant-teal);
        text-shadow: 0 0 15px rgba(100, 255, 218, 0.8);
    }
}

.heading-highlight {
    animation: heading-glow-effect 1.2s ease-in-out;
}
/* --- END OF ANIMATIONS --- */

/* --- VISIBILITY & 'SHOW MORE' STYLES --- */
.hidden-by-default {
    display: none;
}

#show-more-projects-container {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    height: auto;
    cursor: pointer;
    overflow: visible;
    transition: transform 0.3s ease; /* Add transition for smooth movement */
}

#show-more-projects-key {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px; /* Strip height */
    background-color: var(--light-navy); /* Strip background color */
    color: var(--vibrant-teal);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px; /* Optional: slight rounding */
    border: 1px solid var(--lightest-navy);
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

#show-more-projects-key::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 25%;
    height: 4px;
    background-color: var(--vibrant-teal);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(100, 255, 218, 0.7);
    transition: width 0.4s ease;
}

#show-more-projects-container:hover #show-more-projects-key::after {
    width: 80%;
}


#show-more-projects-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2), 0 0 25px rgba(100, 255, 218, 0.5);
    border-radius: 4px; /* Match the key's border radius */
}

#show-more-projects-container:hover #show-more-projects-key {
    background-color: var(--lightest-navy);
}


.show-more-container {
    background-color: var(--light-navy);
    border-radius: 8px;
    border: 1px solid var(--lightest-navy);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.show-more-container .certificate-card {
    opacity: 0.2;
    pointer-events: none; /* Make the card itself non-interactive initially */
}


#show-more-certificates-key {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--vibrant-teal);
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.8;
    z-index: 5;
    pointer-events: none; /* The container handles the click */
}

/* --- Stylish Swipe/Scroll Indicator for ALL devices --- */
#skills {
    position: relative;
    padding-bottom: 120px; /* Increased padding for the indicator */
}

#skills::after {
    content: 'SWIPE OR SCROLL';
    position: absolute;
    bottom: 25px; /* Position text below the line */
    left: 50%;
    transform: translateX(-50%);
    color: var(--slate);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    font-weight: 500;
    opacity: 0.7;
}

#skills::before {
    content: '';
    position: absolute;
    bottom: 50px; /* Position the line */
    left: 50%;
    transform: translateX(-50%);
    width: 120px; /* Width of the indicator line */
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--navy-blue),
        var(--vibrant-teal),
        var(--navy-blue)
    );
    background-size: 200% 100%;
    animation: gradient-swipe 3s linear infinite;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(100, 255, 218, 0.5);
}

@keyframes gradient-swipe {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* --- DESKTOP SPECIFIC STYLES --- */
@media (min-width: 769px) {
    /* Center the dropdown container relative to the nav item */
    #main-nav .dropdown-content {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Add stylish underline to certificate cards on hover */
    .certificate-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 25%;
        height: 4px;
        background-color: var(--vibrant-teal);
        border-radius: 2px;
        transition: width 0.4s ease;
    }

    .certificate-card:hover::after {
        width: 80%;
    }
}


/* =============================================== */
/* ============== MOBILE STYLES ================== */
/* =============================================== */

@media (max-width: 768px) {
    /* --- Hamburger Menu --- */
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 2rem;
        height: 2rem;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        transition: all 0.3s linear;
    }
    .hamburger-menu span {
        width: 2rem;
        height: 0.25rem;
        background: var(--vibrant-teal);
        border-radius: 10px;
        transition: all 0.3s linear;
        position: relative;
        transform-origin: 1px;
    }
    .mobile-nav-open .hamburger-menu span:nth-child(1) { transform: rotate(45deg); }
    .mobile-nav-open .hamburger-menu span:nth-child(2) { opacity: 0; transform: translateX(20px); }
    .mobile-nav-open .hamburger-menu span:nth-child(3) { transform: rotate(-45deg); }

    /* --- Mobile Navigation Container --- */
    #main-nav {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: var(--navy-blue);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        padding-top: var(--header-height);
        gap: 0;
    }
    .mobile-nav-open #main-nav {
        transform: translateX(0);
    }
    #main-nav a {
        font-size: 1.5rem;
        padding: 1rem 0;
        color: var(--lightest-slate);
        text-decoration: none;
        transition: color 0.3s linear;
        width: 100%;
        text-align: center;
    }

    /* Mobile Dropdown Styles */
    #main-nav .nav-item {
        position: static;
        display: block;
        width: 100%;
        text-align: center;
    }

    #main-nav .nav-item > a {
        display: inline-block;
        width: auto;
    }

    #main-nav .dropdown-content {
        position: static; /* Let it be part of the normal document flow */
        display: none;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
        min-width: auto;
        border-radius: 0;
        border-top: 1px solid var(--lightest-navy);
        margin: 0 20px;
        max-height: 150px;
        overflow-y: auto;
    }

    #main-nav .nav-item.open .dropdown-content {
        display: block;
    }

    #main-nav .dropdown-content a {
        font-size: 1.2rem;
        padding: 0.8rem 0;
        color: var(--slate);
        text-align: center; /* Center the text inside mobile dropdowns */
    }


    /* --- General Mobile Layout --- */
    .container {
        padding: 0 1.5rem;
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-right { margin-top: 2rem; }
    #profile-pic-container { width: 220px; height: 220px; }
    #timeline-container::after { left: 20px; }
    .timeline-item { width: 100%; padding-left: 60px; padding-right: 15px; }
    .timeline-item::after { left: 10px; }
    .timeline-left, .timeline-right { left: 0; text-align: left; }
    .resume-grid { flex-direction: column; align-items: center; }

    /* --- Swipable Skills Section --- */
    #skills-grid {
        position: relative;
        height: 450px; /* Adjust height as needed */
        perspective: 1000px;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        padding: 0;
        width: 100%;
        left: 0;
        transform: none;
    }
    .skill-card {
        position: absolute;
        width: 80%;
        max-width: 320px;
        flex-shrink: 0;
        transition: transform 0.5s ease, opacity 0.5s ease;
        opacity: 0;
        transform: scale(0.8);
    }
    .skill-card.active {
        transform: translateX(0) scale(1);
        opacity: 1;
        z-index: 10;
    }
    .skill-card.prev {
        transform: translateX(-100%) rotateY(30deg) scale(0.8);
        opacity: 0.5;
        z-index: 5;
    }
    .skill-card.next {
        transform: translateX(100%) rotateY(-30deg) scale(0.8);
        opacity: 0.5;
        z-index: 5;
    }
    .skill-card.hidden-left {
        transform: translateX(-150%);
        opacity: 0;
    }
    .skill-card.hidden-right {
        transform: translateX(150%);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .section-padding { padding: 60px 0; }
    #skills.section-padding { padding-top: 100px; padding-bottom: 100px; }
    .resume-card {
        width: 100%;
        height: auto;
        aspect-ratio: 391 / 520;
    }
    .skill-card {
        flex: 0 0 280px;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .btn {
        width: 100%;
        margin-right: 0;
    }
    .social-icons a { font-size: 2.2rem; margin: 0 0.8rem; }
}

/* --- NEWLY ADDED STYLE --- */
.btn-secondary.view-certificate-btn {
    margin-left: 1rem;
}

@media (max-width: 480px) {
    .btn-secondary.view-certificate-btn {
        margin-left: 0; /* Remove the left margin on small screens */
    }
}
