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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f0f4f8;
    color: #333;
    line-height: 1.6;
}

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

header {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

header h1 {
    margin-bottom: 5px;
}

header nav {
    margin-top: 15px;
}

header nav a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
    font-weight: bold;
}

header nav a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    display: flex;
    gap: 30px;
    margin: 20px 0;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.intro {
    flex: 0 1 65ch;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sidebar {
    flex: 0 0 300px;
}

.sidebar .card {
    padding: 0;
    overflow: hidden;
}

.sidebar .card img {
    width: 100%;
    display: block;
}

section h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Projects Section */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.project {
    background: linear-gradient(135deg, #38bdf8, #22d3ee);
    padding: 15px;
    border-radius: 8px;
    color: #222;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* New: Smooth transition */
}

/* New: Adds the "lift up" effect on hover */
.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.project h3 {
    margin-bottom: 8px;
}

/* New: Styles for the Live Demo and View Code links */
.project-links {
    margin-top: 12px;
    display: flex;
    gap: 15px;
}

.project-links a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.project-links a:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

/* Skills Section */
.card {
    /* Consolidated the two '.card' rules */
    background: white;
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#skills .card {
    /* Specific styling for skill cards */
    background: #60a5fa;
    color: #fff;
    font-weight: bold;
    cursor: default;
    transition: transform 0.3s ease;
    /* New: Smooth transition */
}

/* New: Adds a slight zoom effect to skills on hover */
#skills .card:hover {
    transform: scale(1.05);
}

/* Contact Section */
#contact {
    margin-top: 30px;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#contact input,
#contact textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    /* Ensures consistent font */
}

#contact button {
    padding: 10px 15px;
    border: none;
    background: #2563eb;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

#contact button:hover {
    background: #1e40af;
}

/* Footer */
footer {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #333;
}

footer .socials {
    margin-top: 10px;
}

footer .socials img {
    width: 28px;
    margin: 0 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s;
    /* Updated for consistency */
}

footer .socials img:hover {
    transform: scale(1.2);
}

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

    .intro {
        flex-basis: auto;
        width: 100%;
    }

    .sidebar {
        max-width: 350px;
        width: 100%;
        margin: 0 auto;
    }
}

#menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    font-size: 26px;
    cursor: pointer;
    user-select: none;
}

/* Show hamburger on small screens */
@media (max-width: 768px) {
    .hamburger {
        display: inline-block;
        position: absolute;
        right: 25px;
        top: 25px;
    }

    header nav {
        display: none;
        flex-direction: column;
        background-color: #2563eb;
        border-radius: 8px;
        margin-top: 15px;
        padding: 10px 0;
    }

    header nav a {
        display: block;
        padding: 10px;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin: 0;
    }

    /* When menu checkbox is checked → show nav */
    #menu-toggle:checked+.hamburger+nav {
        display: flex;
    }
}