/* General Styles */
:root {
    --primary-color: #bb86fc;
    --secondary-color: #3700b3;
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --text-color: #e0e0e0;
    --subtle-text-color: #a0a0a0;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background-color: var(--surface-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 0.8s ease-out;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav ul {
    list-style: none;
    display: flex;
}

.nav li {
    margin-left: 2rem;
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav a:hover {
    color: var(--primary-color);
}

.nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #232526 0%, #414345 100%);
    animation: hero-bg-move 8s ease-in-out infinite alternate;
}

@keyframes hero-bg-move {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.hero-content {
    text-align: center;
    color: #fff;
    opacity: 0;
    transform: translateY(40px);
    animation: hero-fade-in 1.2s cubic-bezier(.77,0,.18,1) 0.2s forwards;
}

@keyframes hero-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
    background: linear-gradient(90deg, #a18cd1 0%, #fbc2eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    min-height: 32px;
    color: #e0e0e0;
    margin-top: 0;
    letter-spacing: 0.5px;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    animation: fadeIn 1s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    text-align: center;
}

/* Projects Section */
.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--surface-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-card p {
    color: var(--subtle-text-color);
    font-size: 0.95rem;
}

.project-card .card-content {
    padding: 2rem;
}

.project-card .card-links a {
    color: var(--primary-color);
    margin-right: 15px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.project-card .card-links a:hover {
    color: var(--secondary-color);
}

/* Tech Stack Section */
.profile-image-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.profile-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tech Stack Section - Logos */
.tech-stack-list .tech-item img {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.tech-stack-list .tech-item span {
    vertical-align: middle;
}

.tech-stack-list .tech-item {
    display: inline-flex; /* Align image and text in a row */
    align-items: center; /* Vertically align items */
    gap: 0.5rem; /* Space between image and text */
    padding: 0.75rem 1.5rem; /* Adjust padding for image */
}

/* Tech Stack Section - Dark Theme */
.tech-stack-section {
    padding: 32px 0;
    background: #181a1b;
}

.tech-stack-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    max-width: 100vw;
    overflow: hidden;
}

.tech-category {
    min-width: 180px;
    max-width: 220px;
    flex: 1 1 180px;
    background: #23272b;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tech-category h4 {
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #f1f1f1;
    text-align: center;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: #222426;
    border-radius: 8px;
    padding: 8px 6px;
    min-width: 70px;
    max-width: 90px;
    font-size: 0.95rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.tech-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-bottom: 2px;
    filter: brightness(0.95) contrast(1.1);
}

.tech-item span {
    font-size: 0.92rem;
    color: #e0e0e0;
    word-break: break-word;
    text-align: center;
}

/* Tech Stack Section - Improved Dark Theme */
.tech-stack-section {
    padding: 32px 0;
    background: #181a1b;
}

.tech-stack-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    max-width: 100vw;
    overflow: hidden;
}

.tech-category {
    background: #23272b;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    padding: 20px 18px;
    min-width: 200px;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tech-category h4 {
    margin-bottom: 18px;
    font-size: 1.08rem;
    color: #fff;
    text-align: center;
    letter-spacing: 0.5px;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 12px;
    width: 100%;
    justify-items: center;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #181a1b;
    border-radius: 8px;
    padding: 10px 8px 6px 8px;
    min-width: 80px;
    max-width: 100px;
    font-size: 0.98rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    transition: transform 0.15s, box-shadow 0.15s;
    word-break: normal;
}

.tech-item:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    background: #23272b;
}

.tech-item img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin-bottom: 6px;
    filter: brightness(0.98) contrast(1.1);
}

.tech-item span {
    font-size: 0.97rem;
    color: #e0e0e0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}

/* Tech Stack Section - Clean Grid Dark Theme */
.tech-stack-section {
    padding: 40px 0 20px 0;
    background: #181a1b;
}

.tech-stack-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-category {
    background: #23272b;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    padding: 22px 16px 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tech-category h4 {
    margin-bottom: 18px;
    font-size: 1.08rem;
    color: #fff;
    text-align: center;
    letter-spacing: 0.5px;
}

.category-list {
    
    gap: 14px;
    justify-content: center;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #3b5867;
    border-radius: 8px;
    padding: 10px 8px 6px 8px;
    min-width: 80px;
    max-width: 90px;
    font-size: 0.97rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    transition: transform 0.15s, box-shadow 0.15s;
    word-break: normal;
}

.tech-item:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    background: #0b79e8;
}

.tech-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-bottom: 6px;
    filter: brightness(0.98) contrast(1.1);
}

.tech-item span {
    font-size: 0.95rem;
    color: #e0e0e0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

/* Responsive: shrink items and gaps on smaller screens */
@media (max-width: 900px) {
    .tech-stack-list {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 18px;
    }
    .tech-category {
        padding: 12px 6px 10px 6px;
    }
    .category-list {
        gap: 8px;
    }
    .tech-item {
        min-width: 54px;
        max-width: 70px;
        font-size: 0.85rem;
        padding: 6px 2px 4px 2px;
    }
    .tech-item img {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 600px) {
    .tech-stack-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .tech-category {
        min-width: unset;
        max-width: unset;
        padding: 8px 2px 6px 2px;
    }
    .category-list {
        gap: 6px;
    }
    .tech-item {
        min-width: 40px;
        max-width: 54px;
        font-size: 0.75rem;
        padding: 4px 1px 2px 1px;
    }
    .tech-item img {
        width: 18px;
        height: 18px;
    }
}

/* Footer */
.footer {
    background-color: var(--surface-color);
    color: var(--subtle-text-color);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #333;
    animation: fadeInUp 0.8s ease-out;
}

.social-links {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary-color);
}
/* Skills Section Styles */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.skills-list li {
    background-color: var(--surface-color);
    color: var(--text-color);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 500;
    border: 1px solid var(--subtle-text-color);
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    animation: popIn 0.6s ease-out;
}

.skills-list li:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color);
    color: var(--surface-color);
    border-color: var(--primary-color);
}


/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    80% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}