/* --- base.css --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a1f1a 0%, #1a3a2e 100%);
    color: #e0e0e0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Animated background particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(109, 213, 168, 0.15);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}


/* --- layout.css --- */
/* Header with glass morphism */
header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: rgba(15, 30, 25, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(109, 213, 168, 0.2);
}

.hero-content {
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    background: linear-gradient(45deg, #6dd5a8, #4ecdc4, #45b7d1, #8fd9b6);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite, typewriter 2s steps(8) 0.5s forwards;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid;
    width: 0;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-top: 1rem;
    max-width: 800px;
    color: rgba(180, 230, 210, 0.9);
    animation: fadeInUp 1s ease-out 1s both;
    line-height: 1.6;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: rgba(109, 213, 168, 0.8);
    cursor: pointer;
}

/* Navigation */
nav {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(15, 30, 25, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 10px;
    opacity: 0;
    animation: slideInRight 1s ease-out 2s forwards;
    border: 1px solid rgba(109, 213, 168, 0.3);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav a {
    color: #b4e6d2;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

nav a:hover {
    background: rgba(109, 213, 168, 0.2);
    transform: translateY(-2px);
    color: #6dd5a8;
}

/* Sections */
section {
    min-height: 100vh;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-card {
    background: rgba(15, 30, 25, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(109, 213, 168, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.section-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(109, 213, 168, 0.5);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #6dd5a8, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

/* About section */
.about-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(180, 230, 210, 0.95);
    text-align: center;
}

/* Footer */
footer {
    background: rgba(10, 20, 15, 0.8);
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 30px;
    color: rgba(109, 213, 168, 0.8);
    border-top: 1px solid rgba(109, 213, 168, 0.3);
}


/* --- components.css --- */
/* Skills grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skill-item {
    background: linear-gradient(135deg, rgba(15, 30, 25, 0.8), rgba(20, 40, 30, 0.6));
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(109, 213, 168, 0.3);
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(109, 213, 168, 0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.skill-item:hover::before {
    animation: shimmer 0.5s ease-in-out;
    opacity: 1;
}

.skill-item:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(109, 213, 168, 0.6);
}

.skill-item h3 {
    color: #6dd5a8;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.skill-item p {
    color: rgba(180, 230, 210, 0.8);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background: linear-gradient(135deg, rgba(15, 30, 25, 0.8), rgba(20, 40, 30, 0.6));
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s ease;
    border: 1px solid rgba(109, 213, 168, 0.3);
    position: relative;
    overflow: hidden;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(109, 213, 168, 0.15), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::after {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(109, 213, 168, 0.6);
}

.project-card h3 {
    color: #6dd5a8;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.project-card p {
    color: rgba(180, 230, 210, 0.9);
}

.project-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(45deg, #6dd5a8, #4ecdc4);
    color: #0a1f1a;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.project-link:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(109, 213, 168, 0.4);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.contact-item {
    background: rgba(15, 30, 25, 0.6);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(109, 213, 168, 0.3);
}

.contact-item:hover {
    transform: translateY(-5px);
    background: rgba(20, 40, 30, 0.8);
    border-color: rgba(109, 213, 168, 0.6);
}

.contact-item h3 {
    color: #6dd5a8;
}

.contact-item a {
    color: #8fd9b6;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: #6dd5a8;
}


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

.modal-content {
    background: linear-gradient(135deg, rgba(15, 30, 25, 0.98), rgba(20, 40, 30, 0.98));
    backdrop-filter: blur(20px);
    margin: 3% auto;
    padding: 0;
    border: 1px solid rgba(109, 213, 168, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.4s ease;
}

.modal-content.dark-theme {
    background: linear-gradient(135deg, rgba(15, 30, 25, 0.98), rgba(20, 40, 30, 0.98));
    border: 1px solid rgba(80, 120, 100, 0.3);
}

.modal-header {
    padding: 30px 40px;
    border-bottom: 1px solid rgba(109, 213, 168, 0.3);
    position: sticky;
    top: 0;
    background: rgba(15, 30, 25, 0.98);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.modal-header.dark-theme {
    background: rgba(15, 30, 25, 0.98);
    border-bottom: 1px solid rgba(80, 120, 100, 0.3);
}

.modal-header h2 {
    margin: 0;
    color: #6dd5a8;
    font-size: 2rem;
    text-align: left;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #6dd5a8;
}

.modal-body {
    padding: 40px;
    color: rgba(180, 230, 210, 0.95);
    line-height: 1.8;
}

.modal-body h3 {
    color: #6dd5a8;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.dark-theme .modal-body h3 {
    color: #6dd5a8;
}

.modal-body h4 {
    color: #8fd9b6;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.dark-theme .modal-body h4 {
    color: #8fd9b6;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.modal-body ol li {
    margin-bottom: 8px;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.modal-body li {
    margin-bottom: 8px;
}

.modal-body code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.close {
    color: #6dd5a8;
    float: right;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #8fd9b6;
    transform: rotate(90deg);
}

/* Tabs inside modal for Experience */
.tabs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tab-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tab-button {
    background: rgba(109, 213, 168, 0.08);
    color: #8fd9b6;
    border: 1px solid rgba(109, 213, 168, 0.18);
    padding: 8px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tab-button:hover {
    transform: translateY(-2px);
}

.tab-button.active {
    background: linear-gradient(45deg, #6dd5a8, #4ecdc4);
    color: #07241e;
}

.tab-button.locked {
    opacity: 0.6;
    position: relative;
}

.tab-content {
    background: rgba(15, 30, 25, 0.6);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(109, 213, 168, 0.12);
    color: rgba(180, 230, 210, 0.95);
    line-height: 1.6;
}

.locked-note {
    color: #e6f7ee;
    font-style: italic;
    opacity: 0.95;
}

/* Expandable Achievement Cards */
.achievement-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.achievement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(109, 213, 168, 0.2);
}

.achievement-card .card-summary {
    display: block;
}

.achievement-card .card-details {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(109, 213, 168, 0.2);
    animation: slideDown 0.3s ease;
}

.achievement-card.expanded .card-details {
    display: block;
}

.achievement-card .expand-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    color: rgba(109, 213, 168, 0.6);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.achievement-card.expanded .expand-indicator {
    transform: rotate(180deg);
}

.achievement-card .card-details h4 {
    color: #8fd9b6;
    margin: 15px 0 10px 0;
    font-size: 1rem;
}

.achievement-card .card-details p {
    margin-bottom: 10px;
    line-height: 1.6;
}


/* --- animations.css --- */
@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes typewriter {
    to {
        width: 8ch;
    }
}

@keyframes gradientShift {
    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 500px;
    }
}


/* --- responsive.css --- */
/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 20px;
    }

    nav {
        position: static;
        margin: 20px auto;
        width: fit-content;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    h2 {
        font-size: 2rem;
    }

    .section-card {
        padding: 25px;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-header,
    .modal-body {
        padding: 20px;
    }
}


