:root {
    --primary-color: #d97706;
    --secondary-color: #b45309;
    --accent-color: #f59e0b;
    --light-accent: #fef3c7;
    --text-color: #1f2937;
    --light-gray: #fef9f3;
    --white: #ffffff;
    --muted: #78716c;
    --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(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
header {
    position: relative;
    color: white;
    padding: 2rem 0;
    text-align: center;
    overflow: hidden;
}

.hero-header {
    background-image: url('../images/background.jpeg');
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

header .container {
    position: relative;
    z-index: 1;
}

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

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    margin-top: 1.5rem;
}

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

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

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section:nth-child(even) {
    background-color: var(--light-gray);
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--primary-color);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.2);
    border: 4px solid var(--light-accent);
    object-fit: cover;
    aspect-ratio: 1/1;
}

.skills h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
}

.skill-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
    cursor: default;
    display: inline-block;
}

.skill-tag:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(217, 119, 6, 0.3);
}

/* Tag Cloud Sizes - Mobile Development emphasized */
.skill-tag.size-large {
    font-size: 1.2rem;
    padding: 0.8rem 1.6rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.skill-tag.size-medium {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
}

.skill-tag.size-small {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
}

/* Projects Section */
#projects {
    position: relative;
    background-image: 
        linear-gradient(135deg, rgba(217, 119, 6, 0.35), rgba(180, 83, 9, 0.15)),
        url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-card > *:not(.project-image) {
    padding: 0 2rem;
}

.project-card > .project-header {
    padding-top: 1.5rem;
}

.project-card > .project-links {
    padding-bottom: 2rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 0;
    font-size: 1.5rem;
}

.project-tag {
    background-color: var(--light-accent);
    color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.project-description {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tech span {
    background-color: var(--light-gray);
    color: var(--text-color);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.project-links {
    margin-top: auto;
    display: flex;
    gap: 1rem;
}

/* Articles Section */
.emoji {
    font-style: normal;
    margin-right: 0.5rem;
}

.section-desc {
    text-align: center;
    color: var(--muted);
    font-size: 1.1rem;
    margin: -2rem auto 3rem;
    max-width: 700px;
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-left-color: var(--primary-color);
}

.card-title {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-meta {
    color: var(--muted);
    font-size: 0.9rem;
    font-style: italic;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Contact Section */
footer {
    background-color: #1f2937;
    color: white;
    padding: 4rem 0 2rem;
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.contact-links a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: var(--transition);
}

.contact-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.copyright {
    margin-top: 3rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 1rem;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .about-image img {
        max-width: 80%;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .projects-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 200px;
    }
    
    header h1 {
        font-size: 2rem;
    }
}
