/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #0f1419 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
}

/* Header styles */
header {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #0d1117 0%, #1c2128 100%);
    border-bottom: 2px solid #21262d;
    animation: fadeInDown 1s ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #58a6ff;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(88, 166, 255, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

header p {
    font-size: 1.5rem;
    color: #7dd3fc;
    font-weight: 300;
}

/* Section styles */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background: #161b22;
    margin-bottom: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #21262d;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
    transition: all 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border-color: #30363d;
}

section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.4s; }
section:nth-child(4) { animation-delay: 0.6s; }

section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #58a6ff;
    position: relative;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #39d353 0%, #58a6ff 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

section:hover h2::after {
    width: 120px;
}

section h3 {
    font-size: 1.3rem;
    margin: 25px 0 15px 0;
    color: #7dd3fc;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

section h3:hover {
    color: #39d353;
}

section p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #c9d1d9;
    line-height: 1.8;
}

/* About section list */
#about ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

#about li {
    background: linear-gradient(135deg, #21262d 0%, #30363d 100%);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #39d353;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #e6edf3;
}

#about li::before {
    content: '✓';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    background: #39d353;
    color: #0d1117;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    transition: left 0.3s ease;
}

#about li:hover {
    transform: translateX(10px);
    padding-left: 45px;
    box-shadow: 0 5px 20px rgba(57, 211, 83, 0.3);
    border-left-color: #58a6ff;
}

#about li:hover::before {
    left: 10px;
    background: #58a6ff;
}

/* Skills section */
#skills {
    background: linear-gradient(135deg, #0d1117 0%, #1c2128 100%);
    border: 1px solid #30363d;
}

.skill-category {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(33, 38, 45, 0.5);
    border-radius: 10px;
    border: 1px solid #21262d;
    transition: all 0.3s ease;
}

.skill-category:hover {
    background: rgba(33, 38, 45, 0.8);
    border-color: #39d353;
    transform: translateY(-2px);
}

.skill-category h3 {
    color: #58a6ff;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.skill-category ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.skill-category li {
    background: linear-gradient(135deg, #21262d 0%, #30363d 100%);
    padding: 8px 12px;
    border-radius: 6px;
    color: #e6edf3;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-align: center;
    font-size: 0.9rem;
}

.skill-category li:hover {
    background: linear-gradient(135deg, #39d353 0%, #58a6ff 100%);
    color: #0d1117;
    transform: scale(1.05);
    border-color: #7dd3fc;
    font-weight: 600;
}

/* Contact section */
#contact {
    background: linear-gradient(135deg, #0f3460 0%, #0e4b99 100%);
    color: #e6edf3;
    text-align: center;
    border: 1px solid #1f6feb;
}

#contact h2 {
    color: #7dd3fc;
}

#contact p {
    font-size: 1.2rem;
    margin: 20px 0;
    color: #e6edf3;
}

#contact a {
    color: #58a6ff;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    padding: 5px 0;
    font-weight: 500;
}

#contact a:hover {
    border-bottom-color: #39d353;
    color: #39d353;
    text-shadow: 0 0 10px rgba(57, 211, 83, 0.8);
    padding-left: 15px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(88, 166, 255, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(88, 166, 255, 0.8), 0 0 40px rgba(57, 211, 83, 0.3);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1.2rem;
    }
    
    section {
        padding: 40px 15px;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    #about ul {
        grid-template-columns: 1fr;
    }
    
    .skill-category ul {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    header {
        padding: 60px 15px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    section h3 {
        font-size: 1.1rem;
    }
    
    section p {
        font-size: 1rem;
    }
    
    .skill-category ul {
        grid-template-columns: 1fr;
    }
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for page */
body {
    animation: pageLoad 1s ease-out;
}

@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #0d1117;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #39d353 0%, #58a6ff 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #58a6ff 0%, #39d353 100%);
}

