/* ROOT VARIABLES */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #34495e;
    --text: #2c3e50;
    --white: #ffffff;
}

/* RESET */
* {
    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);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* HEADER - uses CSS POSITIONING */
.header {
    background: var(--white);
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--secondary);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.header-text h1 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.tagline {
    color: var(--secondary);
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 15px;
}

/* CONTACT LINKS - uses FLEXBOX */
.contact-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-links a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-links a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* MAIN GRID LAYOUT - uses CSS GRID */
.main-grid {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}

/* SECTIONS */
.section {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.section h2 {
    color: var(--primary);
    border-bottom: 3px solid var(--secondary);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 2rem;
}

/* SKILLS SECTION - uses FLEXBOX */
.skills-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.skill-card {
    flex: 1;
    min-width: 200px;
    background: var(--light);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
}

.skill-card h3 {
    color: var(--secondary);
    margin-bottom: 10px;
}

.skill-card ul {
    list-style: none;
    padding-left: 0;
}

.skill-card li {
    padding: 5px 0;
    color: var(--dark);
}

.skill-card li::before {
    content: "✓ ";
    color: var(--secondary);
    font-weight: bold;
    margin-right: 8px;
}

/* EXPERIENCE & EDUCATION */
.job, .edu-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light);
}

.job:last-child, .edu-item:last-child {
    border-bottom: none;
}

.job h3, .edu-item h3 {
    color: var(--primary);
    margin-bottom: 5px;
}

.company, .school {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 5px;
}

.dates {
    color: var(--dark);
    font-style: italic;
    margin-bottom: 10px;
}

.job ul {
    margin-left: 20px;
    margin-top: 10px;
}

.job li {
    margin-bottom: 8px;
    color: var(--dark);
}

/* PROJECTS GRID - uses CSS GRID */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.project-card {
    background: var(--light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.project-card h3 {
    color: var(--primary);
    padding: 15px 15px 10px;
}

.project-card p {
    padding: 0 15px 15px;
    color: var(--dark);
}

.project-card a {
    display: inline-block;
    margin: 0 15px 15px;
    padding: 8px 16px;
    background: var(--secondary);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.project-card a:hover {
    background: var(--accent);
}

/* FOOTER */
.footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.footer p {
    margin: 5px 0;
}

/* RESPONSIVE MEDIA QUERIES */
@media (min-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .about, .experience {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .header {
        flex-direction: column;
    }
    
    .header-text h1 {
        font-size: 1.8rem;
    }
    
    .skills-container {
        flex-direction: column;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 500px) {
    .section {
        padding: 20px;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .profile-photo {
        width: 100px;
        height: 100px;
    }
}