:root {
    --bg-color: #0a192f;
    --bg-light: #112240;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --accent-color: #64ffda;
    /* Neon Green/Cyan blend */
    --white: #e6f1ff;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Roboto Mono', monospace;

    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    color: var(--bg-color);
    background-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: rgba(100, 255, 218, 0.8);
}

.btn-outline {
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

.big-btn {
    padding: 1.25rem 1.75rem;
    font-size: 16px;
    margin-right: 20px;
    margin-bottom: 15px;
    display: inline-block;
}

.big-btn:last-child {
    margin-right: 0;
}

.accent {
    color: var(--accent-color);
}

.section-number {
    font-family: var(--font-mono);
    color: var(--accent-color);
    font-size: 20px;
    margin-right: 10px;
    font-weight: 400;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links li {
    margin: 0 5px;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-primary);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 3;
}

.hero-img {
    flex: 2;
    display: flex;
    justify-content: center;
}

/* Reusing img-wrapper styles from before, no changes needed for .img-wrapper class itself 
   as it's generic, but we made sure it's in the CSS. */

.greeting {
    font-family: var(--font-mono);
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 16px;
}

.name {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 10px;
}

.title {
    font-size: clamp(30px, 7vw, 70px);
    font-weight: 700;
    color: var(--text-secondary);
    line-height: 1.1;
    margin-bottom: 30px;
}

.bio {
    max-width: 540px;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.bio strong {
    color: var(--accent-color);
    font-weight: normal;
}

/* Sections General */
section {
    padding: 100px 0;
}


.section-title {
    display: flex;
    align-items: center;
    font-size: clamp(26px, 5vw, 32px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 40px;
    white-space: nowrap;
}

.section-title::after {
    content: "";
    display: block;
    width: 300px;
    height: 1px;
    background-color: #233554;
    margin-left: 20px;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 3;
    color: var(--text-secondary);
}

.about-text p {
    margin-bottom: 20px;
}

.about-img {
    flex: 2;
    display: flex;
    justify-content: center;
}

.img-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    /* Circular */
    overflow: hidden;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
    transition: var(--transition);
}

.img-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.4);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: var(--transition);
}

.img-wrapper:hover .profile-img {
    filter: none;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 200px));
    gap: 10px;
    padding: 0;
    margin: 20px 0 0 0;
    overflow: hidden;
    list-style: none;
}

.skills-list li {
    position: relative;
    padding-left: 20px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
}

.skills-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Skills Cards - Custom Addition based on request */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.skill-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 4px;
    transition: var(--transition);
    cursor: default;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 20px;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.project-card {
    background-color: var(--bg-light);
    padding: 2rem 1.75rem;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-7px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.folder-icon {
    color: var(--accent-color);
    width: 40px;
    height: 40px;
}

.folder-icon svg {
    width: 100%;
    height: 100%;
}

.external-links {
    display: flex;
    gap: 15px;
}

.external-icon {
    color: var(--text-secondary);
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.external-icon:hover {
    color: var(--accent-color);
}

.project-content {
    flex-grow: 1;
}

.project-title {
    margin-bottom: 10px;
    font-size: 22px;
}

.project-title a {
    color: var(--white);
}

.project-title a:hover {
    color: var(--accent-color);
}

.project-description {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 20px;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.project-tech-list li {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
}

/* Contact Section */
.contact {
    text-align: center;
    max-width: 600px;
    margin-bottom: 100px;
}

.contact-subtitle {
    font-family: var(--font-mono);
    color: var(--accent-color);
    font-size: 16px;
    margin-bottom: 20px;
}

.contact-title {
    font-size: clamp(40px, 5vw, 60px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.contact-text {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 50px;
}

/* Footer */
.footer {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 12px;
    margin-bottom: 20px;
}

.footer-email {
    margin-top: 10px;
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* In a real app we'd add a hamburger menu */
    }

    .section-title::after {
        width: 100%;
        max-width: 200px;
    }

    .about-content,
    .hero-content {
        flex-direction: column;
    }

    .hero-img {
        margin-top: 30px;
        order: -1;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}