/* Basic Reset */
html, body {
    min-width: 500px; /* choose your cutoff */
}

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

/* Body and Fonts */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Container Utility */
.container {
    width: 90%;
    max-width: 1450px;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    background-color: #222;
    color: #fff;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.nav-logo {
    font-weight: 600;
    font-size: 1.2rem;
}

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

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

.nav-links a:hover {
    color: #1e90ff;
}

/* HERO SECTION */
.hero {
    background: #333;
    color: #fff;
    padding: 3rem 0;
}

.hero-content {
    /* Let the container define the width, no text-align center here */
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Brighter link color in hero */
.hero-content a {
    color: #63b3ff;  /* Brighter than the default for contrast on dark background */
    text-decoration: none;
}

.hero-content a:hover {
    color: #bee0ff; /* Lighten further on hover */
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    /* Headings left-aligned by default */
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    /* Paragraphs also left-aligned by default */
}

.hero-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem; /* Ensure bullets line up nicely */
    list-style-position: outside;
    /* Bulleted list is also left-aligned by default */
}

.hero-photo {
    display: block;         /* ensures the image is treated like a block-level element */
    margin: 0 auto 1.5rem;  /* centers it horizontally, adds space below */
    border-radius: 50%;     /* circular appearance */
    max-width: 150px;       /* limit the max width */
    height: 150px;          /* fix height for a perfect circle */
    object-fit: cover;      /* ensures the image fills the circle */
}

/* Button Styles */
.btn,
.btn-link {
    display: inline-block;
    background-color: #1e90ff; /* Default blue */
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover,
.btn-link:hover {
    background-color: #006bb3; /* Darker blue on hover */
}

/* Projects Section */
.projects-section {
    padding: 2rem 0;
}

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

.project-card {
    background-color: #fff;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.project-video,
.project-info {
    flex: 1 0 300px;
    min-width: 450px;
    padding: 1.5rem;
}


.video-thumb {
    width: 100%;
    border-radius: 4px;
    background-color: #000;
}

.project-video video,
.project-video .video-thumb {
    max-height: 260px;
}

.project-info h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-info p {
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Two-button layout & color overrides */
.btn-group {
    display: flex;
    gap: 1rem;      /* spacing between the two buttons */
    margin-top: 1rem;
}

.btn-group .btn-link {
    flex: 1;       /* each button expands to fill available space */
    text-align: center;
}

/* Second button = Green */
.btn-group .btn-link:nth-child(2) {
    background-color: #28a745;  /* green */
}

.btn-group .btn-link:nth-child(2):hover {
    background-color: #218838;  /* darker green on hover */
}

.project-info {
    display: flex;
    flex-direction: column; /* stack content vertically */
    justify-content: flex-start;
    padding: 1.9rem;
}

.btn-group {
    margin-top: auto; /* pushes the buttons to the bottom */
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    text-align: center;
    background-color: #222;
    color: #fff;
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-section p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background-color: #1b1b1b;
    padding: 1rem 0;
    text-align: center;
}

.footer p {
    color: #999;
    font-size: 0.9rem;
}

/* ---------------------------------------
   CAROUSEL for BLENDER PROJECTS
--------------------------------------- */
.carousel-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;      /* horizontal scrolling if needed */
    scroll-behavior: smooth;
    padding: 0.5rem 0;
}

.carousel-container img {
    margin-bottom: 4px;
}

/* Optional scrollbar styling (Chrome/Safari) */
.carousel-container::-webkit-scrollbar {
    height: 7px;
    cursor: pointer;
}

.carousel-container::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
    cursor: pointer;
}

/* Thumbnails */
.carousel-item {
    cursor: pointer;
    min-width: 240px;     /* slightly narrower */
    min-height: 380px;        /* make them taller */
    object-fit: cover;    /* keeps them clean */
    border-radius: 4px;
}

/* ---------------------------------------
   MODAL MEDIA FIT (FIX VERTICAL IMAGES)
--------------------------------------- */

/* Images & videos inside the Blender modal */
#blenderMediaContainer img,
#blenderMediaContainer video {
    max-width: 100%;
    max-height: 70vh;      /* never exceed viewport height */
    width: auto;
    height: auto;
    object-fit: contain;  /* preserve aspect ratio */
    margin: 0 auto;
    margin-top: 20px;
    display: block;
}


/* ---------------------------------------
   MODAL - BIGGER SIZE
--------------------------------------- */
.modal {
    display: none;           /* hidden by default */
    position: fixed;
    z-index: 999;            /* on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;          /* enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.8);  /* dark overlay */
}

.modal-content {
    background-color: #fff;
    margin: 2% auto;         /* center horizontally, 2% from top */
    padding: 1.5rem;
    padding-left: 2.2rem;
    padding-right: 2.2rem;
    border-radius: 6px;
    width: 80%;              /* larger modal width */
    max-width: 1200px;       /* cap on huge screens */
    text-align: center;
    position: relative;
}

/* Let modal adapt to vertical media width */
.modal-content {
    width: fit-content;
    max-width: 90vw;
}


/* Close button (X) */
.close {
    color: #aaa;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: -1.4rem;
    margin-bottom: 0.2rem;
}

.close:hover {
    color: #333;
}

/* Big image in modal */
#blenderFullImg {
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
    border-radius: 4px;
}

/* Tooltip for fullscreen hint */
.fullscreen-hint {
    position: fixed;
    pointer-events: none; /* never block clicks */
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.15s ease;
}

/* Responsive Adjustments */
@media (max-width: 1014px) {
    .text-center {
        text-align: center;
        margin-top: -12px;
    }

    .project-info {
        margin-top: -28px;
    }
    .blender-info {
        margin-top: -24px;
    }

    .project-video,
    .project-info {
        width: 100%;
    }

    /* Scale down media without cropping the images */
}
