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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #2563eb;
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 100px 20px 80px;
    margin-top: 70px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 40px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-photo {
    flex-shrink: 0;
}

.hero-photo img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.hero-photo img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    border-color: #4f46e5;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #1e293b;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #64748b;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    color: #64748b;
    font-weight: 400;
    line-height: 1.6;
}

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

.hero-buttons .btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.hero-buttons .btn.primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.hero-buttons .btn.secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
}

.hero-buttons .btn.secondary:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn.primary {
    background: #fff;
    color: #2563eb;
}

.btn.primary:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.btn.secondary {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn.secondary:hover {
    background: #2563eb;
    color: #fff;
}

.btn.small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn.small.secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn.small.secondary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn.small:not(.secondary):not(.live-app):not(.dataset) {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn.small:not(.secondary):not(.live-app):not(.dataset):hover {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

/* Sections */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1e293b;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto 60px;
    font-weight: 400;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

/* Skills Section */
#skills {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.12) 100%);
    position: relative;
}

#skills::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.skill-category {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.skill-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
}

.skill-category h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #1e293b;
}

#skills h2 {
    color: #1e293b !important;
    position: relative;
    z-index: 1;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #475569;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.skill-tag:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.about-item {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.about-item i {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 20px;
}

.about-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1e293b;
}

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

.project-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.project-card.featured {
    border: 2px solid #2563eb;
}

.project-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.project-image {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.project-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #1e293b;
}

.project-subtitle {
    font-size: 0.9rem;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 20px;
}

.project-subtitle a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-subtitle a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.project-section {
    margin-bottom: 20px;
}

.project-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.project-section p {
    color: #64748b;
    margin-bottom: 0;
}

.project-section ul {
    color: #64748b;
    margin-left: 20px;
}

.project-section ul li {
    margin-bottom: 5px;
}

/* Sub-projects list styling */
.sub-projects-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    margin-left: 0 !important;
}

.sub-projects-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.sub-projects-list li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-size: 12px;
    top: 2px;
}

.sub-projects-list li a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
}

.sub-projects-list li a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Live App button styling */
.btn.small.live-app {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%) !important;
    color: #fff !important;
    border: none !important;
    position: relative;
    overflow: hidden;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn.small.live-app::before {
    content: "🌐";
    margin-right: 8px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.btn.small.live-app::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.btn.small.live-app:hover {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.5);
    color: #fff !important;
}

.btn.small.live-app:hover::after {
    left: 100%;
}

/* Dataset button styling */
.btn.small.dataset {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
    color: #fff !important;
    border: none !important;
    position: relative;
    overflow: hidden;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn.small.dataset::before {
    content: "📊";
    margin-right: 8px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.btn.small.dataset::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.btn.small.dataset:hover {
    background: linear-gradient(135deg, #ee5a52 0%, #e74c3c 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
    color: #fff !important;
}

.btn.small.dataset:hover::after {
    left: 100%;
}

/* Demo Video button styling */
.btn.small.demo-video {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #fff !important;
    border: none !important;
    position: relative;
    overflow: hidden;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn.small.demo-video::before {
    content: "🎥";
    margin-right: 8px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.btn.small.demo-video::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.btn.small.demo-video:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
    color: #fff !important;
}

.btn.small.demo-video:hover::after {
    left: 100%;
}

.project-links {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tech-stack span {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Backend technologies - Blue theme */
.tech-stack .backend-tech {
    background: #d2abe1;
    color: #000000;
}

/* Frontend/Other technologies - Green theme */
.tech-stack .other-tech {
    background: #e7cfa7;
    color: #000000;
}

/* DevOps technologies - Orange theme */
.tech-stack .devops-tech {
    background: #e7cfa7;
    color: #000000;
}

/* Fallback for existing spans without classes */
.tech-stack span:not(.backend-tech):not(.other-tech):not(.devops-tech) {
    background: #e2e8f0;
    color: #475569;
}

/* Professional and GenAI sections */
#professional {
    background: linear-gradient(135deg, rgba(255, 236, 210, 0.15) 0%, rgba(252, 182, 159, 0.15) 100%);
    position: relative;
}

#professional::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 200, 150, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

#genai {
    background: linear-gradient(135deg, rgba(168, 237, 234, 0.12) 0%, rgba(254, 214, 227, 0.12) 100%);
    position: relative;
}

#genai::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 70% 30%, rgba(168, 237, 234, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 30% 80%, rgba(254, 214, 227, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

#ml {
    background: linear-gradient(135deg, rgba(210, 153, 194, 0.12) 0%, rgba(254, 249, 215, 0.15) 100%);
    position: relative;
}

#ml::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 60% 40%, rgba(210, 153, 194, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Writing Section */
#writing {
    background: linear-gradient(135deg, rgba(137, 247, 254, 0.12) 0%, rgba(102, 166, 255, 0.15) 100%);
    position: relative;
}

#writing::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(137, 247, 254, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(102, 166, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.writing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.writing-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.writing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.writing-card h3 {
    margin-bottom: 15px;
}

.writing-card h3 a {
    color: #1e293b;
    text-decoration: none;
    font-size: 1.3rem;
}

.writing-card h3 a:hover {
    color: #2563eb;
}

.writing-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.article-tags span {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.article-tags span:hover {
    background: #e2e8f0;
    color: #475569;
    transform: translateY(-1px);
}

.article-link {
    text-align: center;
    margin-top: auto;
}

/* Contact Section */
#contact {
    background: #1e293b;
    color: #fff;
}

#contact h2 {
    color: #fff;
}

#contact p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 600;
}

.contact-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 30px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
        gap: 30px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-photo img {
        width: 140px;
        height: 140px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .writing-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .project-card {
        padding: 20px;
    }
    
    .project-status {
        position: static;
        display: inline-block;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 30px 20px;
    }
    
    .hero-photo img {
        width: 120px;
        height: 120px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .btn.small {
        text-align: center;
        display: block;
        margin-bottom: 5px;
    }
}