:root {
    --bg-color: #f8fafc;
    --text-color: #475569;
    --heading-color: #0f172a;
    --primary-color: #15803d;
    --primary-hover: #166534;
    --secondary-color: #64748b;
    --surface-color: #ffffff;
    --border-color: #e2e8f0;
    --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;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    font-size: 14px; /* Even smaller base font size */
}

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

/* Typography */
h1, h2, h3, h4 {
    color: var(--heading-color);
    font-weight: 700;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 30%;
    height: 3px;
    background: var(--primary-color);
    bottom: -8px;
    left: 35%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

section:hover .section-title::after {
    width: 60%;
    left: 20%;
}

/* Base Card Style (Replacing Glassmorphism for clean look) */
.glass {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass:hover {
    box-shadow: var(--shadow-md);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: padding 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
    padding: 0.5rem 5%;
    box-shadow: var(--shadow-sm);
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 0.5px;
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
    font-size: 0.85rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: -4px;
    left: 0;
    transition: width 0.3s;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

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

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--heading-color);
}

/* Sections */
section {
    padding: 7rem 5% 4rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero Section */
.hero {
    align-items: center;
    text-align: center;
}

.avatar-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--surface-color);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
}

.avatar-container:hover .avatar {
    transform: scale(1.05);
}

.glitch-text {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--surface-color);
    color: var(--heading-color);
    font-size: 1.2rem;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn {
    padding: 0.7rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    display: inline-block;
    font-size: 1rem;
}

.primary-btn {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.primary-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* About Section */
.about-container {
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 4rem;
    align-items: start;
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-personal-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.about-info-box {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 1rem 1.2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--heading-color);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.about-info-box i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.status-badge-box {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #166534 !important;
}

.status-badge-box i {
    color: #22c55e !important;
}

.about-image {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.about-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.about-item .icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    background: rgba(22, 163, 74, 0.1);
    padding: 0.8rem;
    border-radius: 8px;
    min-width: 45px;
    text-align: center;
}

.about-item p {
    font-size: 1rem;
    padding-top: 0.2rem;
}

/* Tech Stack */
.tech-stack-card {
    padding: 2rem;
}

.tech-stack-card h3 {
    margin-bottom: 1.5rem;
    color: var(--heading-color);
    font-size: 1.3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.tech-category {
    margin-bottom: 1.2rem;
}

.tech-category:last-child {
    margin-bottom: 0;
}

.tech-category h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--heading-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-category h4 i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags span {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: var(--text-color);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: default;
}

.tags span:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.update-soon {
    font-style: italic;
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-left: 28px;
    margin-top: 0.2rem;
}

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

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

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

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background: var(--primary-color);
    border: 3px solid var(--surface-color);
    box-shadow: var(--shadow-sm);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    transition: transform 0.3s;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
}

.timeline-content {
    padding: 1.5rem;
}

.timeline-content:hover {
    transform: translateY(-3px);
}

.timeline-item.future .timeline-content {
    border: 1px dashed var(--primary-color);
    background: rgba(22, 163, 74, 0.04);
}

.timeline-content h3 {
    margin-bottom: 4px;
    color: var(--heading-color);
    font-size: 1.15rem;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.timeline-content .date {
    display: inline-block;
    padding: 2px 10px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 12px;
    color: var(--secondary-color);
    font-weight: 600;
}

/* Projects Section */
.projects-section {
    text-align: center;
}

.project-count {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-left: 0.5rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
}

.project-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    text-align: left;
    height: 100%;
}

.project-image {
    width: 100%;
    height: 180px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.project-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    box-shadow: var(--shadow-sm);
}

.status-completed {
    background-color: #10b981; /* green 500 */
}

.status-progress {
    background-color: #22c55e; /* green 500 */
}

.project-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 1rem;
}

.project-header h3 {
    font-size: 1.2rem;
    color: var(--heading-color);
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.project-date {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.project-team {
    font-size: 0.85rem;
    color: var(--text-color);
    background: #f1f5f9;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.project-desc h4, .project-tasks h4 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: var(--heading-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-desc h4 i, .project-tasks h4 i {
    color: var(--primary-color);
}

.project-desc ul, .project-tasks ul {
    list-style-type: none;
    color: var(--text-color);
    font-size: 0.9rem;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.project-desc ul li, .project-tasks ul li {
    position: relative;
    padding-left: 1.2rem;
}

.project-desc ul li::before, .project-tasks ul li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.mt-auto {
    margin-top: auto;
    padding-top: 1.5rem;
}

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

.outline-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Certificates Section */
.certificates-section {
    text-align: center;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
}

.cert-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
}

.cert-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.cert-info {
    padding: 1.2rem;
    text-align: center;
    background: var(--surface-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.cert-info h4 {
    font-size: 1rem;
    color: var(--heading-color);
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.cert-date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* CV Section */
.cv-section {
    text-align: center;
}

.cv-controls {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cv-btn {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.cv-btn:hover, .cv-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.cv-display {
    max-width: 1100px;
    width: 95%;
    margin: 0 auto;
    padding: 1rem;
    text-align: center;
}

.cv-img {
    width: auto;
    max-width: 100%;
    max-height: 150vh; 
    border-radius: 8px;
    transition: opacity 0.4s ease;
    border: 1px solid var(--border-color);
}

.cv-img.fade-out {
    opacity: 0;
}

/* Contact Section */
.contact-card {
    max-width: 550px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
}

.contact-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-card p {
    margin-bottom: 2rem;
}

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

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

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 65px;
        flex-direction: column;
        background: var(--surface-color);
        width: 100%;
        text-align: center;
        padding: 1.5rem 0;
        transition: 0.3s;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0%;
    }
    
    .timeline-dot {
        left: 23px !important;
    }
    
    .glitch-text {
        font-size: 2.2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .about-item {
        flex-direction: row; /* keep horizontal on mobile for compactness */
    }
    
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .avatar-container {
        width: 150px;
        height: 150px;
    }
    
    section {
        padding: 6rem 5% 3rem;
    }
}
