:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(25, 25, 35, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent: #00d2ff;
    --accent-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --border-color: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Outfit', sans-serif;
}

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

ul {
    list-style: none;
}

/* Glassmorphism utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.4);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: var(--text-primary);
    border-radius: 30px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: var(--glass-border);
}

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

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a:not(.btn-primary) {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-gradient);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover {
    color: var(--text-primary);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 150px 20px 20px;
    gap: 60px;
}

.hero-content {
    flex: 1.2;
}

.greeting {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 14px;
}

.name {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    white-space: nowrap;
}

.title {
    font-size: 2rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 30px;
}

.summary {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 30px;
    padding: 10px;
    background: var(--glass-border);
}

.image-wrapper img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    display: block;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.experience-badge {
    position: absolute;
    bottom: -15px;
    left: -20px;
    background: rgba(20, 20, 25, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 15px 25px;
    border-radius: 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.experience-badge:hover {
    transform: translateY(-5px) scale(1.02);
}

.experience-badge .years {
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
}

.experience-badge .text {
    font-size: 0.75rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    text-align: left;
    max-width: 100px;
    font-weight: 500;
}

/* Sections General */
section {
    padding: 30px 20px;
    scroll-margin-top: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

.section-header span {
    color: var(--accent);
}

.underline {
    height: 4px;
    width: 60px;
    background: var(--accent-gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--text-secondary);
    margin-top: 15px;
}

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

.about-card {
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 25px 30px;
    border-radius: 20px;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.about-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.about-card i {
    font-size: 1.8rem;
    color: var(--accent);
}

.about-card h3 {
    font-size: 1.3rem;
}

.about-card ul li {
    font-size: 0.95rem;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.about-card ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.about-card ul li strong {
    color: #fff;
    font-weight: 500;
}

.about-card ul li br {
    display: block;
    content: "";
    margin-top: 5px;
}

/* Experience Section */
.experience-card {
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 50px;
    border-radius: 20px;
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.company-header h3 {
    font-size: 1.8rem;
    color: var(--accent);
}

.duration {
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.job-title {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.company-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.detail-item i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 5px;
}

.detail-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.project-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    background: rgba(35, 35, 45, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
}

.project-year {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    flex-grow: 1;
}

.project-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-completed {
    background: rgba(46, 213, 115, 0.15);
    color: #2ed573;
}

.status-running {
    background: rgba(255, 165, 2, 0.15);
    color: #ffa502;
}

.projects-action {
    text-align: center;
}

/* Footer / Contact */
.contact {
    background: var(--bg-secondary);
    padding: 50px 20px 30px;
    margin-top: 0;
    border-top: var(--glass-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 80px;
}

.footer-info {
    text-align: center;
    margin-bottom: 60px;
}

.footer-info h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    text-align: center;
    padding: 20px 15px;
    background: var(--bg-primary);
    border-radius: 16px;
    border: var(--glass-border);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-card .icon {
    width: 45px;
    height: 45px;
    background: rgba(0, 210, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.contact-card .icon i {
    font-size: 1.2rem;
    color: var(--accent);
}

.qr-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin: 0 auto 15px;
    display: block;
    background: #fff;
    padding: 5px;
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contact-card a, .contact-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 5px;
}

.contact-card a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 150px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .summary {
        margin: 0 auto 40px;
    }
    
    .name {
        font-size: 3.2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .company-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 40px 15px;
        scroll-margin-top: 70px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
        border-bottom: var(--glass-border);
        box-shadow: var(--glass-shadow);
    }
    
    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }
    
    .name {
        font-size: 2.2rem;
        white-space: normal;
    }

    .title {
        font-size: 1.3rem;
    }
    
    .experience-badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
        padding: 10px 20px;
        width: 80%;
        text-align: center;
    }

    .about-card, .experience-card, .project-card, .contact-card {
        padding: 25px 20px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

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

    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-actions a {
        width: 100%;
    }
}
