/* 
 * Modern Glassmorphism Portfolio - Pranav Mody
 * Redesigned 2025
 */

:root {
    /* Core Colors */
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --primary: #38bdf8;
    /* Sky blue */
    --secondary: #818cf8;
    /* Indigo */
    --accent: #f472b6;
    /* Pink */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    /* Glass Effects */
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: 12px;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-text: linear-gradient(to right, var(--primary), var(--accent));

    /* Spacing & Layout */
    --sidebar-width: 280px;
    --header-height: 70px;
    --container-width: 1200px;

    /* Transitions */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Code Block Styling */
pre,
code {
    font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

pre {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    color: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    overflow: auto;
    line-height: 1.5;
    font-size: 0.9rem;
    border: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
}

pre code {
    background: transparent;
    padding: 0;
    font-size: inherit;
    color: inherit;
    display: block;
}

code .kw {
    color: var(--secondary);
}

code .fn {
    color: var(--primary);
}

code .num {
    color: var(--accent);
}

code .str {
    color: #a5d6ff;
}

code .com {
    color: var(--text-muted);
    font-style: italic;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(244, 114, 182, 0.15) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utility Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-header {
    padding: 0 6rem;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
}

/* Sidebar Navigation */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    height: 100vh;
    padding: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.95);
    /* Less transparent for readability */
    backdrop-filter: blur(10px);
    transform: translateX(0);
    transform: translateX(0);
    transition: transform 0.3s var(--ease-out);
}

#mobile-menu-btn {
    display: none;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 3rem;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    padding: 3px;
    background: var(--gradient-primary);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.sidebar-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

#sidebar nav ul li {
    margin-bottom: 0.5rem;
}

#sidebar nav a {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

#sidebar nav a:hover,
#sidebar nav a.active {
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
}

.social-links {
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

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

/* Main Content Area */
main {
    margin-left: var(--sidebar-width);
    padding: 0;
    transition: margin-left 0.3s ease;
}

/* Hero Section */
#hero {
    position: relative;
    padding: 0 6rem;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

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

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
    border: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(56, 189, 248, 0.1);
}

/* Cards & Grids */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
    padding: 0 6rem;
}

/* Rearranged About Section */
.rearranged-about {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: start;
    padding: 0 6rem;
}

.about-left,
.about-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-image-large {
    width: 280px;
    height: 280px;
    margin: 0 auto;
    padding: 5px;
    border-radius: 50%;
    background: var(--gradient-primary);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
}

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

.connect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.connect-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    transition: all 0.3s;
    border: 1px solid var(--glass-border);
}

.connect-item:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary);
}

.connect-item i {
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.timeline {
    position: relative;
    padding: 0 6rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -7px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 6rem;
}

.project-card h3 {
    color: var(--primary);
}



/* Testimonial Carousel */
.testimonial-carousel-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 2rem;
}

.testimonial-slide {
    display: none;
    text-align: center;
    padding: 3rem !important;
    animation: fadeIn 0.5s ease-out;
}

.testimonial-slide.active {
    display: block;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.testimonial-slide p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-author h4 {
    color: var(--secondary);
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.control-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: var(--primary);
    color: white;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}



.cert-badges-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 2rem;
    padding: 0 6rem;
    margin-top: 2rem;
    overflow-x: auto;
}

.cert-badges-container>div {
    background: white;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-certifications-row {
    width: 100%;
    grid-column: 1 / -1;
}

.certifications-title {
    padding: 0 6rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.skills-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    position: relative;
}

.tab-btn.active {
    color: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    transition: all 0.3s;
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.skill-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    :root {
        --sidebar-width: 0px;
    }

    #sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    #sidebar.active {
        transform: translateX(0);
    }

    main {
        margin-left: 0;
    }

    .about-grid,
    .rearranged-about {
        grid-template-columns: 1fr;
        padding: 0 2rem;
    }

    .section-header,
    .cert-badges-container,
    .certifications-title {
        padding: 0 2rem;
    }

    .about-left,
    .about-right {
        width: 100%;
    }

    .timeline,
    .projects-grid {
        padding: 0 2rem;
    }

    .timeline::before {
        left: 2rem;
    }

    #mobile-menu-btn {
        display: flex;
        position: fixed;
        top: 1.5rem;
        position: fixed;
        top: 1.5rem;
        right: 1.5rem;
        z-index: 1001;
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        border: 1px solid var(--glass-border);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        color: white;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
    }

    #mobile-menu-btn span {
        width: 24px;
        height: 2px;
        background-color: var(--text-main);
        transition: all 0.3s ease;
    }

    #mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    #mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

/* Scroll to Top Button */
#scroll-top {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    background: var(--primary);
    color: var(--bg-dark);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s var(--ease-out);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

#scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

@media (max-width: 768px) {

    .section-header,
    .cert-badges-container,
    .certifications-title,
    .about-grid,
    .rearranged-about,
    .timeline,
    .projects-grid,
    #hero {
        padding: 0 1.5rem;
    }

    .timeline::before {
        left: 1.5rem;
    }

    .timeline-item {
        padding-left: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .connect-grid {
        grid-template-columns: 1fr;
    }

    /* Stack certifications vertically on mobile */
    .cert-badges-container {
        flex-direction: column;
        align-items: center;
        overflow-x: visible;
        /* Disable horizontal scroll */
        gap: 1.5rem;
    }

    /* Adjust card padding for mobile to save space */
    .card {
        padding: 1.5rem;
    }

    /* Ensure badges wrap properly and don't overflow */
    .badge-container {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s var(--ease-out) forwards;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-600 {
    animation-delay: 0.6s;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}