/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

header .tagline {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

/* Navigation */
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    font-weight: 500;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Main Content */
main {
    padding: 2rem 0;
}

section {
    margin-bottom: 4rem;
}

section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
}

section h2 span {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 400;
    margin-left: 0.5rem;
}

section h3 {
    font-size: 1.5rem;
    color: #34495e;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

section h3:first-of-type {
    margin-top: 0;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Cards */
.card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card p {
    margin-bottom: 1rem;
}

.card p:last-child {
    margin-bottom: 0;
}

/* Skills Table */
.skills-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
    transition: all 0.3s ease;
    table-layout: fixed;
}

.skills-table tr {
    border-bottom: 1px solid #ecf0f1;
}

.skills-table td {
    padding: 0.5rem 0;
    vertical-align: middle;
}

.skills-table td:first-child {
    width: 45%;
    font-weight: 500;
    color: #34495e;
    word-wrap: break-word;
    padding-right: 0.5rem;
}

.skills-table td:last-child {
    width: 55%;
}

/* Skill Bar */
.skill-bar {
    height: 20px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    cursor: help;
}

/* Hidden Skills */
.hidden-skill {
    display: none;
}

/* Toggle Button */
.toggle-hidden {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.toggle-hidden:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.toggle-hidden:active {
    transform: translateY(0);
}

/* Intro Text */
.intro-text {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.intro-text ul {
    margin-left: 2rem;
    margin-top: 0.5rem;
}

.intro-text li {
    margin-bottom: 0.3rem;
}

/* Links */
a {
    color: #667eea;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Strong Text */
strong {
    color: #2c3e50;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer p {
    margin: 0.5rem 0;
}

footer a {
    color: #667eea;
}

footer a:hover {
    color: #764ba2;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header .tagline {
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    section h2 span {
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
        font-size: 0.9rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    nav {
        flex-direction: column;
    }

    nav a {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .card {
        padding: 1rem;
    }

    .skills-table td:first-child {
        font-size: 0.9rem;
    }
}
