/* CSS Variables - Dark Theme with Teal */
:root {
    --dark-navy: #020c1b;
    --navy: #0a192f;
    --light-navy: #112240;
    --lightest-navy: #233554;
    --navy-shadow: rgba(2, 12, 27, 0.7);
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --white: #e6f1ff;
    --teal: #64ffda;
    --teal-tint: rgba(100, 255, 218, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: var(--lightest-navy);
    color: var(--lightest-slate);
}

body {
    background-color: var(--navy);
    color: var(--slate);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--lightest-navy);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-logo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--lightest-slate);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: var(--teal);
}

.nav-left a:not(.nav-logo) {
    color: var(--lightest-slate);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-left a:not(.nav-logo)::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--teal);
    transition: width 0.3s ease;
}

.nav-left a:not(.nav-logo):hover {
    color: var(--teal);
}

.nav-left a:not(.nav-logo):hover::before {
    width: 100%;
}

.nav-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-right a {
    color: var(--slate);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-right a:hover {
    color: var(--teal);
    transform: translateY(-3px);
}

.nav-right svg {
    width: 20px;
    height: 20px;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 40px 60px;
}

/* Intro Section */
#intro {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 6vw;
    padding: 0 5vw;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Animated Background Blocks */
.intro-blocks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.block {
    position: absolute;
    background: var(--lightest-navy);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.block:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.block:nth-child(2) {
    width: 60px;
    height: 60px;
    left: 70%;
    top: 40%;
    animation-delay: 5s;
    animation-duration: 20s;
}

.block:nth-child(3) {
    width: 100px;
    height: 100px;
    left: 40%;
    top: 60%;
    animation-delay: 2s;
    animation-duration: 30s;
}

.block:nth-child(4) {
    width: 50px;
    height: 50px;
    left: 80%;
    top: 15%;
    animation-delay: 8s;
    animation-duration: 22s;
}

.block:nth-child(5) {
    width: 70px;
    height: 70px;
    left: 20%;
    top: 70%;
    animation-delay: 3s;
    animation-duration: 27s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
        opacity: 0.5;
    }
    50% {
        transform: translate(-20px, 40px) rotate(180deg);
        opacity: 0.2;
    }
    75% {
        transform: translate(40px, 20px) rotate(270deg);
        opacity: 0.4;
    }
}

/* Profile Picture */
.profile-container {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.profile-picture {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--teal);
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    background: var(--light-navy);
}

.profile-picture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--teal), transparent);
    opacity: 0.1;
    transition: opacity 0.4s ease;
}

.profile-picture:hover {
    transform: translateY(-10px) scale(1.05) rotate(2deg);
    box-shadow: 0 20px 50px rgba(100, 255, 218, 0.5);
    border-color: var(--lightest-slate);
}

.profile-picture:hover::before {
    opacity: 0.2;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: grayscale(30%);
}

.profile-picture:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.profile-picture::after {
    content: 'NM';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    font-weight: 700;
    color: var(--teal);
    font-family: 'Courier New', monospace;
    z-index: -1;
}

/* Intro Content */
.intro-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.intro-name {
    font-size: 4rem;
    font-weight: 700;
    color: var(--lightest-slate);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.intro-tagline {
    font-size: 2rem;
    color: var(--slate);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Email Button */
.email-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--teal);
    color: var(--teal);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.email-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--teal);
    transition: left 0.3s ease;
    z-index: -1;
}

.email-button:hover::before {
    left: 0;
}

.email-button:hover {
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

.email-button .icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.email-button:hover .icon {
    transform: translateX(5px);
}

.email-button .text {
    position: relative;
    z-index: 1;
}

/* Section Titles */
h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--lightest-slate);
    display: flex;
    align-items: center;
    gap: 1rem;
}

h2::before {
    content: '/';
    color: var(--teal);
    font-family: 'Courier New', monospace;
}

section {
    margin-bottom: 8rem;
}

/* About Section */
#about p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--slate);
    margin-bottom: 1.5rem;
}

#about strong {
    color: var(--lightest-slate);
    font-weight: 500;
}

/* Experience Section */
.job {
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--light-navy);
    border-radius: 4px;
    border-left: 3px solid var(--teal);
    transition: transform 0.3s ease;
}

.job:hover {
    transform: translateX(5px);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--lightest-slate);
}

.date {
    font-size: 0.85rem;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    font-family: 'Courier New', monospace;
}

.job-location {
    font-size: 1rem;
    color: var(--slate);
    margin-bottom: 1rem;
    font-style: italic;
}

.job-details {
    list-style: none;
    padding-left: 0;
}

.job-details li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--slate);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.job-details li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--teal);
    font-size: 1.2rem;
}

/* Projects Section */
.project-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.nav-btn {
    background: var(--light-navy);
    border: 1px solid var(--teal);
    color: var(--teal);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.7rem 1.5rem;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    border-radius: 4px;
}

.nav-btn:hover {
    background: var(--teal-tint);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.project-counter {
    font-size: 1rem;
    color: var(--teal);
    font-family: 'Courier New', monospace;
}

.project-container {
    position: relative;
    min-height: 300px;
}

.project {
    display: none;
    padding: 2rem;
    background: var(--light-navy);
    border-radius: 4px;
    border: 1px solid var(--lightest-navy);
}

.project.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.project h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--lightest-slate);
}

.project-meta {
    font-size: 0.85rem;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.project-details {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.project-details li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--slate);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.project-details li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--teal);
    font-size: 1.2rem;
}

.tech-tags {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--teal);
    font-family: "Courier New", monospace;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--teal-tint);
    border-radius: 4px;
}

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

.skill-category {
    padding: 1.5rem;
    background: var(--light-navy);
    border-radius: 4px;
    border-left: 3px solid var(--teal);
}

.skill-category h3 {
    font-size: 1.1rem;
    color: var(--lightest-slate);
    margin-bottom: 1rem;
}

.skill-category p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--slate);
}

/* Education Section */
.education-item {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--light-navy);
    border-radius: 4px;
    border-left: 3px solid var(--teal);
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.edu-school {
    font-size: 1rem;
    color: var(--slate);
    margin-bottom: 1rem;
    font-style: italic;
}

.edu-details {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--slate);
    margin-bottom: 0.5rem;
}

.edu-details strong {
    color: var(--lightest-slate);
}

.certification-item {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--light-navy);
    border-radius: 4px;
    border-left: 3px solid var(--teal);
}

.certification-item h3 {
    margin-bottom: 1rem;
    color: var(--lightest-slate);
}

.certification-item p {
    font-size: 0.95rem;
    color: var(--slate);
}

/* Footer */
footer {
    margin-top: 10rem;
    padding-top: 2rem;
    border-top: 1px solid var(--lightest-navy);
    text-align: center;
}

footer p {
    font-size: 0.9rem;
    color: var(--slate);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    #intro {
        gap: 3vw;
    }
}

@media (max-width: 768px) {
    .top-nav {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-left {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        width: 100%;
    }

    .nav-right {
        gap: 1.5rem;
    }

    .container {
        padding: 180px 25px 40px;
    }

    .intro-name {
        font-size: 2.5rem;
    }

    .intro-tagline {
        font-size: 1.5rem;
    }

    #intro {
        flex-direction: column;
        min-height: auto;
        padding: 80px 5vw;
        gap: 3rem;
    }

    .profile-picture {
        width: 200px;
        height: 200px;
    }

    .profile-picture::after {
        font-size: 3rem;
    }

    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-nav {
        flex-wrap: wrap;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .top-nav {
        padding: 1rem;
    }

    .intro-name {
        font-size: 2rem;
    }

    .intro-tagline {
        font-size: 1.2rem;
    }
}