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

:root {
    --primary-color: rgb(108, 93, 172);
    --primary-gradient: linear-gradient(135deg, rgb(108, 93, 172), #7c3aed);
    --bg-color: #f8fafc;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --card-bg: #ffffff;
    --pill-bg: #e0e7ff;
    --pill-text: #4338ca;
}

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

/* Nav Bar */
.nav-bar {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    background-clip: text;
    color: transparent;
}

#nav-links {
    display: flex;
    gap: 30px;
}

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

#nav-links a:hover {
    color: #7c3aed;
}

/* Typography & General Layout */
section {
    padding: 90px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-main);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* Hero Section */
#hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

#hero h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--primary-gradient);
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-main);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    color: #7c3aed;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

/* About Section */
.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}

.about-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-content strong {
    color: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: #f1f5f9; 
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
}

.stat-card h3 {
    font-size: 2.2rem;
    color: #4f46e5; 
    margin-bottom: 5px;
    line-height: 1;
}

.stat-card p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

/* Category Titles */
.category-title {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

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

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.pill {
    background: var(--pill-bg);
    color: var(--pill-text);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 20px;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.project-links a {
    color: #4f46e5;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-links a:hover {
    color: #3730a3;
}

/* Text-Based Case Studies Grid */
.case-study-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.case-study-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.case-study-card h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 15px;
}

.case-study-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 15px;
}

/* Inner Text Snippet Box */
.snippet-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #4f46e5;
    padding: 25px;
    border-radius: 6px 16px 16px 6px;
    margin-top: 20px;
}

.snippet-box h5 {
    color: #4f46e5;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.snippet-box p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Workflow Image Container */
.case-study-image-wrapper {
    margin: 25px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.case-study-image-wrapper img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.workflow-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.workflow-list li {
    background: #f8fafc;
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.workflow-list li strong {
    color: var(--primary-color);
}

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

.skill-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.skill-card h4 {
    font-size: 1.25rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
}

.skill-icon {
    color: #4f46e5;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-weight: 500;
}

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

.progress {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
}

/* Contact Section */
.contact-container {
    display: flex;
    justify-content: center;
}

.contact-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    max-width: 600px;
    width: 100%;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.contact-card > p {
    color: var(--text-muted);
    margin-bottom: 35px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--pill-bg);
    color: var(--pill-text);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info h4 {
    font-size: 1rem;
    margin: 0 0 4px 0;
    color: var(--text-main);
    font-weight: 600;
}

.contact-info p, .contact-info a {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #4f46e5;
}

footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    border-top: 1px solid #e2e8f0;
    margin-top: 50px;
}

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

    .about-image img {
        max-width: 280px;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .nav-bar {
        padding: 0 20px;
    }
    
    #nav-links {
        gap: 15px;
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .case-study-card {
        padding: 20px;
    }
}