:root {
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #10b981;
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --nav-h: 80px;
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

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

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1), transparent);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Nav */
nav {
    height: var(--nav-h);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 15px var(--primary-glow);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-logo-img {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.5px;
}

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

.logo-subtitle {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

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

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

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

.menu-btn {
    display: none;
    cursor: pointer;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.profile-img-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    border-radius: 20px;
    padding: 5px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 30px var(--primary-glow);
    transition: transform 0.5s ease;
}

.profile-img-container:hover {
    transform: scale(1.05) rotate(5deg);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    border: 4px solid var(--bg-dark);
}

.highlight {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.btn.secondary {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    margin-left: 1rem;
    background: rgba(255, 255, 255, 0.05);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--primary-glow);
}

/* Sections */
.section-container {
    padding: 8rem 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 1.2rem;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 300;
}

.section-subtitle a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.section-subtitle a:hover {
    color: var(--primary);
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.9);
}

/* About Enhancement */
.about-card p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.pillar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
}

.pillar-item i {
    color: var(--primary);
    width: 24px;
    height: 24px;
}

.pillar-item span {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.skill-category h3 {
    margin-bottom: 2.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.skill-item {
    margin-bottom: 2rem;
}

.skill-name {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
}

.skill-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 5px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-brand {
    font-size: 0.8rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.project-info h3 {
    font-size: 1.5rem;
    color: var(--text-main);
}

.project-title-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
}

.project-info p {
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-link {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-date {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.company {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.company a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.company a:hover {
    color: var(--primary);
    border-bottom: 1px solid var(--primary);
}

.timeline-item ul {
    list-style: none;
    color: var(--text-dim);
}

.timeline-item li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: start;
}

.timeline-item li::before {
    content: "⚡";
    margin-right: 15px;
    font-size: 0.8rem;
}

/* Contact */
.contact-single-card {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    white-space: nowrap;
}

.contact-item:not(:last-child)::after {
    content: "|";
    margin-left: 1.2rem;
    color: inherit;
    font-weight: 300;
}

.contact-item i {
    color: var(--primary);
    width: 20px;
    height: 20px;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary);
}

/* Mobile adjustments for contact card */
@media (max-width: 768px) {
    .contact-single-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .contact-item:not(:last-child)::after {
        display: none;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    padding: 6rem 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }

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

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

    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .section-container {
        padding: 4rem 0;
    }

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

    .project-links {
        flex-direction: column;
    }
}