/* ===========================================
   CIS 89 Portfolio Website
   =========================================== */

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


/* Body */

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}


/* Header + Navigation */

header {
    background-color: #1f3c88;
    color: white;
    padding: 20px 0;
}


nav {
    width: 90%;
    max-width: 1100px;
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo {
    font-size: 1.7rem;
    font-weight: bold;
}


nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}


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


nav ul li a:hover {
    color: #8ddcff;
}



/* Hero Section */

.hero {

    background: linear-gradient(#1f3c88, #2b5cb8);

    color: white;

    text-align: center;

    padding: 80px 20px;

}


.hero h1 {

    font-size: 3rem;

    margin-bottom: 15px;

}


.hero p {

    font-size: 1.2rem;

    margin-bottom: 25px;

}



/* Buttons */

.button {

    display: inline-block;

    text-decoration: none;

    background: #8ddcff;

    color: #123;

    padding: 12px 25px;

    border-radius: 6px;

    font-weight: bold;

    transition: 0.3s;

}


.button:hover {

    background: #b8ebff;

    color: #1f3c88;

}



/* Main Content */

main {

    width: 90%;

    max-width: 1100px;

    margin: 40px auto;

}


section {

    margin-bottom: 60px;

}


h2 {

    margin-bottom: 15px;

    color: #1f3c88;

}



/* Project Cards */

.card-container {

    display: flex;

    gap: 25px;

    flex-wrap: wrap;

}


.card {

    background: white;

    flex: 1;

    min-width: 250px;

    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 5px 15px rgba(0,0,0,0.15);

    transition: 0.3s;

}


.card:hover {

    transform: translateY(-6px);

}


.card img {

    width: 100%;

    height: 200px;

    object-fit: cover;

}


.card-content {

    padding: 20px;

}



/* About Section */

.profile {

    display: flex;

    gap: 40px;

    align-items: center;

    flex-wrap: wrap;

}


.profile img {

    width: 280px;

    border-radius: 10px;

}


.profile-text {

    flex: 1;

}



/* Lists */

ul,
ol {

    margin-left: 30px;

    margin-top: 10px;

}



/* Table */

table {

    width: 100%;

    border-collapse: collapse;

    margin-top: 20px;

}


table,
th,
td {

    border: 1px solid #ccc;

}


th {

    background: #1f3c88;

    color: white;

}


th,
td {

    padding: 12px;

    text-align: left;

}



/* Gallery */

.gallery {

    display: grid;

    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));

    gap: 20px;

}


.gallery img {

    width: 100%;

    border-radius: 10px;

    transition: 0.3s;

}


.gallery img:hover {

    transform: scale(1.04);

}



/* Contact Form */

form {

    background: white;

    padding: 30px;

    border-radius: 10px;

    box-shadow: 0 5px 12px rgba(0,0,0,0.1);

}


label {

    display: block;

    margin-top: 15px;

    font-weight: bold;

}


input,
textarea {

    width: 100%;

    padding: 12px;

    margin-top: 8px;

    border: 1px solid #bbb;

    border-radius: 6px;

}


textarea {

    resize: vertical;

}


button {

    margin-top: 20px;

    padding: 12px 25px;

    border: none;

    border-radius: 6px;

    background: #8ddcff;

    color: #123;

    cursor: pointer;

    font-weight: bold;

    transition: 0.3s;

}


button:hover {

    background: #b8ebff;

    color: #1f3c88;

}



/* Video */

.video {

    margin-top: 40px;

    text-align: center;

}


iframe {

    width: 100%;

    max-width: 700px;

    height: 400px;

}



/* Footer */

footer {

    background: #1f3c88;

    color: white;

    text-align: center;

    padding: 25px;

    margin-top: 50px;

}



/* Mobile / Tablet Responsive */

@media (max-width: 768px) {


    nav {

        flex-direction: column;

        gap: 15px;

    }


    nav ul {

        flex-direction: column;

        text-align: center;

    }


    .profile {

        flex-direction: column;

        text-align: center;

    }


    .hero h1 {

        font-size: 2.2rem;

    }


    iframe {

        height: 250px;

    }

}