:root {
    --primary: #2973ff;
    --secondary: #f5f7fa;
    --accent: #1b9bff;
    --text: #222;
    --white: #fff;
    --shadow: 0 2px 8px rgba(0,0,0,0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--secondary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    background: var(--primary);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
}

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

.nav-links li a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
    padding: 0.5rem;
}

.nav-links li a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    background: linear-gradient(120deg, var(--primary) 60%, var(--accent) 100%);
    color: var(--white);
    padding: 60px 0 50px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.cta-btn {
    background: var(--white);
    color: var(--primary);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    display: inline-block;
}

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

/* Projects Section */
.projects-section {
    padding: 50px 0 40px 0;
}

.projects-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.projects-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.project-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(41,115,255,0.12);
}

.project-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.project-desc {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.project-tag {
    background: var(--secondary);
    color: var(--primary);
    border-radius: 5px;
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

.project-links {
    margin-top: auto;
}

.project-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    margin-right: 1rem;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.project-link:hover {
    color: var(--accent);
}

/* Featured Project Styling */
.featured-project {
    position: relative;
    background: linear-gradient(135deg, var(--white) 0%, #f8f9ff 100%);
    border: 2px solid var(--primary);
    box-shadow: 0 8px 32px rgba(41,115,255,0.15);
    overflow: hidden;
}

.featured-project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.featured-project:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(41,115,255,0.2);
}

.featured-badge {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    border: 1px solid rgba(255, 107, 53, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.featured-project .project-title {
    font-size: 1.4rem;
    color: var(--primary);
    margin-top: 1rem;
}

.featured-project .project-desc {
    font-size: 1rem;
    font-weight: 500;
}


.featured-project .project-tag {
    background: var(--secondary);
    color: var(--primary);
    font-weight: 500;
    border: 1px solid rgba(41, 115, 255, 0.1);
}

.featured-project .project-link {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(41,115,255,0.2);
}

.featured-project .project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(41,115,255,0.3);
    color: white;
}

/* About and Contact Sections */
.about-section, .contact-section {
    padding: 30px 0;
    background: var(--white);
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: var(--shadow);
}

.about-section h2, .contact-section h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-section p, .contact-section p {
    font-size: 1rem;
    line-height: 1.6;
}

.contact-section a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-section a:hover {
    color: var(--accent);
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 1rem 0;
    margin-top: 30px;
    font-size: 0.9rem;
}

/* Mobile Responsive Breakpoints */

/* Small phones (320px and up) */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 0.5rem;
    }
    
    .nav-container {
        height: 55px;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .nav-links {
        gap: 0.8rem;
    }
    
    .nav-links li a {
        font-size: 0.85rem;
        padding: 0.3rem;
    }
    
    .hero {
        padding: 40px 0 35px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    
    .projects-section {
        padding: 40px 0 30px 0;
    }
    
    .projects-section h2 {
        font-size: 1.6rem;
    }
    
    .project-card {
        padding: 1.2rem;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .project-desc {
        font-size: 0.9rem;
    }
    
    .project-tag {
        font-size: 0.75rem;
        padding: 0.15rem 0.5rem;
    }
    
    .about-section, .contact-section {
        padding: 25px 0;
        margin: 15px 0;
    }
    
    .about-section h2, .contact-section h2 {
        font-size: 1.3rem;
    }
    
    .about-section p, .contact-section p {
        font-size: 0.95rem;
    }
    
    .featured-project .project-title {
        font-size: 1.2rem;
        margin-top: 0.5rem;
    }
    
    .featured-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }
}

/* Medium phones and small tablets (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .projects-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
    }
    
    .nav-links {
        gap: 1.2rem;
    }
}

/* Tablets and small desktops (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .projects-list {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.6rem;
    }
    
    .nav-links {
        gap: 1.8rem;
    }
}

/* Large screens (1025px and up) */
@media (min-width: 1025px) {
    .projects-list {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
    
    .hero {
        padding: 80px 0 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .projects-section {
        padding: 60px 0 40px 0;
    }
    
    .projects-section h2 {
        font-size: 2rem;
    }
    
    .nav-links {
        gap: 2rem;
    }
    
    .nav-links li a {
        font-size: 1rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .project-card:hover {
        transform: none;
    }
    
    .project-card:active {
        transform: scale(0.98);
    }
    
    .cta-btn:hover {
        transform: none;
    }
    
    .cta-btn:active {
        transform: scale(0.95);
    }
}