/* 1. General Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* 2. Navigation */
nav {
    background: #2c3e50;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 85%;
    margin: auto;
    height: 60px;
    padding: 0; /* Nav doesn't need the vertical padding of standard containers */
}

nav strong {
    color: #ffffff;
    text-transform: uppercase;
    font-size: 1.1rem;
}

nav ul {
    display: flex;
    list-style-type: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #2ecc71; 
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #ffffff;
}

/* 3. Layout Containers */
.container {
    width: 85%;
    max-width: 1100px;
    margin: auto;
    padding: 60px 0;
}

/* 4. Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), 
                url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&q=80&w=1000');
    background-size: cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 { font-size: 3rem; margin-bottom: 10px; }
.accent { color: #3498db; }

/* 5. Projects Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 5px solid #3498db;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #eee;
}

.tag {
    display: inline-block;
    background: #ebf5fb;
    color: #3498db;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 15px;
    width: fit-content;
}

/* 6. About Section */
.about-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-top: 20px;
}

.about-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 25px;
}

.about-text {
    flex: 1.5;
    font-size: 1.05rem;
    color: #444;
}

.about-skills {
    flex: 1.5;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #3498db;
}

/* 7. Footer & General Links */
footer {
    text-align: center;
    padding: 40px;
    background: #2c3e50;
    color: #bdc3c7;
    margin-top: 60px;
}

a {
    color: #27ae60;
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: #2ecc71;
}

/* 8. Mobile Responsiveness */
@media (max-width: 768px) {
    .about-flex {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}
