
/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f4f4f4;
    color: #333333;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #8b91d8;
    padding: 15px 20px;
    color: #fff;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

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

.nav-links li {
    margin-left: 20px;
}

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

.nav-links li a:hover {
    color: #f39c12;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: #333;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        padding: 15px;
    }

    .menu-toggle:checked + .menu-icon + .nav-links {
        display: flex;
    }

    .menu-icon {
        display: block;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(163, 118, 202, 0.642), rgba(0,0,0,0.6)), url('MORRIS 2.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 70px 20px;
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 15px;
}

.hero h1 span {
    color: #f39c12;
}

.hero p {
    font-size: 20px;
}

/* Layout */
.container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 20px;
}

.sidebar {
    flex: 1;
    min-width: 280px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.main-content {
    flex: 2;
    min-width: 320px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Profile Flip Card */
.flip-profile {
    perspective: 1000px;
    margin-bottom: 20px;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 200px;
    text-align: left;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-profile:hover .flip-inner {
    transform: rotateY(180deg);
}

.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.flip-front img {
    width: 100%;
    height:250%;
    object-fit: cover;
    border-radius: 10px;
}

.flip-back {
    background: #f39c12;
    color: #fff;
    padding: 20px;
    transform: rotateY(180deg);
    border-radius: 10px;
}

/* Sections */
section {
    margin-bottom: 30px;
}

h2 {
    margin-bottom: 15px;
    color: #222;
    border-bottom: 2px solid #f39c12;
    display: inline-block;
    padding-bottom: 5px;
}

blockquote {
    background: #f9f9f9;
    border-left: 5px solid #8677d2;
    padding: 10px 15px;
    font-style: italic;
    color: #555;
}

/* Projects Cards */
.projects-section .card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.flip-card {
    background: transparent;
    width: 250px;
    height: 150px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    text-align: center;
}

.flip-card-front {
    background: #333;
}

.flip-card-back {
    background: #f39c12;
    transform: rotateY(180deg);
    padding: 10px;
}

/* Lists */
ul {
    list-style-type: none;
}

ul li {
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.footer-links a {
    color: #f39c12;
    text-decoration: none;
    display: block;
    margin: 5px 0;
}

.footer-copy {
    font-size: 14px;
    margin-top: 10px;
}

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

    .hero h1 {
        font-size: 28px;
    }
}

