/* ===================================
   Global Styles & Variables
   =================================== */
:root {
    /* Colors - Modern Tech Theme */
    --primary-color: #f0f0f0; /* Very light gray */
    --primary-dark: #cccccc; /* Darker light gray */
    --primary-light: #ffffff; /* Pure white */
    --secondary-color: #f59e0b; /* Changed to caramel/orange */
    --accent-color: #f59e0b; /* Retain orange */
    --accent-purple: #f9b45b; /* Changed to lighter caramel */
    --accent-cyan: #f0f0f0; /* Very light gray */
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-light: #94a3b8;
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-light: #1a1a1a;
    --bg-card: rgba(10, 10, 10, 0.5);
    --white: #ffffff;
    --black: #000000;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); /* Light gray to caramel */
    --gradient-secondary: linear-gradient(135deg, var(--accent-color) 0%, #ef4444 100%); /* Retain orange to red */
    --gradient-purple: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-purple) 100%); /* Caramel gradient */
    --gradient-cyan: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-light) 100%); /* White gradient */
    --gradient-dark: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-light) 100%);
    --gradient-card: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(255, 255, 255, 0.1) 100%); /* Caramel alpha to white alpha */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(255, 255, 255, 0.5); /* White glow */
    --shadow-glow-purple: 0 0 30px rgba(245, 158, 11, 0.5); /* Changed to caramel glow */
    --shadow-glow-orange: 0 0 30px rgba(245, 158, 11, 0.5);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Code Rain Container */
.code-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
}

.code-rain canvas {
    width: 100%;
    height: 100%;
}

/* ===================================
   Container
   =================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

/* ===================================
   Background Animation
   =================================== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

#particleCanvas {
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all var(--transition-base);
    padding: var(--spacing-md) 0 !important;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.3) !important;
}

.navbar .container {
    background: transparent !important;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
    text-decoration: none;
    transition: color var(--transition-base);
}

.logo .dot {
    color: var(--primary-color);
}

.navbar-nav {
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all var(--transition-base);
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-md);
    background: transparent !important;
    border: none !important;
    outline: none !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
    box-shadow: 0 0 10px var(--primary-color);
    border-radius: var(--radius-full);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-color) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    outline: none !important;
    box-shadow: none !important;
}

.nav-link:hover::after {
    width: 70%;
}

.nav-link.active,
.nav-link.active:focus,
.nav-link.show {
    color: var(--primary-color) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    outline: none !important;
    box-shadow: none !important;
}

.nav-link.active::after,
.nav-link.active:focus::after {
    width: 70%;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    margin: 5px 0;
}

.navbar-toggler[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.navbar-toggler[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

.navbar-collapse {
    background: rgba(10, 14, 39, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 992px) {
    .navbar-collapse {
        background: transparent !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        margin-top: 0;
        padding: 0;
        border: none;
        border-radius: 0;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem !important;
    }
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: var(--spacing-xl);
    z-index: 1;
}

.hero-content {
    min-height: calc(100vh - 180px);
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

.hero-title .greeting {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.hero-title .name {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.hero-title .role {
    display: block;
    font-size: 0.6em;
    font-weight: 400;
    color: var(--primary-color);
    margin-top: var(--spacing-xs);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.hero-buttons {
    margin-bottom: var(--spacing-lg);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-glow);
    border: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-color) 100%);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-light);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    color: var(--primary-color);
    transition: all var(--transition-base);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: var(--gradient-purple);
    border-color: var(--accent-purple);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-purple);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 1;
    border-radius: var(--radius-xl); /* Moved from .profile-image */
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-xl);
    border: 3px solid var(--primary-color);
    position: relative;
    z-index: 2;
    background: var(--gradient-card);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
    aspect-ratio: 1;
}



.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 105%;
    height: 105%;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    opacity: 0.4;
    filter: blur(30px);
    z-index: 1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-light);
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-full);
    position: relative;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

@media (max-width: 992px) {
    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: var(--spacing-lg);
    }
    
    .hero-content {
        min-height: auto;
    }
    
    .image-wrapper {
        max-width: 300px;
        margin: var(--spacing-lg) auto 0;
    }
}

/* ===================================
   Section Styles
   =================================== */
section {
    position: relative;
    padding: var(--spacing-xl) 0;
    z-index: 1;
}

.section-header {
    margin-bottom: var(--spacing-xl);
}

.section-tag {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    border: none;
    box-shadow: var(--shadow-glow);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

/* ===================================
   About Section
   =================================== */
.about {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 50%), radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.about-content {
    position: relative;
    z-index: 1;
}

.about-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.about-stats {
    margin-top: var(--spacing-lg);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-sm);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.stat-item > * {
    position: relative;
    z-index: 1;
}

.stat-number-wrapper {
    display: flex;
    justify-content: center;
    align-items: baseline;
    line-height: 1;
}

.stat-number {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.stat-suffix {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    margin-left: 0.1em;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
}

.image-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.about-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
}

.card-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    opacity: 0.3;
    filter: blur(40px);
    animation: pulse 4s ease-in-out infinite;
}


/* ===================================
   Skills Section
   =================================== */
.skills {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.skills-grid {
    position: relative;
    z-index: 1;
}

.skill-card {
    padding: var(--spacing-md);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-card);
    transition: left 0.5s ease;
    z-index: 0;
}

.skill-card:hover::before {
    left: 0;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.skill-card > * {
    position: relative;
    z-index: 1;
}

.skill-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: var(--white);
    margin-bottom: var(--spacing-md);
    border: none;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.skill-name {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--spacing-xs);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    width: 0;
    transition: width 1s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-percent {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

/* ===================================
   Portfolio Section
   =================================== */
.portfolio {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 50% 100%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.portfolio-filter-btn { /* New class for filter buttons */
    padding: var(--spacing-xs) var(--spacing-lg);
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    z-index: 1; /* Ensure text is above ::before */
}

.portfolio-filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gradient-primary);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1; /* Behind button text */
}

.portfolio-filter-btn:hover::before,
.portfolio-filter-btn.active::before {
    width: 300px;
    height: 300px;
}

.portfolio-filter-btn:hover,
.portfolio-filter-btn.active {
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-glow);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* Added text-shadow for glow effect */
}

/* Portfolio Card Styling */
.portfolio-grid .card { /* Target Bootstrap card within portfolio grid */
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg); /* Override Bootstrap default */
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.portfolio-grid .card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.portfolio-grid .card-img-top {
    height: 250px; /* Keep consistent image height */
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-slow);
    background: var(--gradient-card);
}

.portfolio-grid .card:hover .card-img-top {
    transform: scale(1.1);
}

.portfolio-grid .card-title {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white); /* Ensure title color is white */
    margin-bottom: var(--spacing-xs);
}

/* Portfolio Item Display */
.portfolio-item {
    transition: all var(--transition-base); /* For fade-in/out effect */
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    /* display: none !important; - Removed for smoother transitions */
}

/* Custom overlay for portfolio card titles and modern effects */
.portfolio-grid .card-img-overlay {
    background: rgba(0, 0, 0, 0.6); /* Default dark overlay for titles */
    opacity: 0; /* Overlay hidden by default */
    transition: opacity var(--transition-base); /* Smooth transition for overlay */
}

.portfolio-grid .card:hover .card-img-overlay {
    opacity: 1; /* Overlay becomes fully visible on card hover */
}

.portfolio-grid .card-img-overlay .card-title {
    transform: translateY(20px); /* Title starts slightly below center */
    opacity: 0; /* Title hidden by default */
    transition: all var(--transition-base); /* Smooth transition for title */
}

.portfolio-grid .card:hover .card-img-overlay .card-title {
    transform: translateY(0); /* Title moves to center */
    opacity: 1; /* Title becomes visible on card hover */
}

/* ===================================
   Experience Section
   =================================== */
.experience {
    background: var(--bg-primary);
}

.experience-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gradient-primary);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-2xl);
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--gradient-primary);
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.timeline-content {
    width: 45%;
    padding: var(--spacing-lg);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.timeline-content:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.timeline-date {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--gradient-purple);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    border: none;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.timeline-title {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.timeline-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.tag {
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
    transition: all var(--transition-base);
}

.tag:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-light);
    box-shadow: 0 0 rgba(255, 255, 255, 0.3);
}

@media (max-width: 968px) {
    .experience-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 60px;
    }
}

/* ===================================
   Certificates Section
   =================================== */
.certificates {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.certificates::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.certificates-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.certificate-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-sm);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    align-items: center;
}

.certificate-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-card);
    transition: left 0.5s ease;
    z-index: 0;
}

.certificate-item:hover::before {
    left: 0;
}

.certificate-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.certificate-item > * {
    position: relative;
    z-index: 1;
}

.certificate-image-wrapper {
    position: relative;
    width: 150px;
    height: 100px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-base);
}

.certificate-item:hover .certificate-image-wrapper {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.certificate-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-slow);
    background: var(--gradient-card);
}

.certificate-item:hover .certificate-thumbnail {
    transform: scale(1.1);
}

.certificate-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
    color: var(--white);
}

.certificate-image-wrapper:hover .certificate-image-overlay {
    opacity: 1;
}

.certificate-image-overlay svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.certificate-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) 0;
}

.certificate-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-xs);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.certificate-subtitle {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 0 rgba(255, 255, 255, 0.3);
}

.certificate-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.certificate-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--gradient-purple);
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    width: fit-content;
}

@media (max-width: 768px) {
    .certificate-item {
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm);
    }
    
    .certificate-image-wrapper {
        width: 100%;
        height: 180px;
    }
    
    .certificate-item:hover {
        transform: translateY(-3px);
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
}

/* ===================================
   Certificate Modal
   =================================== */
.certificate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    padding: var(--spacing-md);
}

.certificate-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    padding: 0;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-base);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), var(--shadow-glow);
    display: flex;
    flex-direction: column;
}

.certificate-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: var(--radius-full);
    color: #ef4444;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.4);
    border-color: #ef4444;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
}

.modal-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal-image-container {
    width: 100%;
    max-height: 75vh;
    overflow: auto;
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.modal-image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition-slow);
}

.modal-image-container:hover .modal-image {
    transform: scale(1.02);
}

.modal-info {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-height: 30vh;
    overflow-y: auto;
}

.modal-title {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    text-shadow: 0 0 rgba(255, 255, 255, 0.3);
}

.modal-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    text-align: left;
}

.modal-description p {
    margin-bottom: var(--spacing-md);
}

.modal-details {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    text-align: left;
    padding: var(--spacing-sm);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
}

.modal-details p {
    margin: 0;
}

.modal-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-purple);
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Custom scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: var(--radius-full);
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-cyan);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .modal-image-container {
        max-height: 60vh;
        padding: var(--spacing-sm);
    }
    
    .modal-image {
        max-height: 55vh;
    }
    
    .modal-info {
        padding: var(--spacing-md);
        max-height: 35vh;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-subtitle {
        font-size: 0.85rem;
    }
    
    .modal-description {
        font-size: 0.85rem;
    }
    
    .modal-details {
        font-size: 0.8rem;
    }
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.contact-content {
    position: relative;
    z-index: 1;
}

.contact-title {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.contact-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: var(--white);
    flex-shrink: 0;
    border: none;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.contact-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.contact-value {
    font-size: 1rem;
    color: var(--white);
    font-weight: 600;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    color: var(--white);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2), var(--shadow-glow);
    background: rgba(30, 41, 59, 0.8);
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}


/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--spacing-lg) 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.5;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ===================================
   Utility Classes
   =================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }


/* ===================================
   Chatbot Section
   =================================== */
.chatbot {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.chatbot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px; /* veya istedi�iniz bir y�kseklik */
    box-shadow: var(--shadow-lg);
}

.chat-window {
    flex-grow: 1;
    padding: var(--spacing-lg);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Custom scrollbar for chat window */
.chat-window::-webkit-scrollbar {
    width: 8px;
}

.chat-window::-webkit-scrollbar-track {
    background: var(--bg-card);
}

.chat-window::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.chat-message {
    display: flex;
    max-width: 80%;
}

.chat-message-content {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    line-height: 1.5;
}

.chat-message p {
    margin: 0;
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.bot .chat-message-content {
    background: var(--bg-light);
    color: var(--text-secondary);
    border-top-left-radius: 0;
}

.chat-message.user {
    align-self: flex-end;
}

.chat-message.user .chat-message-content {
    background: var(--gradient-primary);
    color: var(--white);
    border-top-right-radius: 0;
}

.chat-input-area {
    display: flex;
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-input-area .form-input {
    flex-grow: 1;
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.chat-input-area .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* ===================================
   Assistant Button (Navbar)
   =================================== */
.assistant-btn-item {
    margin-right: var(--spacing-sm); /* Adjusted from margin-left */
}

@media (max-width: 991px) {
    .assistant-btn-item {
        margin-right: 0;
        width: fit-content;
    }
}

.assistant-btn {
    /* Reset to default nav-link style */
    background: transparent !important;
    box-shadow: none !important;
    
    /* Make it slightly bigger */
    transform: scale(1.1);
    
    /* Make text and icon use the gradient */
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Apply gradient to the button text */
.assistant-btn span {
    background: linear-gradient(135deg, #4285F4, #9f55ff, #00D8FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600; /* Make it pop a bit */
}

.assistant-btn:hover {
    transform: scale(1.15); /* Slightly larger on hover */
    background: rgba(255, 255, 255, 0.1) !important;
}

.assistant-btn .robot-icon {
    width: 32px; /* Slightly larger icon */
    height: 32px;
    transition: transform 0.3s ease;
}

/* Robot Icon Animations */
.robot-icon .robot-arm-waving {
    transform-origin: 7px 10px; /* Set rotation point to new shoulder */
    animation: wave-up 1.8s ease-in-out infinite;
}

.assistant-btn:hover .robot-icon {
    transform: rotate(-8deg);
}

/* Waving UP animation */
@keyframes wave-up {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(40deg);
    }
}

/* Blinking eyes */
.robot-icon .robot-eye {
    animation: blink 3s linear infinite;
    transform-origin: center;
}

@keyframes blink {
    0%, 90%, 100% {
        transform: scaleY(1);
    }
    95% {
        transform: scaleY(0.1);
    }
}


.assistant-btn-item {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

/* ===================================
   Scroll Buttons (Right Bottom)
   =================================== */
.scroll-to-top, .scroll-to-assistant {
    position: fixed;
    right: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top {
    bottom: 90px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.5);
}

.scroll-to-assistant {
    bottom: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-md);
}

.assistant-scroll-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.assistant-scroll-content span {
    position: absolute;
    bottom: 120%; /* Position the label above the button */
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-light);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    /* Initially hidden */
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: all 0.3s ease;
}

.scroll-to-assistant:hover .assistant-scroll-content span {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* Hover effects */
.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.7);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-color) 100%);
}

.scroll-to-assistant:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Make animations work for the scroll button icon too */
.scroll-to-assistant .robot-icon .robot-arm-waving {
    transform-origin: 7px 10px;
    animation: wave-up 1.8s ease-in-out infinite;
}

.scroll-to-assistant .robot-icon .robot-eye {
    animation: blink 3s linear infinite;
    transform-origin: center;
}

/* ===================================
   Toast Notification (Modal Style)
   =================================== */
.toast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.toast-overlay.show {
    opacity: 1;
    visibility: visible;
}

.toast-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 250px;
    height: 250px;
    background: var(--bg-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.toast-notification.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.toast-notification .checkmark-wrapper {
    width: 80px;
    height: 80px;
}

.toast-notification .checkmark {
    stroke: #4CAF50;
    stroke-width: 3;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    fill: none;
    animation: draw-check 0.8s 0.3s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

@keyframes draw-check {
    to {
        stroke-dashoffset: 0;
    }
}/* ===================================
   Chatbot Konuşma Balonu (Eksik Kısım)
   =================================== */

/* Robotun ve balonun kapsayıcısı */
.robot-container {
    position: relative; /* Balonun buna göre hizalanmasını sağlar */
    display: inline-flex; /* İçeriği sarması için */
    overflow: visible; /* Balonun dışarı taşmasına izin ver */
}

/* Konuşma Balonunun Kendisi */
.speech-bubble {
    position: absolute;
    top: -8px;  /* Robotun biraz üstüne */
    right: -18px; /* Robotun biraz sağına */
    background: #ef4444; /* Kırmızı renk (dikkat çekici) */
    /* Alternatif Gradient istersen üstteki satırı silip bunu açabilirsin:
    background: var(--gradient-primary); 
    */
color: #ffffff !important; 
padding: 2px 6px;
    border-radius: 8px;
    border-bottom-left-radius: 2px; /* Konuşma balonu şekli için sol alt köşe sivri */
    font-size: 10px;
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    z-index: 20;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    pointer-events: none; /* Tıklamayı engellemesin */
    
    /* Animasyon Başlangıç Değerleri */
    opacity: 0;
    transform: scale(0.5) translateY(5px);
    transform-origin: bottom left; /* Büyüme noktası robotun kafasına yakın olsun */
    animation: bubble-pop-sequence 4s ease-in-out infinite;
}

/* Balonun altındaki küçük üçgen kuyruk */
.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 0;
    border: 4px solid transparent;
    border-top-color: #ef4444; /* Balon rengiyle aynı olmalı */
    border-bottom: 0;
    margin-left: 3px;
}

/* Animasyon Döngüsü */
@keyframes bubble-pop-sequence {
    0%, 5% {
        opacity: 0;
        transform: scale(0.5) translateY(5px);
    }
    10%, 90% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) translateY(5px);
    }
}


