:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #f59e0b;
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-card: rgba(26, 26, 46, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --border-color: rgba(139, 92, 246, 0.3);
    --glow-color: rgba(99, 102, 241, 0.5);
    --success-color: #10b981;
    --warning-color: #f59e0b;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.particle {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.particle:nth-child(1) {
    width: 20px;
    height: 20px;
    left: 10%;
    animation-duration: 25s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 15px;
    height: 15px;
    left: 20%;
    animation-duration: 18s;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 25px;
    height: 25px;
    left: 60%;
    animation-duration: 22s;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    width: 12px;
    height: 12px;
    left: 80%;
    animation-duration: 16s;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    width: 18px;
    height: 18px;
    left: 90%;
    animation-duration: 28s;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translateX(-10px) translateY(100vh) rotate(0deg);
    }

    100% {
        transform: translateX(10px) translateY(-100vh) rotate(360deg);
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    margin-bottom: 30px;
}

.loading-text {
    font-size: 4rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s ease-in-out infinite;
}

.loading-bar {
    width: 400px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: loading 3s ease-out forwards;
}

@keyframes loading {
    to {
        width: 100%;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Enhanced Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo img {
    height: 90px;
    border-radius: 50%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

.greeting {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.wave {
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {

    0%,
    50%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    40% {
        transform: rotate(-4deg);
    }
}

.hero-name {
    font-size: 4rem;
    font-weight: 800;
    margin: 1rem 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
    }

    to {
        filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.8));
    }
}

.hero-role {
    font-size: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
}

.typed-text {
    color: var(--primary-color);
    font-weight: 600;
}

.cursor {
    color: var(--accent-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 2rem 0;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    animation: slideInRight 1s ease-out;
}

.hero-image-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid rgba(99, 102, 241, 0.3);
    animation: float-image 6s ease-in-out infinite;
}

@keyframes float-image {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.image-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: conic-gradient(var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    border-radius: 50%;
    z-index: -1;
    animation: rotate 6s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes rotate {

    0%,
    100% {
        transform: translateY(0px) rotate(360deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.float-element {
    position: absolute;
    font-size: 2rem;
    animation: float-element 4s ease-in-out infinite;
    z-index: 100;
}

.float-element:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.float-element:nth-child(2) {
    top: 20%;
    right: 10%;
    animation-delay: 1s;
}

.float-element:nth-child(3) {
    bottom: 30%;
    left: 5%;
    animation-delay: 2s;
}

.float-element:nth-child(4) {
    bottom: 10%;
    right: 15%;
    animation-delay: 3s;
}

@keyframes float-element {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(5deg);
    }

    50% {
        transform: translateY(-20px) rotate(0deg);
    }

    75% {
        transform: translateY(-10px) rotate(-5deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    animation: bounce 2s infinite;
}

@keyframes bounce {

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

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

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

/* Enhanced Experience Section */
.experience-section {
    padding: 100px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.modern-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-card:hover::before {
    opacity: 1;
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.card-meta {
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.card-date {
    display: block;
    margin-bottom: 5px;
}

.card-location {
    display: block;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card-company {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.card-brief {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.card-expand-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.card-expand-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* Timeline Navigation */
.timeline-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.timeline-dial {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

.timeline-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid transparent;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.timeline-btn.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.timeline-connector {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 1px;
}

/* Experience Content */
.exp-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.exp-cards-container .modern-card {
    width: 100%;
    max-width: 600px;
}

.year-section {
    display: none;
}

.year-section.active {
    display: block;
}

/* Section Dividers */
.section-divider {
    padding: 2rem 0;
    display: flex;
    justify-content: center;
}

.divider-line {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 1px;
}

/* Projects Section Styles */
.projects-section {
    padding: 100px 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.projects-container {
    width: 100%;
}

/* Technology Navigation */
.tech-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tech-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    padding: 15px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    backdrop-filter: blur(20px);
}

.tech-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.tech-btn.active {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.tech-btn i {
    font-size: 1.2rem;
}

/* Technology Sections */
.tech-section {
    display: none;
}

.tech-section.active {
    display: block;
}

/* Concept Tabs */
.concept-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.concept-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

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

.concept-btn.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.project-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.project-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

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

.project-btn.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Projects Showcase */
.projects-showcase {
    width: 100%;
}

.concept-group {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.concept-group.active {
    display: grid;
}

/* Project Cards */
.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 630px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-header h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
}

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

.tech-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Project Demo Styles */
.project-demo {
    width: 100%;
    height: 425px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.project-demo iframe {
    width: 100%;
    height: 440px;
    border: none;
    background: white;
}

.placeholder-demo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    color: var(--text-secondary);
}

.placeholder-demo i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.placeholder-demo p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.placeholder-demo small {
    opacity: 0.7;
}

/* Code Preview Styles */
.code-preview {
    height: 100%;
    background: #1a1a2e;
    padding: 1rem;
    border-radius: 8px;
    overflow-y: auto;
}

.code-preview pre {
    margin: 0;
    color: #e1e1e1;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
}

.code-preview code {
    color: #e1e1e1;
}

/* Console Preview Styles */
.console-preview {
    height: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Courier New', monospace;
}

.console-header {
    background: #333;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #555;
}

.console-title {
    color: #fff;
    font-size: 0.8rem;
}

.console-body {
    padding: 1rem;
    color: #00ff00;
    font-size: 0.85rem;
    line-height: 1.4;
}

.console-body p {
    margin: 0.2rem 0;
    color: #00ff00;
}

.cursor-blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Project Links */
.project-links {
    display: flex;
    gap: 1rem;
    width: 40%;
    margin: auto;
}

.demo-link,
.code-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.demo-link {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    flex: 1;
    justify-content: center;
}

.demo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.code-link {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    flex: 1;
    justify-content: center;
}

.code-link:hover {
    color: var(--text-primary);
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.demo-link.disabled,
.code-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Updated Skills Section Styles with Carousel Effect */
.skills-section {
    padding: 100px 2rem;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

/* Skills Carousel Container */
.skills-carousel-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding: 30px 0;
}

/* Carousel Rows */
.skills-carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin: 20px 0;
    padding: 0.5rem 0;
}

/* Track for skills to move */
.skills-track {
    display: flex;
    gap: 15px;
    width: fit-content;

}

/* Animation for top carousel (right scroll) */
.skills-carousel-top .skills-track {
    animation: scrollRight 15s linear infinite;
}

/* Animation for bottom carousel (left scroll) */
.skills-carousel-bottom .skills-track {
    animation: scrollLeft 15s linear infinite;
}

/* Hover to pause animation */
.skills-carousel:hover .skills-track {
    animation-play-state: paused;
}

/* Individual skill cards */
.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card);
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: white;
    text-align: center;
    transform-origin: center;
    transition: all 0.3s ease;
    height: 160px;
    width: 160px;
    flex-shrink: 0;
    font-size: medium;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0;
    z-index: -1;
    border-radius: 16px;
    transition: opacity 0.3s ease;
}

.skill-card:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.skill-card:hover::before {
    opacity: 0.15;
}

.skill-logo {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-logo {
    transform: scale(1.1);
}

/* Scrolling animations */
@keyframes scrollRight {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Width of one set of skills (7 items × 165px each including gap) */
        transform: translateX(calc(-7 * 165px));
    }
}

@keyframes scrollLeft {
    0% {
        transform: translateX(calc(-7 * 165px));
    }

    100% {
        transform: translateX(0);
    }
}

/* Add glow effect on edges to create fade-in/fade-out effect */
.skills-carousel::before,
.skills-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.skills-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

.skills-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skill-card {
        height: 130px;
        width: 130px;
        padding: 15px;
    }

    .skill-logo {
        width: 50px;
        height: 50px;
    }

    @keyframes scrollRight {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-7 * 145px));
        }
    }

    @keyframes scrollLeft {
        0% {
            transform: translateX(calc(-7 * 145px));
        }

        100% {
            transform: translateX(0);
        }
    }
}

/* Footer Styles */
footer {
    background-color: var(--bg-secondary);
    padding: 40px 20px 20px;
    color: var(--text-secondary);
}

.content {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 2rem;
}

.description h2,
.links h2,
.contact h2 {
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.links {
    list-style: none;
}

.links li {
    margin-bottom: 10px;
}

.links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social li {
    list-style: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding-top: 5px;
}

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

.social img {
    width: 24px;
    height: 24px;
}

.ending {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Old overlay styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.flashcard {
    background-color: #160649;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 90vw;
    max-width: 900px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.flashcard h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.flashcard strong {
    font-weight: 450;
    margin-left: 35px;
    margin-bottom: 20px;
    display: block;
    color: var(--text-secondary);
}

.flashcard p {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.flashcard img {
    float: right;
    width: 200px;
    height: 200px;
    border-radius: 10px;
}

.flashcard-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.flash-text {
    flex: 1;
}

.flash-image {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    height: 70vh;
}

.flash-image a {
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 10px;
    font-weight: 500;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .nav-menu {
        display: none;
    }

    .exp-cards-container {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Fix for missing old section styles */
.thirdSection {
    max-width: 80vw;
    margin: auto;
    padding: 80px 0;
}

.thirdSection h1 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.certificates {
    display: flex;
    position: relative;
    width: 100%;
    height: 30vw;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.certificates img {
    position: absolute;
    height: 100%;
    transition: transform 0.5s ease, opacity 0.5s ease, z-index 0.5s ease;
}

.scrollH {
    display: flex;
    justify-content: center;
    align-items: center;
}

.prev,
.next {
    position: relative;
    width: 40px;
    height: 40px;
    background-color: rgba(72, 39, 102, 0.533);
    border-radius: 20px;
    border-width: 0px;
    margin: 35px 20px 20px;
    color: rgb(205, 152, 255);
    font-size: 20px;
    padding: 6.5px;
    font-family: 'Poppins';
    cursor: pointer;
}

.prev:hover,
.next:hover {
    box-shadow: 0px 0px 15px white;
}

.fourthSection {
    max-width: 80vw;
    margin: auto;
    padding: 80px 0;
}

.fourthSection h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.education {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.college,
.school {
    width: 70vw;
    height: 170px;
    background-color: rgb(28 10 126 / 30%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    margin: 20px;
    padding: 20px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    box-shadow: 0 0 20px 0 rgb(255, 255, 255);
    overflow: hidden;
    transition: all 0.8s ease;
    opacity: 0;
    transform: translateY(100px) scale(0.8);
}

.college.show,
.school.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.college img,
.school img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    background-color: white;
    margin: 15px;
}

.edu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    height: 75px;
    padding-left: 10px;
}

.college .heading,
.school .heading {
    font-size: 1.8rem;
    font-weight: bold;
}

.college .degree,
.school .degree {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* --- Enhanced Projects Showcase Section --- */
.projects-showcase-enhanced {
    padding: 100px 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Projects Grid Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Individual Project Card */
.project-grid-card {
    position: relative;
    background: transparent;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    perspective: 1500px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project-grid-card {
    perspective: 1200px;
}

.project-grid-card:hover {
    z-index: 10;
}

/* Project Image Container */
.project-image-container {
    width: 100%;
    height: 235px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px 20px 0 0;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.project-grid-card:hover .project-image-container {
    /* height: 380px; */
    transform: scale(1.1) translateY(10px);
    box-shadow: 0 25px 60px rgba(99, 102, 241, 0.5);
    border-color: var(--primary-color);
    border-radius: 20px;
}

.project-image-container img{
    width: 100%;
    /* height: 100%; */
    border: none;
    pointer-events: none;
}

/* Placeholder for projects without iframes */
.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    position: relative;
}

.project-label {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    opacity: 0.9;
}

/* Project Info Section */
.project-info {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0px 0px 20px 20px;
    padding: 1.5rem;

    transform-style: preserve-3d;
    transform-origin: top center;

    transition:
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-radius 0.3s ease,
        opacity 0.3s ease;

    will-change: transform, opacity;
}

.project-grid-card:hover .project-info {
    border-radius: 20px;

    transform:
        translateY(25px) rotateX(15deg) scale(0.9) translateZ(-10px);
}

.project-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* External Link Icon */
.external-link-icon {
    position: absolute;
    top: 10px;
    right: 2px;
    width: 55px;
    height: 55px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0) rotate(-90deg);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 20;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.project-grid-card:hover .external-link-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.external-link-icon i {
    font-size: 1.3rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.external-link-icon.disabled {
    background: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    backdrop-filter: blur(10px);
}

.external-link-icon.disabled i {
    color: var(--text-secondary);
}

.external-link-icon:not(.disabled):hover {
    background: var(--primary-color);
    transform: scale(1.15) rotate(0deg);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.external-link-icon:not(.disabled):hover i {
    color: white;
    transform: scale(1.1);
}

/* GitHub CTA Button */
.github-cta {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.github-btn {
    font-size: 1.1rem;
    padding: 18px 40px;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

.github-btn:hover {
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.6);
}


/* Responsive Design */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .project-grid-card:hover .project-image-container {
        height: 350px;
        transform: scale(1.08);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-grid-card {
        perspective: 1000px;
    }

    .project-grid-card:hover .project-image-container {
        height: 320px;
        transform: scale(1.05);
    }

    .project-image-container {
        height: 250px;
    }

    .placeholder-image i {
        font-size: 4rem;
    }

    .project-grid-card:hover .placeholder-image i {
        font-size: 5rem;
    }

    .project-label {
        font-size: 1.2rem;
    }
}