/* Global Styles & Variables */
:root {
    --bg-dark: #0a0e17;
    --bg-card: #111625;
    --primary-color: #00f2ff;
    /* Cyan tech blue */
    --secondary-color: #bc13fe;
    /* Neon purple */
    --gradient-main: linear-gradient(135deg, #00f2ff 0%, #bc13fe 100%);
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --nav-bg: rgba(10, 14, 23, 0.95);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.alt-bg {
    background-color: #0f1422;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.btn.primary {
    background: var(--gradient-main);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(188, 19, 254, 0.4);
}

.btn.secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: #fff;
}

.btn.secondary:hover {
    background: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(188, 19, 254, 0.3);
}

.btn.outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-gray);
    font-size: 0.8rem;
    padding: 10px 20px;
}

.btn.outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-gray);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Static fallback gradient */
    background: radial-gradient(circle at center, #1a2236 0%, #0a0e17 100%);
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.greeting {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 2px;
}

.name {
    font-size: 4rem;
    font-family: var(--font-heading);
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #a0a0a0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title {
    font-size: 1.5rem;
    color: var(--text-gray);
    font-weight: 400;
    margin-bottom: 40px;
}

.cta-buttons {
    margin-bottom: 40px;
}

.social-links-hero a {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin: 0 15px;
}

.social-links-hero a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Scroll Down Animation */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 10px;
        opacity: 1;
    }

    100% {
        top: 30px;
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-main);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-title::before {
    content: attr(data-title);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.03);
    font-weight: 800;
    white-space: nowrap;
    z-index: -1;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
    padding: 20px;
}

.img-frame {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    padding: 5px;
}

.profile-img {
    width: 100%;
    border-radius: 15px;
    display: block;
    transition: transform 0.5s ease;
}

.about-img-wrapper:hover .profile-img {
    transform: scale(1.02);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 30px;
}

.info-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item .icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    background: rgba(188, 19, 254, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-item h4 {
    font-size: 0.9rem;
    color: var(--text-white);
}

.info-item p {
    margin: 0;
    font-size: 0.85rem;
}

/* Skills Section */
.skills-category {
    margin-bottom: 50px;
}

.skills-category h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.skill-card {
    background: var(--bg-card);
    padding: 15px 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.1);
}

.skill-card i {
    font-size: 1.5rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: #222;
    /* Fallback for missing img */
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
    opacity: 0.4;
}

.project-img .overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 15px;
    opacity: 0;
    transition: 0.3s;
}

.project-card:hover .overlay {
    opacity: 1;
}

.overlay a {
    color: #fff;
    background: var(--primary-color);
    padding: 8px 30px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: 0.3s;
}

.project-content {  
    padding: 25px;
}

.project-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.tech-stack {
    margin-bottom: 15px;
}

.tech-stack span {
    display: inline-block;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.project-content p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    position: absolute;
    top: 15px;
    right: -10px;
    z-index: 10;
    box-shadow: 0 0 10px var(--secondary-color);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-date {
    position: absolute;
    top: 15px;
    right: -100px;
    font-weight: 600;
    color: var(--primary-color);
}

.timeline-item:nth-child(odd) .timeline-date {
    left: -100px;
    right: auto;
    text-align: right;
}

/* Interests */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.card-box {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.card-box:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(188, 19, 254, 0.1);
    color: var(--secondary-color);
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.interests-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.interests-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Contact */
.contact-section {
    background: #000;
    /* Darker footer area */
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

footer {
    padding: 30px;
    text-align: center;
    background: #05070a;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 20px;
    }

    .nav-links {
        display: none;
    }

    /* Add mobile menu logic later if needed */

    .hamburger {
        display: block;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        padding: 30px;
        text-align: center;
    }

    .name {
        font-size: 2.5rem;
    }

    .about-grid,
    .contact-content,
    .grid-2-col {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) {
        text-align: left;
    }

    .timeline-dot {
        left: 22px !important;
        right: auto;
    }

    .timeline-date {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        display: block;
        margin-bottom: 5px;
        text-align: left !important;
    }
}