:root {
    --bg-dark: #0a0c10;
    --bg-card: rgba(255, 255, 255, 0.03);
    --accent-blue: #4285f4;
    --accent-green: #34a853;
    --accent-yellow: #fbbc05;
    --accent-red: #ea4335;
    --text-primary: #f8f9fa;
    --text-secondary: #adb5bd;
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-fast: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

nav.scrolled {
    padding: 1rem 10%;
    background: rgba(10, 12, 16, 0.84);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 4rem;
    z-index: 1;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 0 0 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    width: 380px;
    height: 480px;
    padding: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('hero-bg.png') no-repeat center center/cover;
    opacity: 0.4;
    filter: brightness(0.7);
}

.hero h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 10px 30px rgba(66, 133, 244, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(66, 133, 244, 0.4);
}

/* Section Common */
section {
    padding: 100px 10%;
}

h3.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card {
    padding: 2.5rem;
    transition: var(--transition-fast);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
}

.skill-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
    color: var(--accent-blue);
}

.skill-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-fast);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(66, 133, 244, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(66, 133, 244, 0.2);
}

.project-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.project-footer i {
    font-size: 1.2rem;
}

.tech-stack-container {
    margin-top: 3rem;
    opacity: 0.8;
}

.tech-stack-container p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--accent-blue);
    font-weight: 700;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    max-width: 500px;
    width: 100%;
}

.tech-stack i,
.tech-icon-svg {
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.05));
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-icon-svg {
    width: 32px;
    height: 32px;
}

.tech-stack i:hover,
.tech-icon-svg:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 15px rgba(66, 133, 244, 0.4));
}

/* Modal System */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: modalSlide 0.4s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes modalSlide {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.close-modal:hover {
    color: var(--accent-blue);
}

#tech-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

#tech-description {
    line-height: 1.6;
    color: var(--text-secondary);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 2rem;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-dark);
    border: 4px solid var(--accent-blue);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 1.5rem;
    position: relative;
}

.timeline-content h4 {
    margin-bottom: 0.5rem;
    color: var(--accent-blue);
}

.timeline-content .date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .right {
        left: 0%;
    }
}