/* ========== Reset & Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ========== Button Styles ========== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: #0066cc;
    color: white;
}

.btn-primary:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* ========== Navigation Bar ========== */
.navbar {
    position: sticky;
    top: 0;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0066cc;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #0066cc;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ========== Hero Section ========== */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f4ff 100%);
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}

/* ========== Projects Section ========== */
.projects {
    padding: 80px 0;
    background-color: #fff;
}

.projects h2,
.blog h2,
.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #1a1a1a;
}

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

.project-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #0066cc;
}

.project-header h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #0066cc;
}

.project-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    background-color: #e8f0ff;
    color: #0066cc;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========== Blog Section ========== */
.blog {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.blog-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #0066cc;
}

.blog-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    line-height: 1.4;
}

.blog-date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.8;
}

.blog-link {
    color: #0066cc;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.blog-link:hover {
    transform: translateX(4px);
}

/* ========== Contact Section ========== */
.contact {
    padding: 80px 0;
    background-color: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #0066cc;
}

.info-item a,
.info-item p {
    color: #666;
    font-size: 1.1rem;
}

.info-item a:hover {
    color: #0066cc;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ========== Footer ========== */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer p {
    color: #999;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: #999;
    transition: color 0.3s ease;
    font-weight: 500;
}

.social-links a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .footer .container {
        flex-direction: column;
    }
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.95rem;
    }

    .projects h2,
    .blog h2,
    .contact h2 {
        font-size: 2rem;
    }

    .projects-grid,
    .blog-grid {
        gap: 1.5rem;
    }

    .project-card,
    .blog-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .nav-links {
        gap: 0.8rem;
        font-size: 0.85rem;
    }

    .projects h2,
    .blog h2,
    .contact h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .projects,
    .blog,
    .contact {
        padding: 50px 0;
    }
}
