:root {
    --primary: #1a1a1a;
    --secondary: #333;
    --accent: #0066cc;
    --text: #f5f5f5;
    --light-text: #ccc;
    --bg: #0a0a0a;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

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

nav a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)), url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--light-text);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: rgba(0, 102, 204, 0.1);
}

/* Sections */
section {
    padding: 100px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.about-text p {
    margin-bottom: 20px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.skill {
    background-color: rgba(0, 102, 204, 0.2);
    color: var(--accent);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

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

.project-card {
    background-color: var(--secondary);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    /* Ensure content stacks vertically */
    justify-content: space-between;
    /* Push content to top and bottom */
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img {
    height: 200px;
    background-color: #555;
    background-size: cover;
    background-position: center;
}

.project-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    /* Stack content vertically */
    position: relative;
    /* Enable positioning for the button */
    height: 100%;
    /* Ensure the content fills the card */
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-description {
    color: var(--light-text);
    margin-bottom: 15px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.project-links {
    position: absolute;
    /* Position the button at the bottom */
    bottom: 20px;
    /* Add spacing from the bottom */
    left: 20px;
    /* Align with content padding */
    display: flex;
    gap: 15px;
}

/* Footer */
footer {
    padding: 50px 0 30px;
    background-color: var(--primary);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.social-link {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--accent);
}

.copyright {
    color: var(--light-text);
    margin-top: 30px;
    font-size: 0.9rem;
}

.back-to-top {
    display: inline-block;
    margin-top: 30px;
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s;
}

.back-to-top:hover {
    color: var(--accent);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: transform 0.3s ease-in-out;
    transform: translateX(110%);
}

.mobile-nav.active {
    display: flex;
    transform: translateX(0);
}

.mobile-nav ul {
    list-style: none;
    text-align: center;
}

.mobile-nav li {
    margin: 20px 0;
}

.mobile-nav a {
    color: var(--text);
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Burger menu button */
.burger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    z-index: 101;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    nav ul {
        gap: 15px;
        display: none
    }

    .mobile-nav {
        display: block;
    }

    .mobile-nav ul {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        background-color: var(--primary);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: 50% 25%;
        width: 100vw;
    }

    .mobile-nav li {
        margin: 2rem 0;
    }

    .burger-menu {
        display: block;
    }

    .desktop-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}