/* ===================================
   Simplified Portfolio - Clean Design
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --light: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-light: #f8fafc;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: var(--primary);
    color: white;
}

/* ===================================
   Simple Background
   =================================== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* ===================================
   Navigation
   =================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

#navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

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

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

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

.nav-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--gray-600);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary);
    color: white;
}

/* ===================================
   Hero Section - Simplified
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 6rem 2rem 2rem;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Profile Photo - Small Centered Circle */
.hero-image {
    margin-bottom: 2rem;
}

.profile-photo {
    width: 360px;
    height: 420px;
    border: 4px solid var(--primary);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    display: block;
    margin: 0 auto;

}

.greeting {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.hero-name {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--light);
}

.name-char {
    display: inline-block;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-400);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.title-word {
    display: inline;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Buttons - Simplified
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--gray-400);
}

.btn-secondary:hover {
    border-color: var(--light);
    background: rgba(255, 255, 255, 0.1);
}

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

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

/* ===================================
   Scroll Indicator
   =================================== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--gray-400);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--gray-400);
    border-radius: 2px;
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0; }
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--gray-400);
}

/* ===================================
   Section Styles
   =================================== */
.section {
    padding: 4rem 0;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-weight: 700;
}

.title-line {
    flex: 1;
    height: 1px;
    background: var(--gray-200);
    max-width: 150px;
}

/* ===================================
   Tech Stack Section
   =================================== */

.tech-stack-section {
  padding: 4rem 2rem;
  background: #ffffff;
}

/* Grid gives better control than flex */
.tech-cloud {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  align-items: stretch;
}

/* Base tech item */
.tech-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* Hover effect */
.tech-item:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* -----------------------------------
   Icon-based items (bigger & first)
   ----------------------------------- */
.tech-item:has(img) {
  order: 1;
  grid-column: span 2;
  flex-direction: column;
  padding: 1.2rem;
  border-radius: 16px;
  font-size: 0.95rem;
}

/* Icon size */
.tech-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

/* -----------------------------------
   Text-only pills
   ----------------------------------- */
.tech-item:not(:has(img)) {
  order: 2;
  opacity: 0.95;
}


/* ===================================
   Featured Projects
   =================================== */
.featured-preview {
    padding: 4rem 2rem;
    background: var(--gray-50);
}

.projects-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.preview-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    display: block;
}

.preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.preview-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--gray-100);
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.preview-card:hover .preview-image img {
    transform: scale(1.05);
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(59, 130, 246, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-card:hover .preview-overlay {
    opacity: 1;
}

.view-project {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.preview-info {
    padding: 1.5rem;
}

.preview-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.preview-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

.preview-tags span {
    padding: 0.3rem 0.8rem;
    background: var(--gray-100);
    color: var(--primary);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.view-all-projects {
    text-align: center;
}

/* ===================================
   Projects Page
   =================================== */
.page-header {
    padding: 8rem 2rem 3rem;
    background: var(--dark-bg);
    color: var(--text-light);
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.title-number {
    color: var(--primary);
    margin-right: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--gray-400);
}

.projects-section {
    padding: 3rem 2rem;
    background: white;
}

.year-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.year-title {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

.year-line {
    flex: 1;
    height: 2px;
    background: var(--gray-200);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 220px;
    overflow: hidden;
    background: var(--gray-100);
    cursor: pointer;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-image:hover .image-overlay {
    opacity: 1;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.tag {
    padding: 0.3rem 0.8rem;
    background: var(--gray-100);
    color: var(--primary);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===================================
   Contact CTA
   =================================== */
.contact-cta {
    padding: 4rem 2rem;
    background: var(--dark-bg);
    color: var(--text-light);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--gray-400);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Footer
   =================================== */
footer {
    padding: 2rem;
    background: var(--darker);
    border-top: 1px solid var(--gray-200);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-right {
    display: flex;
    gap: 1.5rem;
}

.footer-right a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: var(--primary);
}

/* ===================================
   Modal
   =================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--primary);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .hero-name {
        font-size: 2.2rem;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
    }

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .nav-container {
        flex-wrap: wrap;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
    }
}