@import url('https://fonts.googleapis.com/css2?family=Short+Stack&display=swap');

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

body {
    font-family: 'Short Stack', cursive;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.active {
    text-decoration: underline;
    font-weight: bold;
    color: #007bff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

.section {
    padding: 80px 0;
}

/* Header and Nav */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

header {
    background-color: #2c3e50;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

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

nav ul li a:hover {
    color: #3498db;
}

.page {
    min-height: 100vh
}

.page.active {
    display: block;
}

/* Home page */
#home {
    text-align: center;
    background-color: #ecf0f1;
    display: flex;
    align-items: center;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: 80vh;
    width: 100%;
    max-width: 100%;
}

.intro-content {
    width: 100%;
    text-align: left;
    max-width: 500px;
    justify-self: start;
}

.bio {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.profile-photo {
    width: 100%;
    border-radius: 50%;
}

.profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.contact-buttons {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.contact-buttons a {
    text-decoration: none;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin: 0 10px;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #2ecc71;
}

.btn-secondary:hover {
    background-color: #27ae60;
}

/* About page */
#about {
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 100px;
    width: 100%;
    max-width: 1200px;
}

.about-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 2rem;
    max-width: 500px;
    margin: 25px auto 30px;
}


.about-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
}

/* Projects page */
#projects {
    background-color: #ecf0f1;
    min-height: 100vh;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Phone-style container */
.project-image.phone {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    border-radius: 10px;
    overflow: hidden;
}

/* IMPORTANT PART */
.project-image.phone img {
    width: auto;
    height: 100%;
    object-fit: contain;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    width: 100%;
    max-width: 1200px;
}

.project-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 90%;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-footer {
    padding: 10px;
    text-align: center;
    margin-top: auto;
}

.demo-access {
    font-size: x-small;
}

.project-card h3 {
    padding: 20px 20px 10px;
    font-size: 1rem;
}

.project-card p {
    padding: 0 20px 20px;
    color: #666;
}

.project-card .btn {
    display: block;
    margin: 20px;
    text-align: center;
}

/* Skills page */
#skills {
    background-color: #f9f9f9;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.skill-icon {
    width: 50px;
    height: 50px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-category {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.skill-category ul {
    list-style-type: none;
}

.skill-category li {
    margin-bottom: 10px;
    color: #34495e;
}

/* Contact page */
#contact {
    background-color: #ecf0f1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

#contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.contact-info {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.contact-info p {
    margin-bottom: 15px;
    color: #34495e;
}

.contact-info i {
    margin-right: 10px;
    color: #3498db;
}

/* Footer */
footer {
    background-color: #34495e;
    color: #ecf0f1;
    padding: 20px 0;
    text-align: center;
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    color: #ecf0f1;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

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

@media (max-width: 768px) {
    .page {
        min-height: 100vh;
        height: auto;
    }

    .hamburger {
        display: block;
        margin-left: auto;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #2c3e50;
        padding: 1rem 0;
        transition: 0.3s ease;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
    }

    nav ul li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 0.5rem 0;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
        padding-top: 80px;
    }

    .intro-content {
        order: 2;
        text-align: center;
        margin: 0 auto;
        padding: 0 20px;
    }

    .about-container h2 {
        text-align: center;
    }

    .contact-buttons {
        justify-content: center;
    }

    .about-photo {
        width: 200px;
        height: 200px;
    }

    .about-content {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 0px;
    }

    .about-text {
        width: 100%;
        max-width: 100%;
    }

    .btn {
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .page {
        width: 100%;
        overflow-x: hidden;
    }

    .intro-grid {
        padding-top: 50px;
        margin-top: 30px;
    }

    .profile-photo {
        width: 150px !important;
        height: 150px !important;
    }

    h1 {
        font-size: 1.8rem;
    }

    .bio {
        font-size: 0.85rem;
        padding: 0 10px;
    }

    .contact-buttons {
        gap: 10px;
    }

    .contact-buttons img {
        width: 35px !important;
        height: 35px !important;
    }

    .about-container {
        padding: 30px 15px;
    }

    .about-container .profile-photo {
        width: 150px !important;
        height: 150px !important;
    }

    .about-text {
        font-size: 0.9rem;
    }

    #projects h2 {
        text-align: center;
    }

    .project-card {
        margin: 0;
    }

    .project-card img {
        height: 160px;
    }

}