/* ===================================
   CSS Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2D63C5;
    --primary-dark: #1e4a9f;
    --secondary-color: #5B8DE8;
    --accent-color: #7BA3F0;
    --lavender-light: #E6E6FA;
    --lavender-medium: #D4D4F7;
    --blue-opacity: rgba(45, 99, 197, 0.5);

    /* Accent Colors - Solid */
    --accent-pink: #FBBACA;
    --accent-yellow: #F9E9B6;
    --accent-sky: #AFE5F8;
    --accent-teal: #83D1CE;

    /* Accent Colors - With Opacity */
    --accent-teal-opacity: rgba(131, 209, 206, 0.75);
    --accent-sky-opacity: rgba(175, 229, 248, 0.75);
    --accent-yellow-opacity: rgba(249, 233, 182, 0.75);
    --accent-pink-opacity: rgba(251, 186, 202, 0.75);

    --gradient-1: linear-gradient(135deg, #2D63C5 0%, #5B8DE8 100%);
    --gradient-2: linear-gradient(135deg, #7BA3F0 0%, #2D63C5 100%);
    --gradient-3: linear-gradient(135deg, #E6E6FA 0%, #5B8DE8 100%);
    --gradient-4: linear-gradient(135deg, #2D63C5 0%, #7BA3F0 100%);
    --gradient-5: linear-gradient(135deg, #5B8DE8 0%, #1e4a9f 100%);
    --gradient-hero: linear-gradient(135deg, #2D63C5 0%, #5B8DE8 50%, #7BA3F0 100%);
    --gradient-accent: linear-gradient(135deg, #FBBACA 0%, #F9E9B6 25%, #AFE5F8 75%, #83D1CE 100%);

    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #E6E6FA;
    --bg-dark: #1e1b4b;
    --bg-card: #ffffff;
    --border-color: #D4D4F7;
    --shadow-sm: 0 1px 3px rgba(45, 99, 197, 0.1);
    --shadow-md: 0 4px 6px rgba(45, 99, 197, 0.15);
    --shadow-lg: 0 10px 25px rgba(45, 99, 197, 0.2);
    --shadow-xl: 0 20px 40px rgba(45, 99, 197, 0.25);
    --shadow-colored: 0 10px 40px rgba(45, 99, 197, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(45, 99, 197, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(230, 230, 250, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(131, 209, 206, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, rgba(251, 186, 202, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(175, 229, 248, 0.12) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(230, 230, 250, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 rgba(45, 99, 197, 0.1);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(45, 99, 197, 0.15);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 3px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    position: relative;
    padding: 120px 20px 80px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-image-container {
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease;
}

.hero-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 10px rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
}

.hero-image:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4),
                0 0 0 15px rgba(255, 255, 255, 0.15);
}

.hero-name {
    font-size: 3rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.4s both;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.6s both;
    text-shadow: 1px 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.8s both;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.25);
    color: var(--bg-white);
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border-color: var(--bg-white);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 1s both;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.3rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 2px solid var(--bg-white);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover {
    color: var(--bg-white);
    transform: translateY(-8px) scale(1.1) rotate(360deg);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.5);
    border-color: transparent;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--bg-white);
    font-size: 2rem;
    text-decoration: none;
    opacity: 0.8;
}

/* ===================================
   Sections
   =================================== */
.section {
    padding: 80px 20px;
}

.section-alt {
    background: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.4);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* ===================================
   About Section
   =================================== */
.about-content {
    max-width: 900px;
    margin: 3rem auto 0;
}

.about-text {
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text .lead {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 500;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.highlight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.highlight-item:hover::before {
    transform: scaleX(1);
}

.highlight-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-colored);
    border-color: var(--primary-color);
}

.highlight-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Different accent colors for highlight items */
.highlight-item:nth-child(1) i {
    color: var(--accent-teal);
}

.highlight-item:nth-child(2) i {
    color: var(--accent-pink);
}

.highlight-item:nth-child(3) i {
    color: var(--accent-sky);
}

.highlight-item h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.highlight-item p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===================================
   Skills Section
   =================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

/* Different accent colors for each skill card */
.skill-card:nth-child(4n+1)::before {
    background: linear-gradient(135deg, var(--accent-teal-opacity) 0%, var(--accent-sky-opacity) 100%);
}

.skill-card:nth-child(4n+2)::before {
    background: linear-gradient(135deg, var(--accent-pink-opacity) 0%, var(--accent-yellow-opacity) 100%);
}

.skill-card:nth-child(4n+3)::before {
    background: linear-gradient(135deg, var(--accent-sky-opacity) 0%, var(--accent-teal-opacity) 100%);
}

.skill-card:nth-child(4n+4)::before {
    background: linear-gradient(135deg, var(--accent-yellow-opacity) 0%, var(--accent-pink-opacity) 100%);
}

.skill-card:hover::before {
    opacity: 0.15;
}

.skill-card > * {
    position: relative;
    z-index: 1;
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-colored);
    border-color: var(--primary-color);
}

.skill-icon {
    font-size: 3.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    transition: var(--transition);
    display: inline-block;
}

.skill-card:hover .skill-icon {
    transform: scale(1.2) rotate(10deg);
    animation: pulse 1s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1.2) rotate(10deg); }
    50% { transform: scale(1.25) rotate(10deg); }
}

.skill-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===================================
   Projects Section - Carousel Design
   =================================== */

/* Project Tabs */
.project-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem auto 2rem;
    position: relative;
    flex-wrap: wrap;
    max-width: 800px;
}

.project-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: 2px solid rgba(45, 99, 197, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.project-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.project-tab:hover::before {
    opacity: 0.1;
}

.project-tab.active::before {
    opacity: 1;
}

.project-tab .tab-number {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.project-tab.active .tab-number {
    -webkit-text-fill-color: white;
    transform: scale(1.1);
}

.project-tab .tab-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.project-tab.active .tab-name {
    color: white;
}

.project-tab:hover {
    border-color: rgba(45, 99, 197, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(45, 99, 197, 0.25);
}

/* Carousel Wrapper */
.project-carousel-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 60px;
}

.projects-carousel {
    overflow: hidden;
    border-radius: 24px;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-project-card {
    min-width: 100%;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    background: var(--bg-white);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(45, 99, 197, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    opacity: 0.5;
    pointer-events: none;
}

.modern-project-card.active {
    opacity: 1;
    pointer-events: all;
}

.modern-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 230, 250, 0.4) 0%, rgba(45, 99, 197, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.modern-project-card:hover::before {
    opacity: 1;
}

.modern-project-card.active:hover {
    border-color: rgba(45, 99, 197, 0.4);
    box-shadow: 0 20px 60px rgba(45, 99, 197, 0.2),
                0 0 0 1px rgba(45, 99, 197, 0.15);
    transform: translateY(-8px);
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 2px solid rgba(45, 99, 197, 0.25);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(45, 99, 197, 0.2);
}

.carousel-arrow:hover {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(45, 99, 197, 0.35);
}

.carousel-arrow-left {
    left: 0;
}

.carousel-arrow-right {
    right: 0;
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Progress Indicator */
.carousel-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.progress-current,
.progress-total {
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(45, 99, 197, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-1);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 25%;
}

/* Project Number */
.project-number {
    position: absolute;
    top: -15px;
    left: 30px;
    font-size: 6rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.08;
    z-index: 1;
    transition: all 0.5s ease;
    pointer-events: none;
}

.modern-project-card:hover .project-number {
    opacity: 0.15;
    transform: scale(1.1);
}

/* Project Visual */
.project-visual {
    position: relative;
    z-index: 2;
}

.project-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/10;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45, 99, 197, 0.5) 0%, rgba(230, 230, 250, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modern-project-card:hover .project-image-wrapper::after {
    opacity: 1;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-project-card:hover .project-image-wrapper img {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.modern-project-card:hover .image-overlay {
    opacity: 0.8;
}

/* Glow Effect */
.project-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(45, 99, 197, 0.35) 0%, transparent 70%);
    opacity: 0;
    filter: blur(40px);
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.modern-project-card:hover .project-glow {
    opacity: 1;
}

/* Project Details */
.project-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.project-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.modern-project-card:hover .project-title {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-type {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-type::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--gradient-1);
    display: block;
}

.project-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

/* Tech Stack */
.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech-badge {
    padding: 0.5rem 1rem;
    background: rgba(45, 99, 197, 0.1);
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(45, 99, 197, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    transition: left 0.4s ease;
    z-index: -1;
}

.tech-badge:hover::before {
    left: 0;
}

.tech-badge:hover {
    color: var(--bg-white);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(45, 99, 197, 0.35);
}

/* Different accent colors for tech badges in each project */
.modern-project-card:nth-child(1) .tech-badge {
    background: rgba(131, 209, 206, 0.15);
    border-color: var(--accent-teal);
}

.modern-project-card:nth-child(2) .tech-badge {
    background: rgba(251, 186, 202, 0.15);
    border-color: var(--accent-pink);
}

.modern-project-card:nth-child(3) .tech-badge {
    background: rgba(175, 229, 248, 0.15);
    border-color: var(--accent-sky);
}

.modern-project-card:nth-child(4) .tech-badge {
    background: rgba(249, 233, 182, 0.15);
    border-color: var(--accent-yellow);
}

/* Project Actions */
.project-actions {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 2rem;
    background: var(--gradient-1);
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(45, 99, 197, 0.35);
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-link:hover::before {
    opacity: 1;
}

.project-link span,
.project-link i {
    position: relative;
    z-index: 1;
}

.project-link i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-link:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(45, 99, 197, 0.45);
}

.project-link:hover i {
    transform: translateX(5px);
}

/* Stagger Animation */
.modern-project-card {
    opacity: 0;
    transform: translateY(50px);
    animation: slideInProject 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.modern-project-card:nth-child(1) { animation-delay: 0.1s; }
.modern-project-card:nth-child(2) { animation-delay: 0.2s; }
.modern-project-card:nth-child(3) { animation-delay: 0.3s; }
.modern-project-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInProject {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Experience Section
   =================================== */
.timeline {
    max-width: 900px;
    margin: 3rem auto;
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-1);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -42px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-1);
    border: 4px solid var(--bg-white);
    box-shadow: 0 0 0 4px rgba(45, 99, 197, 0.2), var(--shadow-md);
    animation: pulse-ring 2s ease-in-out infinite;
}

/* Different colors for timeline markers */
.timeline-item:nth-child(1) .timeline-marker {
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-sky) 100%);
}

.timeline-item:nth-child(2) .timeline-marker {
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-yellow) 100%);
}

@keyframes pulse-ring {
    0%, 100% { box-shadow: 0 0 0 4px rgba(45, 99, 197, 0.2), var(--shadow-md); }
    50% { box-shadow: 0 0 0 8px rgba(45, 99, 197, 0.1), var(--shadow-md); }
}

.timeline-content {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-1);
    transform: scaleY(0);
    transition: transform 0.5s ease;
}

.timeline-content:hover::before {
    transform: scaleY(1);
}

.timeline-content:hover {
    box-shadow: var(--shadow-colored);
    transform: translateX(10px);
    border-color: var(--primary-color);
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.timeline-content ul li::before {
    content: '\2022';
    color: var(--primary-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* ===================================
   Contact Section
   =================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-colored);
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(10deg);
}

.contact-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.contact-item p,
.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.social-links-contact {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-form {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: var(--shadow-colored);
    border: 2px solid rgba(139, 92, 246, 0.1);
    transition: var(--transition);
}

.contact-form:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    background: var(--gradient-1);
    color: var(--bg-white);
}

.contact-form .btn:hover {
    background: var(--gradient-2);
    transform: translateY(-3px);
    box-shadow: var(--shadow-colored);
}

.auto-reply-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
    font-size: 0.85rem;
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    padding: 0.6rem 1rem;
}

.auto-reply-note i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: var(--bg-white);
    text-align: center;
    padding: 2rem 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-1);
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.fade-in {
    animation: fadeInUp 1s ease;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 400px;
    }

    .nav-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .hero-name {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    /* Modern Project Cards - Tablet/Mobile */
    .project-tabs {
        gap: 0.5rem;
    }

    .project-tab {
        padding: 0.8rem 1rem;
        flex: 1;
        min-width: 120px;
    }

    .project-tab .tab-number {
        font-size: 1.2rem;
    }

    .project-tab .tab-name {
        font-size: 0.75rem;
    }

    .project-carousel-wrapper {
        padding: 0 50px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .modern-project-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .project-number {
        font-size: 4rem;
        top: -10px;
        left: 20px;
    }

    .project-title {
        font-size: 1.5rem;
    }

    .project-description {
        font-size: 0.95rem;
    }

    .progress-bar {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-image {
        width: 150px;
        height: 150px;
    }

    .section {
        padding: 60px 15px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    /* Modern Project Cards - Mobile */
    .project-tabs {
        gap: 0.4rem;
    }

    .project-tab {
        padding: 0.7rem 0.8rem;
        min-width: auto;
    }

    .project-tab .tab-number {
        font-size: 1rem;
    }

    .project-tab .tab-name {
        display: none;
    }

    .project-carousel-wrapper {
        padding: 0 40px;
    }

    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .modern-project-card {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .project-number {
        font-size: 3rem;
        top: -8px;
        left: 15px;
    }

    .project-title {
        font-size: 1.3rem;
    }

    .project-type {
        font-size: 0.75rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    .tech-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .project-link {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .progress-bar {
        width: 100px;
    }

    .progress-current,
    .progress-total {
        font-size: 1rem;
    }
}