﻿@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

* {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #0d1117;
    animation: fadeIn 1.5s ease-in-out forwards;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2em;
}

/* ============================================================================
   INFO SECTION
   ============================================================================ */
.container_info {
    display: grid;
    grid-template-columns: 0.8fr 2fr 2fr 0.8fr;
    column-gap: 2em;
    margin-bottom: 4em;
}

.info {
    grid-column: 2 / 3;
}

.container_info img {
    grid-column: 3 / 4;
    grid-row: 1 / 4;
    width: 100%;
    height: auto;
    border-radius: 1em;
    justify-self: start;
    align-self: start;
    margin-top: 10%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info h1 {
    font-size: 3.2em;
    margin-bottom: 8%;
    color: #e2e8f0;
}

.info h3 {
    font-size: 1.5em;
    margin-bottom: 2%;
    margin-top: 0;
    color: #cbd5e1;
}

.info p {
    margin-top: 0;
    color: #94a3b8;
    font-size: 1.2em;
    line-height: 1.7;
}

/* ============================================================================
   SKILLS SECTIONS
   ============================================================================ */
.skills-section {
    background: #161b22;
    padding: 2.5em 2em;
    margin-bottom: 2em;
    border-radius: 1.5em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-left: 4px solid #0ea5e9;
}

.skills-section h3 {
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 1.5em;
    color: #e2e8f0;
    text-align: center;
    border-bottom: 2px solid rgba(14, 165, 233, 0.2);
    padding-bottom: 0.5em;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2em;
    align-items: center;
    justify-items: center;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8em;
    padding: 1.5em;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(14, 165, 233, 0.02) 100%);
    border-radius: 1em;
    transition: all 0.3s ease;
    min-width: 100px;
    border: 2px solid transparent;
}

.icon-item:hover {
    background: rgba(14, 165, 233, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.3);
}

.icon-item img,
.icon-item i {
    width: 3em;
    height: 3em;
    font-size: 3em;
    color: #0ea5e9;
}

.icon-item p {
    margin: 0;
    font-size: 0.95em;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
}

/* Different color schemes for different sections */
.skills-section:nth-child(2) {
    border-left-color: #7c3aff;
}

.skills-section:nth-child(2) .icon-item {
    background: linear-gradient(135deg, rgba(124, 58, 255, 0.05) 0%, rgba(124, 58, 255, 0.02) 100%);
}

.skills-section:nth-child(2) .icon-item:hover {
    background: rgba(124, 58, 255, 0.1);
    box-shadow: 0 8px 20px rgba(124, 58, 255, 0.15);
    border-color: rgba(124, 58, 255, 0.3);
}

.skills-section:nth-child(2) .icon-item i {
    color: #7c3aff;
}

.skills-section:nth-child(3) {
    border-left-color: #10b981;
}

.skills-section:nth-child(3) .icon-item {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
}

.skills-section:nth-child(3) .icon-item:hover {
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.skills-section:nth-child(4) {
    border-left-color: #f59e0b;
}

.skills-section:nth-child(4) .icon-item {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.02) 100%);
}

.skills-section:nth-child(4) .icon-item:hover {
    background: rgba(245, 158, 11, 0.1);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
}

.skills-section:nth-child(5) {
    border-left-color: #f84848;
}

.skills-section:nth-child(5) .icon-item {
    background: linear-gradient(135deg, rgba(248, 72, 72, 0.05) 0%, rgba(248, 72, 72, 0.02) 100%);
}

.skills-section:nth-child(5) .icon-item:hover {
    background: rgba(248, 72, 72, 0.1);
    box-shadow: 0 8px 20px rgba(248, 72, 72, 0.15);
    border-color: rgba(248, 72, 72, 0.3);
}

.skills-section:nth-child(6) {
    border-left-color: #6366f1;
}

.skills-section:nth-child(6) .icon-item {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(99, 102, 241, 0.02) 100%);
}

.skills-section:nth-child(6) .icon-item:hover {
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.skills-section:nth-child(7) {
    border-left-color: #ec4899;
}

.skills-section:nth-child(7) .icon-item {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, rgba(236, 72, 153, 0.02) 100%);
}

.skills-section:nth-child(7) .icon-item:hover {
    background: rgba(236, 72, 153, 0.1);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.15);
    border-color: rgba(236, 72, 153, 0.3);
}

.skills-section:nth-child(8) {
    border-left-color: #8b5cf6;
}

.skills-section:nth-child(8) .icon-item {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(139, 92, 246, 0.02) 100%);
}

.skills-section:nth-child(8) .icon-item:hover {
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */
@media (max-width: 768px) {
    main {
        padding: 1em;
    }

    .container_info {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 2em;
    }

    .info {
        grid-column: 1 / 2;
    }

    .container_info img {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        margin-top: 0;
    }

    .info h1 {
        font-size: 2.5em;
    }

    .info h3 {
        font-size: 1.3em;
    }

    .info p {
        font-size: 1em;
    }

    .skills-section {
        padding: 1.5em 1em;
    }

    .skills-section h3 {
        font-size: 1.5em;
    }

    .icon-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1.5em;
    }

    .icon-item {
        padding: 1em;
        min-width: 80px;
    }

    .icon-item img,
    .icon-item i {
        width: 2.5em;
        height: 2.5em;
        font-size: 2.5em;
    }

    .icon-item p {
        font-size: 0.85em;
    }
}

/* Accessibility & Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
