:root {
    --bg-primary: #f9fafb;
    --bg-secondary: #ffffff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --gradient-start: #a855f7;
    --gradient-end: #ec4899;
    --accent: #10b981;
    
    --border-color: #e5e7eb;
    
    --nav-bg: rgba(255, 255, 255, 0.85);
    
    /* Box shadows for glassmorphism and depth */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography & Utilities */
h1, h2, h3, h4 {
    color: var(--text-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

.gradient-text {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    margin-right: 6px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-brand {
    font-weight: 700;
    font-size: 1.2rem;
}
.nav-brand .dot { color: var(--gradient-end); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.btn-nav {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: background 0.3s, border-color 0.3s;
    display: inline-flex;
    align-items: center;
}

.btn-outline:hover {
    background: var(--bg-secondary);
    border-color: #d1d5db;
}

.btn-gradient-sm {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s;
}

.btn-gradient-sm:hover {
    transform: translateY(-2px);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: var(--text-primary);
}
.btn-icon i { width: 16px; height: 16px; }

.mt-4 { margin-top: 1.5rem; }

/* Sections */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

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

.section-subtitle {
    display: inline-block;
    padding: 6px 16px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 12px;
}

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

.section-title .underline {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 4px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

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

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.dot-matrix {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 15px;
    padding: 20px;
}

.matrix-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e5e7eb;
    transition: background-color 0.5s ease;
}

/* About Section */
.about-content {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.about-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.detail-item h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.detail-item p {
    font-weight: 500;
    color: var(--text-primary);
}

.availability {
    display: inline-flex;
    align-items: center;
    margin-top: 24px;
    font-weight: 500;
    color: var(--text-primary);
    background: #f0fdf4;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-card {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 500;
}

.progress-bg {
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0; /* Animated via JS */
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

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

.project-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-image-placeholder {
    height: 200px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    position: relative;
    overflow: hidden;
}

.project-image-placeholder i {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

/* Background overlay for placeholder pattern */
.project-image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}


.project-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tag {
    background: #f3f4f6;
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: #e5e7eb;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    margin-bottom: 40px;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 24px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    box-shadow: 0 0 0 4px white, 0 0 0 6px rgba(168, 85, 247, 0.2);
}

.timeline-item.left .timeline-dot {
    right: -8px;
}

.timeline-item.right .timeline-dot {
    left: -8px;
}

.timeline-content {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    margin-bottom: 4px;
}

.timeline-date {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

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

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.achievement-card {
    background: var(--bg-secondary);
    padding: 32px 24px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.achievement-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}

.achievement-icon i {
    width: 32px;
    height: 32px;
}

.bg-orange { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.bg-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.bg-pink { background: linear-gradient(135deg, #ec4899, #be185d); }

.achievement-card h3 {
    margin-bottom: 4px;
    font-size: 1.2rem;
}

.achievement-date {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

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

/* Contact/Footer */
.contact-box {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 24px;
    padding: 60px 20px;
    text-align: center;
}

.contact-box h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-box p {
    color: var(--text-secondary);
}

footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

.scroll-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-anim.in-view {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .timeline::before, .timeline-line {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
    }
    
    .timeline-item.left, .timeline-item.right {
        left: 0;
        text-align: left;
    }
    
    .timeline-item.left .timeline-dot, .timeline-item.right .timeline-dot {
        left: 12px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .navbar.mobile-open {
        border-radius: 24px;
        flex-wrap: wrap;
    }
    
    .navbar.mobile-open .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
        gap: 16px;
        align-items: center;
    }
    
    .navbar.mobile-open .btn-nav {
        display: none;
    }
}
