/* 📌 CSS Reset - Removes all default margin/padding from browsers */
* {
    margin: 0;
    padding: 0;
    /* Makes layout calculation easier by including padding and border within the element's total width and height */
    box-sizing: border-box; 
}

/* Set a common font for the entire body */
body {
    font-family: "Montserrat", sans-serif;
    background-color: var(--bg);
    color: var(--text);
}

/* Smooth anchor scrolling */
html { scroll-behavior: smooth; }

/* 🧭 Navigation Bar Styling */
.main-header {
    background-color: #191970; /* blue background */
    padding: 15px 0; /* Space above and below the header */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Slight shadow for depth */
    position: fixed; /* Stick header to top */
    top: 0;
    left: 0;
    right: 0;
    z-index: 999; /* on top of everything */
    transform: translateY(0);
    transition: transform 240ms ease-in-out, box-shadow 240ms ease-in-out;
}

/* Hide header (used when scrolling down). We translate it up by full header height so it locks off the screen. */
.main-header.nav--hidden {
    transform: translateY(-110%);
    box-shadow: none; /* remove shadow while hidden */
}

.navbar {
    max-width: 1200px; /* Maximum width restriction */
    margin: 0 auto; /* Center the navigation bar horizontally */
    display: flex; /* ⭐️ Key: Enable Flexbox for layout */
    justify-content: space-between; /* Pushes items (logo and links) to the opposite ends */
    align-items: center; /* Centers items vertically */
    padding: 0 20px; /* Inner padding on the left and right */
    position: relative; /* anchor for absolute-positioned mobile menu */
    z-index: 200;
}

/* ⭐️ Logo Styling (Your Name) */
.logo {
    color: #fff; /* White text color */
    font-size: 1.5em; /* Increase font size */
    font-weight: bold;
    text-decoration: none; /* Remove the underline */
}

/* ⭐️ Menu Links Styling (The list container) */
.nav-links {
    list-style: none; /* Remove default list bullets */
    display: flex; /* Arrange list items in a single row */
}

/* Styling for each individual list item */
.nav-links li {
    margin-left: 25px; /* Space between each menu item */
}

/* Styling for the anchor (link) tags */
.nav-links a {
    color: #f4f4f4; /* Light text color */
    text-decoration: none;
    padding: 5px 10px;
    transition: color 0.3s ease; /* Smooth transition for hover effect */
}

/* Hover effect on menu items */
.nav-links a:hover {
    color: #fbbf24; /* Change color on hover to gold */
}

/* =========================
   Section / Content styles
   ========================= */
:root {
    /* Color tokens tuned to a navy professional palette */
    --bg: #0f1530; /* page background: subtle near-black */
    --header-bg: #191970; /* primary navy header */
    --section-bg: #1f2460; /* slightly lighter navy for sections */
    --card-bg: #242a72; /* hero card / strong navy */
    --accent-bg: #1a2258; /* about / variation of navy */
    --text: #ffffff; /* primary text color */
    --muted: rgba(255, 255, 255, 0.85);
    /* Profile image sizing tokens (easy to tune) */
    --profile-size: 240px; /* default (desktop) */
    --profile-size-mobile: 180px; /* default (mobile) */
    --profile-size-tablet: 200px; /* tablet view */
    --profile-enhanced-size: 340px; /* enhanced image (desktop) */
    --profile-enhanced-size-mobile: 220px; /* enhanced image (mobile) */
    --profile-enhanced-size-tablet: 260px; /* enhanced image (tablet) */
}

/* Utility: Screen-reader only (accessible hidden) */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Utility: muted text color for less prominent information */
.muted { color: var(--muted); }

/* Base section styling. Use the `section` element or `.section` class. */
section,
.section {
    max-width: 1450px;
    margin: 24px auto;
    padding: 28px;
    border-radius: 14px;
    color: var(--text);
    background-color: var(--section-bg);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}


.section--wide {
    max-width: 1000px;
}

/* Typography inside sections */
.section h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--text);
}

/* Small tweaks for the hero narrow section */
.hero-title { margin: 0; }

/*Hero content styling*/
.hero-content {
    color: #ffffff;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Professional Profile Section */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 220ms ease;
}

.profile-link:hover {
    color: #ffb84d;
    background: rgba(255,153,0,0.08);
    border-color: rgba(255,153,0,0.2);
    transform: translateY(-2px);
}

.github-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #10b981;
    margin-bottom: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Hero Tagline */
.hero-tagline {
    font-size: 18px;
    /*font-size: clamp(1.1rem, 2.2vw, 1.35rem);*/
    font-weight: 600;
    color: #ffb84d;
    margin: 12px 0 20px 0;
    letter-spacing: 0.3px;
}

.hero-description {
    font-family: "Montserrat", sans-serif; 
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 8px;
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Reveal animation and hero name shine */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(10px); animation: fadeUp 700ms cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--delay, 0ms);}

@keyframes nameShine {
    0% { background-position: -120% 0; }
    100% { background-position: 120% 0; }
}
.hero-title { 
    font-family: "Montserrat", sans-serif; 
    font-weight: 700; 
    letter-spacing: -0.5px; 
    margin: 0; 
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
}
.hero-name { display: inline-block; background: linear-gradient(90deg, #ff9900 20%, #ffb84d 50%, #f7cb89 20%); background-size: 310% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: nameShine 1.8s ease-in-out both; animation-delay: 600ms; }

/* prefers-reduced-motion respects user preference */
@media (prefers-reduced-motion: reduce) {
    .reveal, .hero-name { animation: none !important; opacity: 1 !important; transform: none !important; }
}



/* CTA buttons in the hero section */
.hero-cta {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    justify-content: flex-start;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--text);
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    transition: all 220ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.btn-primary { 
    background: linear-gradient(135deg, #ff9900 0%, #ffb84d 100%); 
    color: #111; 
    border: none;
    box-shadow: 0 4px 12px rgba(255,153,0,0.3);
}
.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(255,153,0,0.4);
}
.btn-outline { 
    border: 2px solid rgba(255,255,255,0.18); 
    color: var(--text);
    background: rgba(255,255,255,0.02);
}
.btn-outline:hover {
    border-color: rgba(255,153,0,0.4);
    background: rgba(255,153,0,0.05);
}

@media (max-width: 700px) {
    .hero-cta { justify-content: center; flex-direction: column; gap: 10px; }
}

/* =========================
   Skills section styling
   ========================= */
/* Skills Section - Modern Professional Design */
/* Skills section styling */
.skills-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
}

.skills-header h2 {
    margin-bottom: 0.75rem;
}

.skills-subtitle {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.skills-section { width: 100%; }
.skills-subtitle {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: -6px;
    margin-bottom: 24px;
}

.skills-wrapper {
    position: relative;
}

/* Desktop: Grid Layout (ORIGINAL) */
@media (min-width: 700px) {
    .carousel-container,
    .carousel-controls {
        display: none;
    }
    
    .skills-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 18px;
        margin-top: 18px;
    }
}

/* Mobile Only: Carousel Slideshow */
@media (max-width: 700px) {
    .skills-grid {
        display: none;
    }
    
    .carousel-container {
        position: relative;
        width: 100%;
        overflow: hidden;
        margin-top: 24px;
        margin-bottom: 24px;
    }
    
    .carousel-track {
        display: flex;
        transition: transform 500ms cubic-bezier(0.4, 0.0, 0.2, 1);
    }
    
    .carousel-slide {
        flex: 0 0 100%;
        min-width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
    }
    
    .carousel-slide .skill-card {
        width: 100%;
        max-width: 280px;
    }
    
    .carousel-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 24px;
        margin-top: 20px;
    }
    
    .carousel-nav-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255,153,0,0.1);
        border: 2px solid rgba(255,153,0,0.4);
        color: #ffb84d;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 250ms cubic-bezier(0.4, 0.0, 0.2, 1);
        padding: 0;
        flex-shrink: 0;
    }
    
    .carousel-nav-btn:hover {
        background: rgba(255,153,0,0.2);
        border-color: rgba(255,153,0,0.6);
        transform: scale(1.1);
    }
    
    .carousel-nav-btn:active {
        transform: scale(0.95);
    }
    
    .carousel-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        flex: 1;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255,255,255,0.3);
        cursor: pointer;
        transition: all 250ms cubic-bezier(0.4, 0.0, 0.2, 1);
        border: none;
        padding: 0;
    }
    
    .carousel-dot:hover {
        background: rgba(255,255,255,0.5);
    }
    
    .carousel-dot.active {
        background: #fbbf24;
        width: 24px;
        border-radius: 4px;
    }
}

.skill-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: "Montserrat", sans-serif;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff9900, #ffb84d);
    transform: scaleX(0);
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-icon-container {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card:hover .skill-icon-container {
    transform: scale(1.1) rotateY(5deg);
}

.skill-icon {
    width: 42px;
    height: 42px;
    display: block;
}

.skill-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px 0;
}

.skill-category {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.skill-progress-circle {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 4;
}

.progress-ring-circle {
    fill: none;
    stroke: #ff9900;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 150.8;
    stroke-dashoffset: 150.8;
    transition: stroke-dashoffset 1s ease-out;
}

.skill-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    color: var(--text);
    font-weight: 700;
    pointer-events: none;
}

@media (max-width: 700px) {
    .skills-grid { 
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .skill-card { padding: 20px 12px; }
    .skill-icon-container { width: 56px; height: 56px; }
    .skill-icon { width: 36px; height: 36px; }
}

@media (min-width: 900px) {
    .skills-grid { 
        /* 10 cards total → 5 columns × 2 rows */
        grid-template-columns: repeat(5, 1fr);
    }
    /* Desktop two-row layout: match screenshot order, add GitHub end of row 1 and Git end of row 2 */
    .skills-grid > .skill-card:nth-child(1) { grid-row: 1; grid-column: 1; } /* HTML5 */
    .skills-grid > .skill-card:nth-child(2) { grid-row: 1; grid-column: 2; } /* CSS3 */
    .skills-grid > .skill-card:nth-child(3) { grid-row: 1; grid-column: 3; } /* JavaScript */
    .skills-grid > .skill-card:nth-child(4) { grid-row: 1; grid-column: 4; } /* PHP */
    .skills-grid > .skill-card:nth-child(5) { grid-row: 1; grid-column: 5; } /* MySQL */
    
    .skills-grid > .skill-card:nth-child(6) { grid-row: 2; grid-column: 1; } /* Python */
    .skills-grid > .skill-card:nth-child(7) { grid-row: 2; grid-column: 2; } /* C */
    .skills-grid > .skill-card:nth-child(8) { grid-row: 2; grid-column: 3; } /* Java */
    .skills-grid > .skill-card:nth-child(9) { grid-row: 2; grid-column: 4; } /* Git */
    .skills-grid > .skill-card:nth-child(10) { grid-row: 2; grid-column: 5; } /* GitHub */
}


.section p,
.section li {
    color: inherit;
    opacity: 0.95;
    line-height: 1.6;
}

/* About section - centered layout */
#about {
    text-align: center;
}

#about .about-intro {
    max-width: 800px;
    margin: 0 auto;
}

#about p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    text-align-last: left;
}

/* Skills section - separate styling */
#skills {
    background-color: var(--accent-bg);
}

/* Achievements section - Professional Timeline Layout */
.achievements-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
}

.achievements-header h2 {
    margin-bottom: 0.75rem;
}

.achievements-subtitle {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.achievements-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.achievement-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    padding-right: 6px;
}

.achievement-item:last-child {
    margin-bottom: 0;
}

.achievement-timeline-marker {
    padding-top: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.achievement-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #dc2626);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px rgba(255, 184, 77, 0.3), 0 4px 12px rgba(255, 184, 77, 0.4);
    z-index: 2;
    flex-shrink: 0;
}

.achievement-dot--pending {
    background: linear-gradient(135deg, rgba(255, 184, 77, 0.3), rgba(255, 159, 26, 0.2));
    box-shadow: 0 0 0 2px rgba(255, 184, 77, 0.15);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.achievement-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, rgba(255, 184, 77, 0.3) 0%, rgba(255, 184, 77, 0.1) 100%);
    margin-top: 8px;
}

.achievement-content {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    /* Fixed dimensions */
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.achievement-content:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.achievement-content--pending {
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,184,77,0.2);
}

.achievement-content--pending:hover {
    background: rgba(255,255,255,0.03);
    transform: translateX(2px);
}

.achievement-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-shrink: 0;
}

.achievement-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,184,77,0.15), rgba(255,159,26,0.1));
    border: 1px solid rgba(255,184,77,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.achievement-icon-badge--tech {
    background: linear-gradient(135deg, rgba(100,181,246,0.15), rgba(66,165,245,0.1));
    border-color: rgba(100,181,246,0.2);
}

.achievement-icon-badge--pending {
    background: linear-gradient(135deg, rgba(255,184,77,0.08), rgba(255,159,26,0.05));
    border-color: rgba(255,184,77,0.15);
    opacity: 0.6;
}

.achievement-icon-svg {
    color: #ffb84d;
}

.achievement-meta-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.achievement-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffb84d;
}

.achievement-category {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Title wrapper with collapsible functionality */
.achievement-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.achievement-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
    /* Clamp to 2 lines by default */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.achievement-title-wrapper.is-expanded .achievement-title {
    -webkit-line-clamp: unset;
    display: block;
}

.achievement-title--pending {
    color: rgba(255,184,77,0.7);
    font-style: italic;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #fbbf24; /* typing cursor */
    animation: typingEffect 3.8s steps(32, end) infinite, cursorBlink 0.8s step-end infinite;
}

@keyframes typingEffect {
    0% { width: 0; }
    60% { width: 32ch; }
    85% { width: 32ch; }
    100% { width: 0; }
}

@keyframes cursorBlink {
    0%, 49% { border-color: #fbbf24; }
    50%, 100% { border-color: transparent; }
}

/* When title is expanded, show full text without typing animation */
.achievement-title-wrapper.is-expanded .achievement-title--pending {
    animation: none;
    border-right: 0;
    white-space: normal;
    overflow: visible;
}

/* Description wrapper with collapsible functionality */
.achievement-description-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex: 1;
    min-height: 0;
}

.achievement-description {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
    text-align: justify;
    /* Clamp to 3 lines by default */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.achievement-description-wrapper.is-expanded .achievement-description {
    -webkit-line-clamp: unset;
    display: block;
}

/* Toggle button styling */
.achievement-toggle-btn {
    align-self: flex-start;
    padding: 0;
    background: transparent;
    border: none;
    color: #ffb84d;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s ease;
    flex-shrink: 0;
    display: none; /* Hidden by default, shown via JS when needed */
}

.achievement-toggle-btn.is-visible {
    display: block;
}

.achievement-toggle-btn:hover,
.achievement-toggle-btn:focus {
    color: #ffd699;
    text-decoration: underline;
    outline: none;
}

.achievement-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
    flex-shrink: 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.achievement-issuer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.875rem;
}

.achievement-issuer svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.achievement-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,184,77,0.1);
    border: 1px solid rgba(255,184,77,0.3);
    border-radius: 8px;
    color: #fbbf24;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.achievement-view-btn:hover {
    background: rgba(255,184,77,0.15);
    border-color: rgba(255,184,77,0.5);
    transform: translateY(-1px);
}

.achievement-view-btn svg {
    flex-shrink: 0;
}

/* Additional Achievements Collapsible Section */
.achievements-additional {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.achievements-additional.is-expanded {
    max-height: 3000px; /* Large enough to accommodate all items */
    opacity: 1;
    margin-top: 0;
}

/* Show More Button */
.achievements-show-more {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.btn-show-more {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, rgba(255,184,77,0.12), rgba(255,159,26,0.08));
    border: 1px solid rgba(255,184,77,0.3);
    border-radius: 10px;
    color: #ffb84d;
    font-size: 1rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-show-more:hover {
    background: linear-gradient(135deg, rgba(255,184,77,0.18), rgba(255,159,26,0.12));
    border-color: rgba(255,184,77,0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.btn-show-more:active {
    transform: translateY(0);
}

.show-more-icon {
    transition: transform 0.3s ease;
}

.btn-show-more[aria-expanded="true"] .show-more-icon {
    transform: rotate(180deg);
}



/* Responsive Design */
@media (max-width: 768px) {
    .achievement-item {
        grid-template-columns: 30px 1fr;
        gap: 1rem;
    }
    
    .achievement-content {
        padding: 1.25rem;
        min-height: 420px;
    }
    
    .achievement-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .achievement-meta-info {
        align-items: flex-start;
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .achievement-title {
        font-size: 1.05rem;
    }
    
    .achievement-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .achievement-view-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Also justify hero paragraph for balanced layout */
#home .hero-content p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    text-align-last: left;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* Specific sections by id — colors and sizing coming from the original inline styles */
#home {
    background-color: var(--card-bg);
    min-height: 560px; /* increase hero height slightly to better fit the enhanced photo */
    display: flex;
    align-items: center; /* center content vertically inside the hero */
    justify-content: center;
    color: var(--text); /* white text on hero */
}

#about {
    background-color: var(--accent-bg);
    min-height: 480px;
}

/* Make sections responsive */
@media (max-width: 768px) {
    .section {
        padding: 22px;
        border-radius: 14px;
        margin: 18px 16px;
    }
    #home, #about { min-height: 350px; }
}

@media (max-width: 420px) {
    .nav-links li { margin-left: 14px; }
    .logo { font-size: 1.25rem; }
}

/* --------------------------------------
   Responsive: Navigation toggle + menu
   -------------------------------------- */
/* Toggle button (hamburger) - hidden on desktop */
.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--text);
}

.menu-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background-color: var(--text);
}

/* Small-screen nav behavior */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: absolute;
        right: 16px;
        left: 16px;
        top: calc(100% + 8px);
        background: var(--header-bg);
        border-radius: 12px;
        display: none; /* hidden by default on small screens */
        padding: 12px;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        box-shadow: 0 8px 18px rgba(0,0,0,0.14);
        max-height: 0;
        overflow: hidden;
        transition: max-height 300ms ease;
    }
    .nav-links li { margin: 0; }
    /* When the nav has `.nav-open` add show it */
    .navbar.nav-open .nav-links { display: flex; max-height: 500px; }
}

/* Responsive helpers: container & grid */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 18px;
}

.grid {
    display: grid;
    gap: 18px;
}

/* Grid: 1 column mobile, 2+ columns on larger screens */
@media (min-width: 700px) {
    .grid--two { grid-template-columns: 1fr 1fr; }
}

/* Add extra horizontal spacing specifically between the About paragraph and the Skills column */
@media (min-width: 700px) {
    /* Improve layout: make the left column wider so the About paragraph uses free space properly */
    #about .grid {
        column-gap: 48px;
        grid-template-columns: minmax(220px, 1.6fr) minmax(280px, 420px);
        align-items: start;
    }
}

/* users who prefer reduced motion are respected by earlier rules */

/* Readability helper for About text: limit measure for large screens */
.about-intro p { max-width: 64ch; margin-bottom: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }

/* (Reverted centering overrides for About section) */

/* Projects grid and card styling */
.projects-grid {
    display: grid;
    gap: 75px;
    grid-template-columns: 1fr;
    margin-top: 18px;
    
}
.project-card {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    transition: transform 220ms ease, box-shadow 220ms ease;
    display: flex;
    flex-direction: column;
    font-family: "Montserrat", sans-serif;
}
.project-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.project-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.project-tags span { font-size: 0.8rem; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,0.03); color: var(--muted); }
.project-links { margin-top: auto; }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,0.22); }

@media (min-width: 900px) {
    .projects-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 700px) and (max-width: 899px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Contact section layout - Professional styling */
.contact-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.contact-subtitle {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-top: 0.75rem;
}

.contact-grid { 
    display: grid; 
    gap: 24px; 
    grid-template-columns: 1fr; 
    align-items: start; 
    margin-top: 12px; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; 
}

.contact-methods { 
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    justify-items: center;
}

.contact-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.contact-card { 
    display: flex; 
    flex-direction: column;
    gap: 0.5rem; 
    align-items: center; 
    justify-content: center;
    background: transparent; 
    padding: 0; 
    border-radius: 0; 
    border: none; 
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: auto;
    height: auto;
}

/*.contact-card:hover {
    background: transparent;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: none;
}*/

.contact-icon-wrapper {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-icon { 
    color: var(--text); 
    opacity: 0.9;
}

.contact-info {
    flex: 1;
    display: none;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 0.5rem;
}

.contact-link {
    color: #ffb84d;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #ffa726;
    text-decoration: underline;
}

.contact-desc {
    color: var(--muted);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

/* Contact Hover Card - Desktop Only */
.contact-card-wrapper {
    position: relative;
}

.contact-hover-card {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    width: 280px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    z-index: 100;
    pointer-events: none;
    margin-bottom: 8px;
    backdrop-filter: blur(10px);
    display: none;
}

.contact-card-wrapper:hover .contact-hover-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.hover-card-header {
    position: relative;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hover-card-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1), transparent);
}

.hover-card-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.2);
    object-fit: cover;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hover-card-body {
    padding: 1rem;
    text-align: center;
    font-family: "Montserrat", sans-serif;
}

.hover-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0.5rem 0 0.25rem;
}

.hover-card-platform {
    font-size: 0.8rem;
    color: #ffb84d;
    margin: 0 0 0.35rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hover-card-handle {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0 0 0.5rem;
    word-break: break-word;
}

.hover-card-desc {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.4;
}

@media (min-width: 700px) {
    .contact-methods { 
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .contact-card {
        flex-direction: row;
        align-items: flex-start;
        min-height: 100px;
        height: 100px;
        width: 100%;
        background: rgba(255,255,255,0.03);
        padding: 1.5rem;
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.08);
    }
    
    .contact-card:hover {
        background: rgba(255,255,255,0.05);
        border-color: rgba(255,255,255,0.15);
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }
    
    .contact-info {
        display: flex;
    }
    
    /* Adjust hover card position for desktop */
    .contact-hover-card {
        width: 300px;
        transform: translateX(-50%) translateY(10px);
    }
    
    .contact-card:hover .contact-hover-card {
        transform: translateX(-50%) translateY(15px);
    }
}

@media (min-width: 1024px) {
    .contact-methods { 
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
    }
    
    .contact-hover-card {
        display: block;
    }
}

/* Responsive typography */
h1 { font-size: clamp(1.3rem, 2.6vw, 2rem); }
.logo { font-size: clamp(1.1rem, 3.2vw, 1.5rem); }
.section h2 { font-size: clamp(1.25rem, 3vw, 2rem); }


#home .container { text-align: center; }
/* Home grid: photo left, content right */
.home-grid { align-items: center; gap: 20px; }
.home-grid .profile-photo {
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-photo img {
    width: var(--profile-size);
    height: var(--profile-size);
    border-radius: 10%;
    object-fit: cover;
    display: block;
    /*box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    border: 5px solid rgba(255, 255, 255, 0.12);*/
}

/* When the user has not added a photo, the `img` might not load. Use a subtle placeholder background */
/*.profile-photo { background: linear-gradient(135deg, rgba(0,0,0,0.06), rgba(255,255,255,0.06)); padding: 6px; border-radius: 50%; }*/
Z
/* Digital Clock Styling */
.profile-photo { position: relative; flex-direction: column; }
.digital-clock {
    font-family: 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(16, 185, 129, 0.08));
    padding: 10px 18px;
    border-radius: 10px;
    border: 1.5px solid rgba(251, 191, 36, 0.25);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    letter-spacing: 1.5px;
    text-align: center;
    min-width: 180px;
}

/* Layout: 2 columns on larger screens, stack on smaller screens */
@media (min-width: 700px) and (max-width: 1023px) {
    .home-grid { grid-template-columns: 260px 1fr; gap: 80px; }
    #home .container { text-align: left; padding-left: 40px; }
    .hero-content { max-width: 100%; overflow: hidden; }
    .profile-photo img { width: var(--profile-size-tablet); height: var(--profile-size-tablet); }
    .profile-photo--enhanced img { width: var(--profile-enhanced-size-tablet); height: var(--profile-enhanced-size-tablet); }
    .profile-section { margin-left: 20px; }
}
@media (min-width: 1024px) {
    .home-grid { grid-template-columns: 350px 1fr; gap: 100px; }
    #home .container { text-align: left; }
}
@media (max-width: 699px) {
    .home-grid { grid-template-columns: 1fr; justify-items: center; gap: 32px; }
    /* Ensure everything centers on mobile */
    #home .container { text-align: center; padding: 0 12px; }
    .hero-content { max-width: 100%; width: 100%; padding: 0 8px; box-sizing: border-box; }
    .hero-cta { justify-content: center; }
    .profile-section { margin-bottom: 0; }
    .profile-photo { margin: 0 auto; }
    .profile-photo img { width: var(--profile-size-mobile); height: var(--profile-size-mobile); }
    .hero-title { font-size: clamp(1.75rem, 7vw, 2.25rem); }
    .hero-tagline { font-size: 1rem; }
    .hero-description { font-size: 0.95rem; }
    .status-badge { font-size: 0.8rem; }
}

/* Helper: Enhanced profile image size (desktop: 340px, mobile: 220px) */
.profile-photo--enhanced img {
    /* Enhanced image sizes use variables for easy tuning */
    width: var(--profile-enhanced-size);
    height: var(--profile-enhanced-size);
}
@media (max-width: 699px) {
    .profile-photo--enhanced img { width: var(--profile-enhanced-size-mobile); height: var(--profile-enhanced-size-mobile); }
}
/* End responsive styles */

/* end section styles */

/* Focus styles (added at end for clarity) */
.menu-toggle:focus { outline: 3px solid rgba(255, 153, 0, 0.4); border-radius: 6px; }
.nav-links a:focus { outline: 3px solid rgba(255, 153, 0, 0.35); border-radius: 6px; }

#uni_name_link_id {
    color: #f4f4f4;
    text-decoration: none;
    font-style: italic;
}

#uni_name_link_id:hover {
    color: #ffb84d;
}
