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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #273F4F; /* primary text */
    background-color: #EFEEEA; /* background */
}

/* Navigation */
header {
    background-color: #EFEEEA;
    box-shadow: 0 2px 5px rgba(39,63,79,0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    padding: 1rem;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #273F4F;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #FE7743;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #EFEEEA 0%, #FE7743 100%);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #273F4F;
}

/* Sections */
section {
    padding: 5rem 2rem;
    background-color: #EFEEEA;
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #273F4F;
}

/* About Section */
.about {
    background-color: #FE7743;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    color: #000000;
}

/* Projects Section */
.projects {
    background-color: #EFEEEA;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: #FE7743;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(39, 63, 79, 0.08);
    transition: transform 0.3s ease;
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
    background-color: #EFEEEA;
}

.project-card h3 {
    margin: 10px 0;
    color: #EFEEEA;
}

.project-card p {
    color: #000000;
    line-height: 1.5;
}

.project-card:hover {
    transform: translateY(-5px);
    background-color: #273F4F;
    color: #FE7743;
}

/* Contact Section */
.contact {
    background-color: #FE7743;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    color: #000000;
}

.contact-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #273F4F;
    color: #FE7743;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 2rem;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: #FE7743;
    color: #273F4F;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background-color: #273F4F;
    color: #FE7743;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #FE7743;
    color: #273F4F;
    transform: translateY(-2px);
}

.social-link i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: #273F4F;
    color: #FE7743;
    text-align: center;
    padding: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1rem;
    }
    
    section {
        padding: 4rem 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0.5rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 0.5rem;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .about-content {
        padding: 0 1rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .social-link {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    .project-card {
        padding: 15px;
    }
    
    .contact-button {
        padding: 0.8rem 1.5rem;
        width: 100%;
        max-width: 250px;
    }
}

/* Add smooth transitions for better UX */
.hero-content h1,
.hero-content p,
nav ul li a,
.project-card,
.social-link,
.contact-button {
    transition: all 0.3s ease-in-out;
}

/* Improve accessibility for touch devices */
@media (hover: none) {
    .project-card:hover {
        transform: none;
    }
    
    .social-link:hover {
        transform: none;
    }
    
    nav ul li a,
    .contact-button,
    .social-link {
        padding: 0.8rem 1.2rem;
    }
}
