:root {
    --bg-main: #000000;
    --bg-secondary: #0a0a0a;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent: #27272a;
    --accent-hover: #3f3f46;
    --glass-bg: #141414;
    --glass-border: #27272a;
    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
}

body {
    overflow-x: hidden;
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

/* Navigation - Pill Shape */
.navbar {
    position: absolute;
    top: 10px;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    transition: var(--transition);
}

.nav-content {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.5rem 2rem;
    width: 90%;
    max-width: 1000px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.nav-contact-btn {
    background: var(--accent);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    color: var(--text-main) !important;
}

.nav-contact-btn:hover {
    background: var(--accent-hover);
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 40px;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('assets/cover.jpg') center/cover no-repeat;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.hero-left {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-greeting {
    font-size: 1.2rem;
    color: #e4e4e7;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #e4e4e7;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 80%;
}

.hero-buttons {
    margin-bottom: 2rem;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
}

.primary-btn {
    background: #3f3f46;
    color: #fff;
    border: 1px solid #52525b;
}

.primary-btn:hover {
    background: #52525b;
}

.hero-socials {
    display: flex;
    gap: 1.2rem;
}

.hero-socials .social-icon {
    border: none;
    background: none;
    width: auto;
    height: auto;
}

.social-icon {
    color: var(--text-main);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--text-muted);
}

.hero-right {
    flex: 0.8;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.hero-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
    margin-top: -180px;
    margin-right: -60px;
}

/* Sections Common */
.section {
    padding: 5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

/* About & Skills */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--text-main);
}

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

.skill-tags span {
    background: #1f1f1f;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.skill-tags span:hover {
    background: var(--accent-hover);
}

/* Projects (Services Style) */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.project-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: center;
    transition: var(--transition);
}

.project-card:hover {
    border-color: #3f3f46;
    transform: translateY(-5px);
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 1;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.tech-stack {
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.project-content p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.project-links a {
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    transition: var(--transition);
    background: #1f1f1f;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.project-links a:hover {
    background: var(--accent-hover);
}

/* Project Image Gallery */
.project-gallery-wrapper {
    flex: 1.2;
    position: relative;
    width: 100%;
    order: 2;
}

.project-gallery {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-scroll img {
    scroll-snap-align: center;
    height: 400px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    cursor: zoom-in;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--accent-hover);
}

.carousel-btn.prev {
    left: -20px;
}

.carousel-btn.next {
    right: -20px;
}

.tech-stack {
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.project-content p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.project-links a {
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    transition: var(--transition);
    background: #1f1f1f;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.project-links a:hover {
    background: var(--accent-hover);
}

/* Contact & Experience Styles Kept Basic */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0; left: 20px; height: 100%; width: 2px;
    background: var(--glass-border);
}
.timeline-item { position: relative; padding-left: 50px; margin-bottom: 2rem; }
.timeline-dot {
    position: absolute; left: 15px; top: 5px; width: 12px; height: 12px;
    border-radius: 50%; background: #fff;
}
.timeline-content { padding: 1.5rem; }
.timeline-content h3 { font-size: 1.2rem; color: var(--text-main); margin-bottom: 0.2rem; }
.timeline-content h4 { font-size: 1rem; color: var(--text-muted); font-weight: 500; margin-bottom: 0.5rem; }
.timeline-content .date {
    display: inline-block; padding: 0.2rem 0.6rem; background: var(--bg-secondary);
    border-radius: 4px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem;
}
.timeline-content ul li { margin-bottom: 0.5rem; color: var(--text-muted); line-height: 1.5; font-size: 0.95rem; position: relative; padding-left: 1.2rem; }
.timeline-content ul li::before { content: '•'; position: absolute; left: 0; color: var(--text-muted); font-weight: bold; }

/* Education Grid (Legacy - kept for bottom section) */
.education-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.edu-card { padding: 1.5rem; text-align: center; }
.edu-logos-inline { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; }
.edu-logo { height: 70px; width: auto; object-fit: contain; margin-bottom: 1rem; display: block; margin-left: auto; margin-right: auto; }
.edu-card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.edu-card .degree { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.3rem; }
.edu-card .date, .edu-card .cgpa { font-size: 0.85rem; color: var(--text-main); font-weight: 600; }
.achievements-section { background: var(--bg-secondary); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--glass-border); }
.achievements-section h3 { margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; font-size: 1.1rem; color: var(--text-main); }
.achievement-list li { margin-bottom: 0.5rem; color: var(--text-muted); line-height: 1.5; margin-left: 1.2rem; font-size: 0.95rem; }

/* Contact Container */
.contact-container { max-width: 600px; margin: 0 auto; padding: 2rem 1.5rem; text-align: center; }
.contact-container p { font-size: 1rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.5; }
.social-links { display: flex; justify-content: center; gap: 1rem; }
.contact-container .social-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
}
.contact-container .social-icon:hover {
    background: var(--glass-border);
}

/* Modal */
.modal-overlay, .lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95); z-index: 2000; display: flex;
    align-items: center; justify-content: center; opacity: 0;
    visibility: hidden; transition: var(--transition);
}
.modal-overlay.active, .lightbox-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background: var(--bg-main); width: 90%; max-width: 1000px; height: 85vh;
    border-radius: 12px; border: 1px solid var(--glass-border); position: relative;
    display: flex; flex-direction: column;
}
.modal-header { display: flex; justify-content: space-between; padding: 1rem; border-bottom: 1px solid var(--glass-border); }
.modal-header h3 { color: var(--text-main); margin: 0; }
.close-modal, .lightbox-close { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; transition: var(--transition); }
.close-modal:hover, .lightbox-close:hover { color: #fff; }
.modal-body { flex-grow: 1; width: 100%; }
.modal-body iframe { width: 100%; height: 100%; border: none; }

/* Lightbox Additions */
.lightbox-overlay { z-index: 3000; }
.lightbox-img-container { position: relative; max-width: 90%; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.lightbox-img-container img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 20px; right: 30px; font-size: 2rem; z-index: 3010; }
.lightbox-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(20, 20, 20, 0.8); border: 1px solid var(--glass-border); color: var(--text-main); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3010; font-size: 1.5rem; transition: var(--transition); }
.lightbox-btn:hover { background: var(--accent-hover); }
.lightbox-btn.prev { left: 20px; }
.lightbox-btn.next { right: 20px; }

footer { text-align: center; padding: 1.5rem; border-top: 1px solid var(--glass-border); margin-top: 2rem; color: var(--text-muted); font-size: 0.9rem; }

.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.show { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .nav-content { border-radius: 0; width: 100%; top: 0; padding: 1rem; justify-content: space-between; }
    .nav-links { display: none; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(20, 20, 20, 0.95);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
    }
    .menu-btn { display: block; }
    .hero-content { flex-direction: column; text-align: center; gap: 2rem; padding-top: 5rem; }
    .hero-left { align-items: center; text-align: center; }
    .hero-title { font-size: 2.5rem; }
    .hero-education { position: static; margin-top: 1rem; }
    .hero-img { width: 250px; height: 250px; margin-top: 0; margin-right: 0; }
    .project-card { flex-direction: column; gap: 2rem; padding: 1.5rem; }
    .project-gallery-wrapper { order: 2; }
    .project-content { order: 1; }
}
