/* --- Variables & Global Styles --- */
:root {
    --primary-dark: #0A192F;
    --secondary-dark: #112240;
    --accent-gold: #FFD700;
    --accent-gold-shadow: rgba(255, 215, 0, 0.4);
    --text-light: #E6F1FF;
    --card-background: #FFFFFF;
    --card-text-dark: #333333;
    --border-color-light: #EEEEEE;
    --transition-speed: 0.3s;
    --accent-gold-light: #fff8e8;
    --tag-experienced: #28a745;
    --tag-competent: #007bff;
    --tag-learning: #ffc107;
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 5px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Times New Roman", Times, serif;
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--secondary-dark);
    color: var(--text-light);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--accent-gold);
    transition: all 0.3s ease;
    cursor: pointer;
}

.profile-title:hover {
    transform: translateY(-8px);
    color: var(--accent-gold);
    text-shadow: 0 0 2px var(--accent-gold-shadow);
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 15px;
    padding: 5px 0;
    position: relative;
    font-size: 0.95em;
    display: inline-block;
    transform: translateY(0);
    transition: transform 0.3s ease, color var(--transition-speed), text-shadow 0.3s ease;
}

nav a:hover {
    color: var(--accent-gold);
    transform: translateY(-8px);
    text-shadow: 0 0 8px var(--accent-gold-shadow);
}

nav a.active {
    color: var(--accent-gold);
}

nav a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--accent-gold);
    position: absolute;
    bottom: -5px;
    left: 0;
    box-shadow: 0 0 8px var(--accent-gold-shadow), 0 0 15px var(--accent-gold-shadow);
    transition: box-shadow 0.5s ease;
}

/* --- Main Content Layout --- */
main {
    padding-top: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 40px;
}

section {
    padding: 40px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5em;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1em;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 40px;
}

/* --- Card Styles --- */
.card-clean {
    background-color: var(--card-background);
    color: var(--card-text-dark);
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: var(--shadow-lift);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-clean:hover:not(.hero-card),
.experience-card:hover,
.timeline-item:hover .education-card {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), 0 0 10px var(--accent-gold-shadow);
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4),
                0 0 15px 5px var(--accent-gold-shadow);
}


.large-card {
    padding: 30px;
}

.center-content {
    text-align: center;
}

.hero-card h1 {
    color: var(--primary-dark);
    margin-top: 10px;
    font-size: 2.5em;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.hero-card .tagline {
    font-size: 1.2em;
    margin-bottom: 15px;
    transition: color var(--transition-speed);
}

.hero-card .summary-text {
    max-width: 700px;
    margin: 20px auto 30px;
    font-size: 1.1em;
    line-height: 1.6;
    transition: color var(--transition-speed);
}

/* --- Front Page (Hero Card) Text Hover Effects --- */

.hero-card h1:hover {
    color: var(--primary-dark);
    transform: translateY(-6px);
    text-shadow: 0 0 5px var(--accent-gold);
}

.hero-card .tagline:hover {
    color: var(--accent-gold);
}

.hero-card .summary-text:hover {
    color: var(--secondary-dark);
}


main * {
    transition: color var(--transition-speed) ease-in-out;
}

.card-clean.hero-card {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-lift), 0 0 15px 5px var(--accent-gold-shadow);
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 4px var(--accent-gold) inset;
    position: relative;
    font-size: 0;
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    border: 3px solid var(--primary-dark);
}

.profile-img {
    width: 30px;
    height: 30px;
    position: absolute;
    bottom: 0;
    right: 0;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-dark);
    box-shadow: 0 0 0 2px var(--accent-gold) inset;
    z-index: 10;
}

.avatar:hover {
    transform: translateY(-7px);
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.5),
        0 0 10px var(--accent-gold-shadow),
        0 0 0 4px var(--accent-gold) inset;
}

.gold-text {
    color: var(--accent-gold);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.cta-button {
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.primary-btn {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    border: 2px solid var(--accent-gold);
}

.primary-btn:hover {
    background-color: var(--accent-gold);
    transform: translateY(-8px);
    border: 2px solid var(--accent-gold);
    box-shadow: 
        0 0 4px 4px var(--accent-gold), 
        0 10px 20px rgba(0, 0, 0, 0.5); 
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--secondary-dark);
}

.secondary-btn:hover {
    background-color: var(--primary-dark);
    color: var(--accent-gold);
    transform: translateY(-8px);
    border: 2px solid var(--accent-gold);
    box-shadow: 
        0 0 4px 4px var(--accent-gold), 
        0 10px 20px rgba(0, 0, 0, 0.5); 
    
}

.tag-chip {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
    margin: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.tag-chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.skill-tags-inline {
    margin-bottom: 15px;
}

.tag-chip.primary {
    background-color: var(--primary-dark);
    color: var(--accent-gold);
}

.tag-chip.secondary {
    background-color: var(--border-color-light);
    color: var(--card-text-dark);
}

.soft-skills-tags {
    margin-top: 15px;
}

/* --- Split Card Containers --- */
.split-cards-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.split-card {
    flex: 1;
}

.split-card h2, .split-card h3 {
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 5px;
    margin-bottom: 15px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.split-card ul {
    list-style: none;
    padding-left: 0;
}

.split-card ul li {
    margin-bottom: 10px;
    color: var(--card-text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.split-card ul li:hover,
.cert-list li:hover,
.achieve-list li:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.summary-paragraph {
    margin-bottom: 15px;
}

.languages-hobbies h3 {
    font-size: 1.2em;
}

/* --- Skills Section Styles (Progress Bar) --- */
.skills-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-group-card {
    padding: 20px;
}

.skill-list {
    margin-top: 15px;
    padding-top: 5px;
}

/* --- New Skill Progress Bar Styles (Color-Coded based on Proficiency) --- */

.skill {
    border-bottom: 1px dashed var(--border-color-light);
    padding-bottom: 1rem;
    padding-top: 1rem;
}

.skill-text-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 5px;
    color: var(--card-text-dark);
    font-weight: 600;
}

.skill-text-row .skill-percent {
    color: var(--accent-gold);
}

.skill-bar {
    height: 8px;
    background-color: var(--border-color-light);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-fill {
    height: 100%;
    transition: width 1.5s ease-out;
    width: 0%;
}

/* --- Color definitions for the fill based on proficiency level (data-level) --- */

.skill-fill.experienced {
    background-color: #22c55e;
}

.skill-fill.competent {
    background-color: #0ea5e9;
    box-shadow: 0 0 5px rgba(14, 165, 233, 0.7);
}

.skill-fill.good {
    background-color: #a855f7;
    box-shadow: 0 0 5px rgba(168, 85, 247, 0.7);
}

.skill-fill.learning {
    background-color: #f59e0b;
    box-shadow: 0 0 5px rgba(245, 158, 11, 0.7);
}

.skill:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.skill-chip.hover-highlight:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease-out;
}

.proficiency-tag, .experienced-tag, .competent-tag, .learning-tag {
    display: none !important;
}

/* --- Skill Bar Tooltip (Hover Description) Styles - ADJUSTED FOR CLOSER TOP POSITIONING --- */

.skill {
    position: relative;
    transition: background-color 0.2s;
}

.skill::after {
    content: attr(data-description);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0px);
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 5px;
    background-color: var(--secondary-dark);
    color: var(--text-light);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    font-size: 0.9em;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 50;
}

.skill::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px) rotate(45deg);
    width: 8px;
    height: 8px;
    background-color: var(--secondary-dark);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 51;
}

.skill:hover::after,
.skill:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-0.1px);
}


/* --- Experience Section Styles --- */
.experience-list {
    display: grid;
    gap: 20px;
}

.experience-card {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    cursor: pointer;
}

.icon-box {
    font-size: 1.5em;
    color: var(--accent-gold);
    margin-right: 20px;
    min-width: 40px;
}

.experience-card .details {
    flex-grow: 1;
}

.experience-card h4 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.3em;
}

.experience-card .organization {
    font-style: italic;
    margin: 5px 0 10px;
    font-weight: 600;
}

.experience-card .title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.experience-card .date {
    font-size: 0.8em;
    white-space: nowrap;
}

.experience-card .key-impact {
    margin-top: 10px;
    font-weight: bold;
    color: var(--primary-dark);
    border-top: 1px dashed var(--border-color-light);
    padding-top: 5px;
    font-size: 0.9em;
}

/* --- Education Section Styles (Timeline) --- */
.timeline-education {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-education::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--accent-gold);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-year {
    position: absolute;
    top: 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--accent-gold);
}

.timeline-item:nth-child(odd) .timeline-year {
    right: 100%;
    margin-right: 15px;
}

.timeline-item:nth-child(even) .timeline-year {
    left: 100%;
    margin-left: 15px;
}

/* --- Education Icon Styling (Gold Icon in Dark Blue Rounded Border) --- */
.timeline-item .timeline-icon {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--card-background);
    border: 3px solid var(--secondary-dark);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.timeline-item .timeline-icon i {
    font-size: 1.2em;
    color: #FFC72C !important;
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -18px;
    left: auto;
    transform: none;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -18px;
    right: auto;
    transform: none;
}

.education-card {
    padding: 20px;
    cursor: pointer;
}

.education-card h3 {
    margin-top: 0;
    color: var(--primary-dark);
}

.education-card .institution {
    font-style: italic;
    margin-bottom: 10px;
}

.education-tags {
    margin-bottom: 10px;
}

/* --- Projects Section Styles --- */
.project-filters {
    text-align: center;
    margin-bottom: 30px;
}

.filter-tab {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    background-color: var(--secondary-dark);
    color: var(--text-light);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-size: 0.9em;
    font-weight: 600;
}

.filter-tab:hover, .filter-tab.active {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    padding: 20px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card.hidden {
    display: none;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 15px 15px 0 0;
    border: 2px solid var(--primary-dark);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), 0 0 10px var(--accent-gold-shadow);
}

.project-card:hover img {
    transform: scale(1.05);
}


.project-content {
    padding: 15px;
}

.project-content h3 {
    color: var(--primary-dark);
    margin-top: 0;
}

.project-desc {
    font-size: 0.95em;
    margin-bottom: 10px;
    min-height: 50px;
}

.project-tags .tag-chip {
    font-size: 0.75em;
}

/* --- Achievements Section Styles --- */
.cert-list, .achieve-list {
    list-style: none;
    padding-left: 0;
}

.cert-list li, .achieve-list li {
    margin-bottom: 10px;
    color: var(--card-text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.cert-list li i, .achieve-list li i {
    color: var(--accent-gold);
}

/* --- Contact Section Styles (Two-Column Layout) --- */
.contact-layout {
    display: flex;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto 40px;
}

.contact-info-card, .contact-form-card {
    flex: 1;
    padding: 30px;
}

.contact-info-card h3 {
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-gold);
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-dark);
    padding: 10px;
    margin: -10px 0;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: color 0.2s, border 0.2s, background-color 0.2s, transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    color: var(--primary-dark);
    border: 1px solid #95b8d2;
    background-color: rgba(149, 184, 210, 0.05);
    cursor: pointer;
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.contact-info-card, .contact-form-card, .ready-to-build-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover, .contact-form-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.2),
        0 0 0 3px var(--accent-gold);
}

.contact-icon-box {
    background-color:var(--accent-gold);
    color: var(--primary-dark);
    border-radius: 8px;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    margin-right: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-item:hover .contact-icon-box {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: var(--primary-dark) !important;
}


.contact-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.contact-title {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 2px;
}

.contact-detail {
    font-size: 1.05em;
    color: #353535;
}

.link-style {
    color: var(--accent-gold) !important;
    text-decoration: underline;
}

.cta-button.primary-btn {
    border: 1px solid var(--primary-dark);
    background-color: var(--primary-dark);
    color: white;
}

.contact-form-card .primary-btn {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.contact-form-card .primary-btn:hover {
    background-color: #f0c330;
    border-color: #004080;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
}

.contact-form-card form {
    display: flex;
    flex-direction: column;
}

.contact-form-card input, .contact-form-card textarea {
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color-light);
    border-radius: 8px;
    font-size: 1em;
    color: var(--card-text-dark);
    background-color: white;
    transition: border-color 0.2s;
}

.contact-form-card input:focus, .contact-form-card textarea:focus {
    border-color: var(--accent-gold);
    outline: none;
}

.contact-form-card textarea {
    resize: vertical;
}

.contact-form-card .full-width {
    width: 100%;
    margin-top: 10px;
}

.contact-form-card .form-note {
    font-size: 0.85em;
    color: #888;
    margin-top: 10px;
}

.contact-form-card label {
    display: block;
    font-size: 1em;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 5px;
    margin-top: 15px;
}

.contact-form-card label:first-of-type {
    margin-top: 0;
}

/* --- Ready to Build CTA Card --- */

.ready-to-build-card {
    text-align: center;
    padding: 40px 30px;
    margin: 40px auto 20px;
    max-width: 700px;
    background-color: #fff;
    border: 1px solid var(--border-color-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ready-to-build-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.2),
        0 0 0 3px var(--accent-gold);
}

.ready-to-build-card h2 {
    color: var(--primary-dark);
    margin-top: 0;
}

.ready-to-build-card p {
    font-size: 1.1em;
    max-width: 600px;
    margin: 15px auto 25px;
}

.skill-badges-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.skill-badge {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    font-size: 0.8em;
    font-weight: bold;
    border-radius: 4px;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    border: 1px solid var(--primary-dark);
}

.skill-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cta-buttons-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

/* --- Media Queries (Preserved) --- */

@media (max-width: 768px) {
    .contact-layout {
        flex-direction: column;
        gap: 20px;
    }

    .cta-buttons-row {
        flex-direction: column;
        gap: 10px;
    }
}

@media (min-width: 769px) {
    .contact-tabs-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-tabs-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* --- Footer --- */
footer {
    padding: 15px 0;
    background-color: var(--background-light);
    border-top: 1px solid var(--border-color-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0;
}

/* --- Left Side: Text Content --- */
.footer-left {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.footer-copyright {
    font-size: 1.2em;
    color: var(--accent-gold);
    margin: 0;
}

.footer-updated {
    font-size: 1.05em;
    color: #666;
    margin: 5px 0 0 0;
}


/* --- Right Side: Icons --- */
.footer-right {
    display: flex;
    gap: 20px;
}

.footer-right a {
    color: var(--accent-gold);
    font-size: 2.05em;
    transition: color 0.2s, transform 0.2s;
}

.footer-right a:hover {
    color: var(--accent-gold);
    transform: translateY(-3px);
}


/* --- Media Query for Mobile (Stacks the content) --- */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-left {
        order: 2;
        align-items: center;
    }

    .footer-right {
        order: 1;
        margin-bottom: 10px;
    }
}

/* --- Modals (Project Details) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(10, 25, 47, 0.95);
    -webkit-backdrop-filter: blur(5px);backdrop-filter: blur(5px);
}

.modal-content.large-modal {
    width: 80%;
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px;
    position: relative;
    animation: slide-in 0.5s ease-out;
}

.close-btn {
    color: var(--primary-dark);
    float: right;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 25px;
    transition: color 0.3s;
}

.close-btn:hover, .close-btn:focus {
    color: var(--accent-gold);
    text-decoration: none;
}

.modal-content h2 {
    color: var(--accent-gold);
    border-bottom: 2px solid var(--primary-dark);
    font-weight: bold;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.project-detail-header {
    margin-bottom: 25px;
}

.project-summary {
    font-style: italic;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.project-role {
    font-size: 0.8em;
}

.detail-sections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.detail-section h3 {
    font-size: 1.2em;
    color: var(--primary-dark);
}

.key-highlights-section, .tech-stack-section {
    margin-top: 30px;
    border-top: 1px dashed var(--border-color-light);
    padding-top: 20px;
}

.key-highlights-section h3, .tech-stack-section h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.highlight-tags, .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-links {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.detail-screenshots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.screenshot-box {
    text-align: center;
    background-color: var(--secondary-dark);
    padding: 3px;
    border-radius: 8px;
    border: 2px solid var(--accent-gold);
}

.detail-screenshot-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.detail-screenshot-img.contain-style {
    object-fit: contain;
    background-color: var(--secondary-dark);
}

.coming-soon {
    font-size: 0.8em;
    color: var(--accent-gold);
    margin-top: 5px;
    font-style: italic;
}

/* --- Full-Screen Image Styling (For Screenshot Clarity) --- */
:fullscreen {
    background-color: var(--primary-dark);
    display: flex;
    justify-content: center;
    align-items: center;
}
:-webkit-full-screen {
    background-color: var(--primary-dark);
    display: flex;
    justify-content: center;
    align-items: center;
}
:-moz-full-screen {
    background-color: var(--primary-dark);
    display: flex;
    justify-content: center;
    align-items: center;
}

.detail-screenshot-img:fullscreen {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- Keyframes --- */
@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.main-avatar-img.pulse-animation {
    animation: pulse 0.3s ease-in-out;
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .nav-container {
        flex-direction: column;
    }
    nav {
        margin-top: 10px;
    }
    nav a {
        margin: 0 8px;
    }
    .split-cards-container {
        flex-direction: column;
    }
    .skills-grid-3 {
        grid-template-columns: 1fr;
    }
    .contact-layout {
        flex-direction: column;
        gap: 20px;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .timeline-education::after {
        left: 5%;
    }
    .timeline-year {
        left: 5%;
        transform: translateX(-100%);
        top: 40px;
    }
    .timeline-item::before {
        left: 5%;
        transform: translateX(0%);
    }
    .education-card {
        width: 90%;
        margin-left: 10% !important;
    }

    .modal-content.large-modal {
        width: 95%;
        margin: 10px auto;
        padding: 20px;
    }
    .detail-sections-grid {
        grid-template-columns: 1fr;
    }
    .detail-screenshots {
        grid-template-columns: 1fr;
    }
    .project-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .project-links .cta-button {
        margin: 0;
    }
}

@media (max-width: 500px) {
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    .hero-card h1 {
        font-size: 2em;
    }
    .section-title {
        font-size: 2em;
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item:nth-child(odd) .timeline-year {
        right: auto;
        left: 5%;
        transform: translateX(-100%);
        margin-right: 0;
    }
    .timeline-item:nth-child(even) .timeline-year {
        left: 5%;
        transform: translateX(-100%);
        margin-left: 0;
    }
    .timeline-item:nth-child(odd)::before {
        right: auto;
        left: -7.5px;
    }
    .timeline-education::after {
        left: 5%;
    }
}