/* Variables */
:root {
    --primary-color: #00d4ff;
    /* Cyan/Quantum Blue */
    --secondary-color: #7000ff;
    /* Deep Purple */
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --card-bg: #1a1a1a;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: #fff;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.line {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px;
    transition: var(--transition);
}

.hamburger.toggle .line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.toggle .line:nth-child(2) {
    opacity: 0;
}

.hamburger.toggle .line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 5% 2rem;
    position: relative;
    background: radial-gradient(circle at top right, rgba(112, 0, 255, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(0, 212, 255, 0.1), transparent 40%);
}

.profile-img-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-color);
}

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

.name {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 2rem;
}

.bio-short {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--text-muted);
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

.primary-btn {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2);
}

.secondary-btn {
    background: transparent;
    border: 2px solid var(--text-muted);
    color: #fff;
}

.secondary-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    font-size: 1.5rem;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Sections General */
.section {
    padding: 6rem 5%;
}

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

/* About */
.about-content {
    display: flex;
    justify-content: center;
    text-align: center;
}

.about-text {
    max-width: 800px;
    font-size: 1.1rem;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.skill-list li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 20px;
}

.skill-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Experience & 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;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--bg-color);
    border: 3px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

.timeline-content {
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

.timeline-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

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

.org-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 5px;
    flex-shrink: 0;
}

.timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.timeline-content h4 {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.sm-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

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

.tags span {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
}

/* Achievements */
.achievements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.achievement-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.achievement-item .org-logo {
    width: 60px;
    height: 60px;
}

.org-name {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cert-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.cert-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.cert-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.cert-link:hover {
    text-decoration: underline;
}

/* Page Header */
.page-header {
    padding: 8rem 5% 4rem;
    text-align: center;
    background: radial-gradient(circle at center, rgba(112, 0, 255, 0.1), transparent 60%);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Contact */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
}

.contact-link:hover {
    background: var(--primary-color);
    color: #000;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: #000;
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer i {
    color: red;
}

/* Responsive */
@media (max-width: 1199px) {
    .name {
        font-size: 2.5rem;
    }

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

    .section {
        padding: 4rem 5%;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::before {
        content: " ";
        position: absolute;
        z-index: 1;
        top: 15px;
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--card-bg) transparent transparent;
    }

    .timeline-item:nth-child(odd) {
        text-align: left;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: 23px;
    }

    .achievements-list {
        grid-template-columns: 1fr;
    }

    .contact-details {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}