/* Header Section */
#header {
    padding-top: 100px;
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,77,109,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    background-size: cover, 40px 40px;
    background-position: center, 0 0;
    position: relative;
    overflow: hidden;
}

#header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 77, 109, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 143, 163, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255, 77, 109, 0.03) 0%, rgba(255, 143, 163, 0.02) 100%);
    animation: gradientShift 8s ease infinite;
    z-index: 0;
}

#header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 77, 109, 0.02) 2px, rgba(255, 77, 109, 0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 143, 163, 0.015) 2px, rgba(255, 143, 163, 0.015) 4px);
    opacity: 0.4;
    z-index: 0;
}

.logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    transition: var(--transition);
    animation: float 4s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.2);
}

.logo:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.4);
}

/* Header Content Container */
.header-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 100px 20px;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header Text */
.header-text {
    position: relative;
    text-align: left;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

/* Hero Main Greeting */
.hero-greeting {
    margin-bottom: 10px;
}

.hero-main-text {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: var(--text-primary);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

.hero-name-text {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 10px 0 0 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

.name-highlight {
    display: inline-block;
    position: relative;
}

.name-yellow {
    color: #FFD43B;
    text-shadow: 0 0 20px rgba(255, 212, 59, 0.5);
    position: relative;
}

.name-yellow::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #FFD43B 0%, transparent 100%);
    border-radius: 2px;
    animation: snakeMove 3s ease-in-out infinite;
}

.name-green {
    color: #4B8B3B;
    text-shadow: 0 0 20px rgba(75, 139, 59, 0.5);
    position: relative;
    margin-left: 8px;
    white-space: nowrap;
}

.name-green::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4B8B3B 0%, transparent 100%);
    border-radius: 2px;
    animation: snakeMove 3s ease-in-out infinite 0.5s;
}

.snake-decoration {
    display: inline-block;
    margin-left: 8px;
    font-size: 2rem;
    animation: snakeFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 212, 59, 0.6));
}

@keyframes snakeMove {

    0%,
    100% {
        transform: scaleX(1);
        opacity: 0.8;
    }

    50% {
        transform: scaleX(1.2);
        opacity: 1;
    }
}

@keyframes snakeFloat {

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

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

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

/* Hero Dynamic Text */
.hero-dynamic-text {
    min-height: 50px;
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.dynamic-text-wrapper {
    display: inline-block;
    position: relative;
}

.dynamic-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-block;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateX(0);
}

/* Hero Description */
.hero-description {
    margin: 20px 0;
}

.hero-description p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

/* Header Button */
.header-text .btn {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.9s;
    background: var(--gradient);
    border: none;
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 10px 20px -5px rgba(255, 77, 109, 0.3);
    display: inline-block;
    margin-top: 10px;
    width: fit-content;
}

.header-text .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(255, 77, 109, 0.4);
}

/* Navigation Styles */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

#navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 15px 0;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 80%;
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1001;
}

/* Header Visuals - Tech Icons */
.header-visuals {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.tech-visual-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-visual-item {
    position: absolute;
    width: 140px;
    height: 140px;
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-color);
    transition: var(--transition);
    animation: floatVisual 6s ease-in-out infinite;
    cursor: pointer;
    overflow: visible;
}

.tech-visual-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.visual-glow {
    position: absolute;
    inset: -2px;
    background: var(--gradient);
    border-radius: 0;
    opacity: 0;
    filter: blur(20px);
    transition: var(--transition);
    z-index: -2;
}

/* Python - Blue/Yellow colors - Default hover state */
.python-visual {
    color: #3776ab;
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 15px 40px rgba(55, 118, 171, 0.25);
}

.python-visual::before {
    background: linear-gradient(135deg, rgba(55, 118, 171, 0.15) 0%, rgba(255, 211, 0, 0.1) 100%);
    opacity: 1;
}

.python-visual .visual-glow {
    background: linear-gradient(135deg, rgba(55, 118, 171, 0.3) 0%, rgba(255, 211, 0, 0.2) 100%);
    opacity: 0.3;
}

/* Reset Python when hovering other icons */
.tech-visual-container:has(.django-visual:hover) .python-visual:not(:hover),
.tech-visual-container:has(.flutter-visual:hover) .python-visual:not(:hover),
.tech-visual-container:has(.api-visual:hover) .python-visual:not(:hover) {
    transform: translateY(0) scale(1);
    box-shadow: none;
}

.tech-visual-container:has(.django-visual:hover) .python-visual:not(:hover)::before,
.tech-visual-container:has(.flutter-visual:hover) .python-visual:not(:hover)::before,
.tech-visual-container:has(.api-visual:hover) .python-visual:not(:hover)::before {
    opacity: 0;
}

.tech-visual-container:has(.django-visual:hover) .python-visual:not(:hover) .visual-glow,
.tech-visual-container:has(.flutter-visual:hover) .python-visual:not(:hover) .visual-glow,
.tech-visual-container:has(.api-visual:hover) .python-visual:not(:hover) .visual-glow {
    opacity: 0;
}

.python-visual:hover {
    transform: translateY(-12px) scale(1.15);
    box-shadow: 0 18px 45px rgba(55, 118, 171, 0.35);
}

.python-visual:hover::before {
    background: linear-gradient(135deg, rgba(55, 118, 171, 0.2) 0%, rgba(255, 211, 0, 0.15) 100%);
    opacity: 1;
}

.python-visual:hover .visual-glow {
    background: linear-gradient(135deg, rgba(55, 118, 171, 0.4) 0%, rgba(255, 211, 0, 0.3) 100%);
    opacity: 0.4;
}

/* Django - Green colors */
.django-visual {
    color: #092e20;
}

.django-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(9, 46, 32, 0.2));
}

.django-visual:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 15px 40px rgba(9, 46, 32, 0.25);
}

.django-visual:hover::before {
    background: linear-gradient(135deg, rgba(9, 46, 32, 0.15) 0%, rgba(44, 160, 44, 0.1) 100%);
    opacity: 1;
}

.django-visual:hover .visual-glow {
    background: linear-gradient(135deg, rgba(9, 46, 32, 0.3) 0%, rgba(44, 160, 44, 0.2) 100%);
    opacity: 0.3;
}

.django-visual:hover .django-image {
    transform: scale(1.1);
    filter: drop-shadow(0 8px 16px rgba(9, 46, 32, 0.4)) brightness(1.1);
}

/* Flutter - Blue colors */
.flutter-visual {
    color: #02569b;
}

.flutter-visual:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 15px 40px rgba(2, 86, 155, 0.25);
}

.flutter-visual:hover::before {
    background: linear-gradient(135deg, rgba(2, 86, 155, 0.15) 0%, rgba(97, 202, 250, 0.1) 100%);
    opacity: 1;
}

.flutter-visual:hover .visual-glow {
    background: linear-gradient(135deg, rgba(2, 86, 155, 0.3) 0%, rgba(97, 202, 250, 0.2) 100%);
    opacity: 0.3;
}

/* API - Purple/Blue colors */
.api-visual {
    color: #6c5ce7;
}

.api-visual:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.25);
}

.api-visual:hover::before {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15) 0%, rgba(116, 185, 255, 0.1) 100%);
    opacity: 1;
}

.api-visual:hover .visual-glow {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.3) 0%, rgba(116, 185, 255, 0.2) 100%);
    opacity: 0.3;
}

/* Individual Tech Visual Positioning */
.python-visual {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.django-visual {
    top: 10%;
    right: 10%;
    animation-delay: 1s;
}

.flutter-visual {
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
}

.api-visual {
    bottom: 20%;
    right: 15%;
    animation-delay: 1.5s;
}

/* Animations */
@keyframes floatVisual {

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

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Responsive Design */
@media only screen and (max-width: 1024px) {
    .header-content {
        gap: 50px;
        padding: 80px 20px;
    }

    .hero-main-text {
        font-size: 2.8rem;
    }

    .hero-name-text {
        font-size: 2rem;
    }

    .dynamic-text {
        font-size: 1.3rem;
    }

    .tech-visual-container {
        max-width: 400px;
        height: 400px;
    }

    .tech-visual-item {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }
}

@media only screen and (max-width: 768px) {
    .header-content {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 60px 20px;
        text-align: center;
    }

    .header-text {
        text-align: center;
        align-items: center;
    }

    .hero-main-text {
        font-size: 2.5rem;
    }

    .hero-name-text {
        font-size: 1.8rem;
    }

    .dynamic-text {
        font-size: 1.2rem;
    }

    .hero-description p {
        font-size: 1.1rem;
    }

    .tech-visual-container {
        max-width: 100%;
        height: 350px;
    }

    .tech-visual-item {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .python-visual {
        top: 5%;
        left: 5%;
    }

    .django-visual {
        top: 5%;
        right: 5%;
    }

    .flutter-visual {
        bottom: 15%;
        left: 10%;
    }

    .api-visual {
        bottom: 15%;
        right: 10%;
    }
}

@media only screen and (max-width: 480px) {
    .header-content {
        padding: 50px 15px;
        gap: 50px;
    }

    .hero-main-text {
        font-size: 2rem;
    }

    .hero-name-text {
        font-size: 1.5rem;
    }

    .dynamic-text {
        font-size: 1.1rem;
    }

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

    .tech-visual-container {
        height: 300px;
    }

    .tech-visual-item {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .header-text .btn {
        padding: 14px 40px;
        font-size: 1rem;
    }
}