/* Custom CSS for Portfolio Website */

/* ===== BASE STYLES ===== */
:root {
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --secondary-gradient: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ===== NAVBAR FIXES ===== */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Ensure navbar dropdown is above everything */
.menu.dropdown-content {
    z-index: 1001 !important;
}

/* ===== HERO SECTION ===== */
.hero-image {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ===== EXPERIENCE TIMELINE ===== */
.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-gradient);
}

.timeline-content {
    background: transparent;
    padding: 20px;
    border-radius: 10px;
    position: relative;
}

.timeline-date {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Timeline connector line */
.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 10px;
    top: 20px;
    width: 2px;
    height: calc(100% + 20px);
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6, transparent);
}

/* ===== FORM VALIDATION STYLES ===== */
.form-message {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .navbar {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .timeline-marker {
        width: 16px;
        height: 16px;
    }

    .timeline-item:not(:last-child)::after {
        left: 8px;
    }
}

/* ===== DARK MODE ENHANCEMENTS ===== */
.dark .card {
    border: 1px solid #374151;
}

.dark .input-bordered,
.dark .textarea-bordered {
    border-color: #4b5563;
    background-color: #1f2937;
}

.dark .input-bordered:focus,
.dark .textarea-bordered:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* ===== ANIMATION DELAYS ===== */
[data-aos-delay="100"] {
    transition-delay: 100ms;
}

[data-aos-delay="200"] {
    transition-delay: 200ms;
}

[data-aos-delay="300"] {
    transition-delay: 300ms;
}

[data-aos-delay="400"] {
    transition-delay: 400ms;
}

[data-aos-delay="500"] {
    transition-delay: 500ms;
}

[data-aos-delay="600"] {
    transition-delay: 600ms;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
    border-radius: 5px;
}

.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

.dark ::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #1d4ed8, #7c3aed);
}

/* ===== LOADING ANIMATION ===== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== TYPED.JS CURSOR ===== */
.typed-cursor {
    font-size: 2rem;
    color: #3b82f6;
}

.dark .typed-cursor {
    color: #60a5fa;
}

/* ===== SECTION SPACING ===== */
section {
    scroll-margin-top: 80px;
}

/* ===== FLOATING BUTTONS ===== */
.floating-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.floating-button-telegram {
    animation: pulse-blue 2s infinite 1s;
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 136, 204, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 136, 204, 0);
    }
}

/* Floating buttons tooltip */
.floating-buttons-tooltip {
    pointer-events: none;
    transition: all 0.3s ease;
    transform: translateX(20px);
    opacity: 0;
}

.group:hover .floating-buttons-tooltip {
    transform: translateX(0);
    opacity: 1;
}

/* Mobile responsiveness for floating buttons */
@media (max-width: 640px) {
    .floating-buttons-container {
        bottom: 20px;
        right: 20px;
    }

    .floating-button,
    .floating-button-telegram {
        width: 50px;
        height: 50px;
    }

    .floating-buttons-tooltip {
        display: none;
    }
}