/* Global Styles */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #166088;
    --accent-color: #4fc3dc;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --border-radius: 5px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--secondary-color);
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 300px;
    height: auto;
    display: block;
}

.section {
    padding: 4rem 0;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: var(--box-shadow);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* Desktop Navigation */
.desktop-nav {
    margin-top: 1.5rem;
}

.desktop-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.desktop-nav li {
    margin: 0 1rem;
}

.desktop-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

/* About Section */
.profile-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.profile-image {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    margin: 0 auto;
}

.profile-image img {
    border-radius: 50%;
    box-shadow: var(--box-shadow);
    border: 5px solid white;
    transition: var(--transition);
}

.profile-image img:hover {
    transform: scale(1.05);
}

.profile-text {
    flex: 2;
    min-width: 300px;
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.skills-category {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.skill-bars h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.skill {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.skill-name {
    flex: 1;
    min-width: 100px;
    font-weight: 600;
}

.progress-bar {
    flex: 2;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin: 0 10px;
    min-width: 150px;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

.percentage {
    flex: 0 0 50px;
    text-align: right;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Different colors for different categories */
.progress.linux {
    background-color: #f7a41d;
}

.progress.windows {
    background-color: #0078d7;
}

.progress.mobile {
    background-color: #a4c639;
}

.progress.apple {
    background-color: #a2aaad;
}

/* Education Section */
.education-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.education-timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 20px;
}

.timeline-item {
    padding: 1rem 2rem 1rem 3rem;
    position: relative;
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 2px solid var(--primary-color);
    left: -8px;
    top: 1.5rem;
    z-index: 1;
}

.timeline-date {
    font-style: italic;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        text-align: center;
    }

    .profile-image {
        margin-bottom: 1.5rem;
    }

    .skills-container {
        flex-direction: column;
    }

    .education-timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 2.5rem;
    }

    .timeline-item::before {
        left: -6px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 2rem 0;
    }

    .skill {
        flex-direction: column;
        align-items: flex-start;
    }

    .progress-bar {
        margin: 5px 0;
        width: 100%;
    }

    .percentage {
        align-self: flex-end;
    }
}

/* Tools Section */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tool-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tool-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.tool-item img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    object-fit: contain;
}

.tool-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.tool-item p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.tool-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.tool-link:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* Responsive adjustments for tools grid */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation for progress bars */
@keyframes progressAnimation {
    0% {
        width: 0;
    }
}

.progress {
    animation: progressAnimation 1.5s ease-out forwards;
}
