/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* User Custom Variables */
    --primary-color: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary-color: #6366f1;
    --accent-color: #facc15;
    --background-dark: #020617;
    --background-card: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --card-border: 1px solid rgba(255, 255, 255, 0.1);

    /* Mappings to internal system */
    --bg-primary: var(--background-dark);
    --bg-secondary: #0f172a;
    --card-bg: var(--background-card);
    --text-primary: var(--text-main);
    --text-secondary: var(--text-muted);
    --accent-gold: var(--accent-color);
    --accent-teal: var(--primary-color);
    --border-color: var(--card-border);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--text-main);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
    box-shadow: 0 0 10px var(--accent-color);
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 4px 14px 0 rgba(250, 204, 21, 0.39);
}

.btn-primary:hover {
    background: #eab308;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 204, 21, 0.23);
}

.btn-secondary {
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
    margin-left: 15px;
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.menu-icon {
    display: none;
    font-size: 1.8rem;
    color: var(--text-primary);
    cursor: pointer;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--font-heading);
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.3);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, #1e1b4b 0%, var(--background-dark) 60%);
    padding-top: 60px;
    /* Offset for fixed nav */
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 60px;
}

.hero-left-badge {
    flex-shrink: 0;
    animation: fadeIn 1.5s ease-out;
}

.side-badge {
    width: 250px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(250, 204, 21, 0.3));
    transition: transform 0.3s ease;
}

.side-badge:hover {
    transform: scale(1.05);
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: fadeIn 1.5s ease-out;
}

.hero-profile-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-gold);
    box-shadow: 0 0 30px rgba(250, 204, 21, 0.3);
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column-reverse;
        /* Text below image on mobile */
        text-align: center;
    }

    .hero-profile-img {
        width: 250px;
        height: 250px;
        margin-bottom: 20px;
    }
}

.greeting {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
    margin-left: 10px;
    font-family: var(--font-body);
}

.name {
    font-size: 4.5rem;
    line-height: 1.2;
    margin-bottom: 10px;
    padding-bottom: 10px;
    padding-right: 15px;
    background: -webkit-linear-gradient(#fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: normal;
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 700px;
}

/* About Me Section */
#about-me {
    background-color: var(--bg-primary);
}

.about-me-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-me-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-me-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    border: 3px solid var(--accent-gold);
    box-shadow: var(--card-shadow);
}

.about-me-content {
    flex: 1.5;
}

.section-title.left-aligned {
    text-align: left;
}

.section-title.left-aligned::after {
    margin: 15px 0 0;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.about-text .hashtags {
    color: var(--accent-color);
    font-weight: 500;
    margin-top: 2rem;
}

/* Skills Section */
#skills {
    background-color: var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.skill-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Lighter border */
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px -10px var(--primary-glow);
}

.skill-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-shadow: 0 0 15px var(--primary-glow);
}

.skill-card h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 15px;
}

.skill-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.skill-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.skill-logo-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

.skill-logos img {
    height: 50px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.skill-logos img:hover {
    transform: scale(1.1);
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 50px;
    animation: slideIn 0.5s ease-out;
}

.timeline-dot {
    position: absolute;
    left: -9px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 10px var(--accent-color);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: inline-block;
    font-weight: 600;
}

.timeline-content h3 {
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.timeline-content h4 {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-style: italic;
}

.timeline-content ul {
    list-style-type: none;
}

.timeline-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.timeline-content li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Achievements */
#achievements {
    background-color: var(--bg-secondary);
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 10px;
}

.carousel-btn:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.achievements-slider {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.achievement-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    display: none;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
    width: 100%;
}

.achievement-card.active {
    display: flex;
    animation: fadeInSlide 0.5s ease-in-out;
}

.image-card {
    padding: 0;
    overflow: hidden;
    height: 450px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
}

.certificate-img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.achievement-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.achievement-icon {
    font-size: 2rem;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.achievement-card p {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.4;
}

/* Education */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.education-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    box-shadow: var(--card-shadow);
}

.education-card h3 {
    font-size: 1.2rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.education-card h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 15px;
}

.edu-meta {
    font-weight: 600;
    color: var(--accent-color);
}

/* Contact */
.contact-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.contact-intro {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.contact-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    padding: 30px 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    font-size: 0.9rem;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .name {
        font-size: 2.8rem;
        padding-right: 0;
        white-space: normal;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .about-me-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .about-me-image img {
        max-width: 300px;
    }

    .section-title.left-aligned {
        text-align: center;
    }

    .section-title.left-aligned::after {
        margin: 15px auto 0;
    }

    .side-badge {
        width: 150px;
    }

    .hero-left-badge {
        margin-bottom: 10px;
    }

    .hero-content {
        margin: 0 auto;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-dot {
        left: 11px;
    }

    /* Wrap navigation elegantly on mobile */
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 5px 20px;
    }

    .menu-icon {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(2, 6, 23, 0.95);
        padding: 20px 0;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--card-shadow);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 10px 0;
        display: inline-block;
    }

    /* Force buttons side-by-side */
    .cta-group {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .btn-secondary {
        margin-left: 0;
    }

    /* Keep the slider responsive */
    .carousel-container {
        flex-direction: column;
        gap: 15px;
    }

    .carousel-btn {
        font-size: 2.2rem;
    }

    .image-card,
    .pdf-card {
        height: auto;
        min-height: 250px;
        padding: 10px;
    }

    .certificate-img {
        max-height: 300px;
    }
}