:root {
    --bg-dark: #0a192f;
    --bg-light: #112240;
    --bg-lightest: #233554;
    --accent: #64ffda;
    --text-main: #ccd6f6;
    --text-muted: #8892b0;
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-muted);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--accent);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px -10px rgba(2,12,27,0.7);
}

.nav-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 1.75rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.btn-primary {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--text-main);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(204, 214, 246, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
}

.hero-text {
    flex: 1;
}

.greeting {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.name {
    font-size: clamp(40px, 8vw, 70px);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--text-main) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.headline {
    font-size: clamp(30px, 6vw, 55px);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--text-muted) 0%, #b0b8c8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bio {
    max-width: 540px;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    flex-shrink: 0;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    z-index: 2;
    background-color: var(--bg-light);
    transition: all 0.3s ease;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.hero-image-wrapper:hover .hero-image {
    transform: translate(-5px, -5px);
}

.hero-image-backdrop {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: 8px;
    z-index: 1;
    transition: all 0.3s ease;
}

.hero-image-wrapper:hover .hero-image-backdrop {
    transform: translate(10px, 10px);
}

/* Sections */
.section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: clamp(26px, 5vw, 32px);
    margin-bottom: 3rem;
}

.section-title span {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: clamp(16px, 3vw, 20px);
    margin-right: 10px;
    font-weight: 400;
}

.section-title::after {
    content: "";
    display: block;
    height: 1px;
    width: 300px;
    background-color: var(--bg-lightest);
    margin-left: 20px;
}

/* Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.expertise-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-5px);
}

.expertise-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.expertise-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.expertise-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tech-list li::before {
    content: "▹";
    color: var(--accent);
    margin-right: 5px;
}

/* Featured Projects */
.project-showcase {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    margin-bottom: 6rem;
}

.project-showcase:last-child {
    margin-bottom: 0;
}

.project-content {
    grid-column: 1 / 8;
    grid-row: 1;
    z-index: 2;
}

.project-showcase.reverse .project-content {
    grid-column: 6 / -1;
    text-align: right;
}

.project-overline {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.project-description {
    background-color: rgba(17, 34, 64, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(100, 255, 218, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 1rem;
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.project-description:hover {
    border-color: rgba(100, 255, 218, 0.5);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
    transform: translateY(-2px);
}

.project-tech {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.project-showcase.reverse .project-tech {
    justify-content: flex-end;
}

.project-image-container {
    grid-column: 6 / -1;
    grid-row: 1;
    z-index: 1;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-color: var(--accent);
}

.project-showcase.reverse .project-image-container {
    grid-column: 1 / 8;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--bg-lightest);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 1.5rem;
    mix-blend-mode: multiply;
    transition: all 0.3s ease;
}

.project-image-container:hover .project-placeholder {
    background-color: transparent;
    mix-blend-mode: normal;
}

/* Footer */
.footer {
    text-align: center;
    padding: 6rem 2rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.footer h2 {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.footer h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.footer p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.footer-credits {
    margin-top: 6rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image-wrapper {
        margin: 0 auto;
    }
    
    .project-showcase, .project-showcase.reverse {
        display: flex;
        flex-direction: column;
    }
    
    .project-content, .project-showcase.reverse .project-content {
        text-align: left;
        grid-column: 1;
    }
    
    .project-tech, .project-showcase.reverse .project-tech {
        justify-content: flex-start;
    }
    
    .project-image-container {
        display: none; /* Hide images on small screens for cleaner layout */
    }
}
