/* Custom text selection color */
::selection {
    background: #93939372; /* Red background for selected text */
    color: #ffffff; /* White text color for selected text */
}
::-moz-selection { /* For Firefox */
    background: #93939372;
    color: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000; /* Black background */
    color: #ffffff; /* White text */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Prevent horizontal scrolling caused by overflowing elements */
    overflow-x: hidden;
    /* --- Background Image Properties --- */
    background-image: linear-gradient(rgba(16, 16, 16, 0.737), rgba(22, 22, 22, 0.786)),
        url('bg5.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* --- End Background Image Properties --- */
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 1920px;
    margin: 0 auto;
}

/* This is the new wrapper for content that keeps everything aligned within the max-width */
.content-wrapper {
    max-width: 1200px; /* Or a suitable max-width for content readability */
    width: 96%;
    margin: 0 auto;
    padding: 0 clamp(0.5rem, 1vw, 1rem);
    box-sizing: border-box;
}

/* Header Section */
.header {
    width: 100%;
    padding: 1rem clamp(1rem, 3vw, 2rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #00000000;
    z-index: 10;
    animation: slideInFromTop 1s ease-out forwards;
    box-sizing: border-box;
}

.logo {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: bold;
    color: #d1d5db;
    display: flex;
    align-items: center;
}

.logo-img {
    height: clamp(1.5rem, 3vw, 2rem);
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Desktop navigation - default */
.navigation ul.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: clamp(0.8rem, 1.5vw, 2rem);
}

.navigation ul li a {
    color: #d1d5db;
    font-size: clamp(1.6vh, 1.2vw, 1.8vh);
    text-decoration: none;
    transition: color 300ms ease-in-out, box-shadow 300ms ease-in-out, border 300ms ease-in-out;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 5px;
}

.navigation ul li a:hover {
    color: #ffffff;
    border: 1px solid #efefef;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.492);
}

/* Hamburger menu styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 20;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 4px 0;
    transition: all 0.3s ease-in-out;
}

/* Hamburger active state (for animation) */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Main Content Section - Hero for "FRAME" */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

.main-text {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 60vh;
}

.background-x {
    position: absolute;
    font-family: 'MyCustomFont';
    font-style : italic;
    text-shadow: 0px 5px 10px #3a3a3ad2;
    font-size: 20vh;
    color: rgba(216, 216, 216, 0.619);
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
    pointer-events: none;
    animation: fadeInScale 1.5s ease-out 0.5s forwards;
    opacity: 0;
}

.frame-visuals-wrapper {
    position: relative;
    display: inline-block;
}

.frame-text {
    /* Adjusted to be more flexible on thin screens */
    font-size: clamp(6vh, 15vw, 15vh);
    font-family: sans-serif;
    font-weight :2000;
    line-height: 1;
    letter-spacing: 0;
    color: #ffffff;
    margin: 0;
    position: relative;
    z-index: 1;
    animation: fadeInScaleUp 1.5s ease-out 0.5s forwards;
    opacity: 0;
    transform: scale(0.9);
    text-shadow:5px 5px 10px #000000c3;
}

.originals {
    /* Adjusted letter-spacing for better fit on small screens */
    font-size: clamp(3vh, 7vw, 7vh);
    font-family: sans-serif;
    font-weight :2000;
    line-height: 1;
    letter-spacing: clamp(0.1em, 2vw, 0.45em);
    color: #ffffff;
    margin: 0;
    position: relative;
    z-index: 1;
    animation: fadeInScaleUp 1.5s ease-out 0.5s forwards;
    opacity: 0;
    transform: scale(0.9);
    text-shadow:5px 5px 10px #000000c3;
}

/* Individual angle pixels */
.angle-pixel {
    position: absolute;
    width: 1.2vw;
    height: 1.2vw;
    background-color: #ffffff;
    z-index: 2;
    animation: popIn 0.5s ease-out forwards;
    opacity: 0;
    transform: scale(0);
}

/* Top-left diagonal angles relative to frame-visuals-wrapper */
.angle-pixel.top-left-1 {
    top: -1.5vw;
    left: -1.5vw;
    animation-delay: 1.5s;
}
.angle-pixel.top-left-2 {
    top: calc(-1.5vw + 1.2vw);
    left: calc(-2.7vw);
    animation-delay: 1.6s;
}

/* Bottom-right diagonal angles relative to frame-visuals-wrapper */
.angle-pixel.bottom-right-1 {
    bottom: -1.5vw;
    right:-1.5vw;
    animation-delay: 1.7s;
}
.angle-pixel.bottom-right-2 {
    bottom: calc(-1.5vw + 1.2vw);
    right: calc(-2.7vw);
    animation-delay: 1.8s;
}

/* Moved Tagline */
.middle-tagline {
    font-weight: 600;
    font-size: 4vh;
    color: #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2rem;
    animation: fadeInScaleUp 1.5s ease-out 0.8s forwards;
    opacity: 0;
    transform: scale(0.9);
    width: 100%;
    box-sizing: border-box;
}

/* About Me Section */
.about-me-section {
    background-color: #0000009e;
    padding: 4rem 0;
    text-align: left;
    color: #d1d5db;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.08' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zm1 5v1H5zM6 0H5v1z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    width: 100vw;
    position: relative;
    left: calc(50% - 50vw);
}

/* Introduction Logo Styling */
.logo-container {
    text-align: center;
    background-image: url("logo_long.jpg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 90%; /* Control the width relative to its parent */
    max-width: 1200px; /* Increased for larger size on desktops */
    margin: 2rem auto; /* Added vertical margin for spacing */
    aspect-ratio: 4 / 1; /* Set aspect ratio to match image and remove extra space */
    height: auto; /* Allow height to be determined by aspect ratio */
    scale: 1.69;
}

.intro-logo {
    max-width: 350px; /* Increased max-width for a larger image */
    width: 100%;
    height: auto;
    display: inline-block;
    border-radius: 5px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.intro-text {
    margin-top: 0; /* Remove top margin */
    text-align: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.intro-logo:hover {
    transform: scale(1.05);
}

/* Portfolio Section */
.portfolio-section {
    background-color: #0000009e;
    padding: 4rem 0;
    color: #d1d5db;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.08' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zm1 5v1H5zM6 0H5v1z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    width: 100vw;
    position: relative;
    left: calc(50% - 50vw);
}

/* Services Section */
.services-section {
    background-color: #0000009e;
    padding: 2rem 0;
    color: #d1d5db;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.08' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zm1 5v1H5zM6 0H5v1z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    width: 100vw;
    position: relative;
    left: calc(50% - 50vw);
}

/* Footer Section (Contact Details) */
.contact-footer {
    background-color: #000000;
    padding: 4rem 0;
    color: #d1d5db;
    line-height: 1.8;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.08' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zm1 5v1H5zM6 0H5v1z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    width: 100vw;
    position: relative;
    left: calc(50% - 50vw);
}

.about-me-content,
.portfolio-content,
.services-content,
.footer-content {
    /* These styles were previously on each section content wrapper,
       but are now on a single new .content-wrapper class for consistency.
       I am leaving them here to avoid conflicts, but they will be overridden
       by the new class. */
    max-width: 1200px;
    width: 96%;
    margin: 0 auto;
    padding: 0 clamp(0.5rem, 1vw, 1rem);
    box-sizing: border-box;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100%;
}

.team-members-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5rem;
    position: relative;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.vertical-separator {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    background-color: rgba(255, 255, 255, 0.477);
    z-index: 0;
}

.team-member {
    margin-bottom: 0;
    width: calc(50% - 2.5rem);
    min-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: justify;
    padding: 1rem;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.team-member-img {
    width: 256px;
    height: 256px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    margin-bottom: 1.5rem;
    border: 2px solid #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    filter: grayscale(100%);
}

.about-me-content h3 {
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    font-weight: 600;
    color: #fbfbfb;
    margin-top: 0;
    margin-bottom: 1rem;
}

.about-me-content p {
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(30, 30, 35, 0.9));
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.contact-section .section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-section .section-subtitle {
    text-align: center;
    color: #b0b0b0;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    font-weight: 300;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Contact Info Cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: rgba(30, 30, 35, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(194, 110, 220, 0.1), rgba(194, 110, 220, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.2rem;
    flex-shrink: 0;
    color: rgb(197, 197, 197);
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-text h3 {
    color: #ffffff;
    margin: 0 0 0.3rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-text p,
.contact-text a {
    color: #b0b0b0;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #eec0c0;
}

/* Contact Form */
.contact-form {
    background: rgba(30, 30, 35, 0.7);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem 0.5rem 1rem;
    background: rgba(20, 20, 25, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Add this line */
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 2px rgba(194, 110, 220, 0.2);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: 0.3rem;
    font-size: 0.75rem;
    color: white;
}

.submit-btn {
    background: linear-gradient(135deg, white, white);
    color: black;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: #f0f0f0;
}

/* Form Status and Success Message */
.form-status {
    margin-bottom: 1.5rem;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
}

.form-status.error {
    display: block;
    background-color: rgba(220, 38, 38, 0.1);
    color: #f87171;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.form-status.success {
    display: block;
    background-color: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-success-message {
    text-align: center;
    padding: 2rem;
    background: rgba(30, 30, 35, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.form-success-message h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.form-success-message p {
    color: #b0b0b0;
    margin: 0;
}

/* Loading State */
.button-loader {
    display: none;
}

.submit-btn.is-loading .button-text {
    display: none;
}

.submit-btn.is-loading .button-loader {
    display: inline-block;
}

/* Hidden Honeypot Field */
.hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-card {
        padding: 1.2rem;
    }
    
    .contact-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .submit-btn {
        padding: 0.7rem 1.5rem;
    }
}

/* Responsive adjustments for about me section */
@media (max-width: 768px) {
    .about-me-section, .portfolio-section, .services-section, .contact-footer {
        padding: 3rem 0;
        margin-top: 3rem;
    }
    
    .contact-details {
        gap: 1rem;
    }
    
    .contact-details p {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .footer-title {
        margin-bottom: 2rem;
    }
    .content-wrapper {
        width: 98%;
        padding: 0 clamp(0.5rem, 1vw, 1rem);
    }
    .team-members-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .team-member {
        width: 90%;
        min-width: unset;
    }
    .vertical-separator {
        display: none;
    }
}

.portfolio-grid, .services-grid {
    display: grid;
    /* Adjusted minmax to be smaller on mobile to prevent overflow */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.portfolio-item {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 1.5rem;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.portfolio-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.portfolio-item h3 {
    font-size: clamp(1.6rem, 2.5vw, 1.8rem);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

.portfolio-item p {
    font-size: clamp(0.9rem, 1.2vw, 0.95rem);
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    padding: 0 1.5rem;
    flex-grow: 1;
}

.portfolio-link {
    display: inline-block;
    background-color: #333333;
    color: #ffffff;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.portfolio-link:hover {
    background-color: #555555;
    transform: translateY(-2px);
}

.services-content {
    max-width: 1200px;
    width: 96%;
    margin: 0 auto;
    padding: 0 clamp(0.5rem, 1vw, 1rem);
    box-sizing: border-box;
}

.service-item {
    background-color: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.service-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.service-icon {
    width: clamp(150px, 15vw, 256px);
    height: auto;
    margin-bottom: 1.5rem;
}

.service-video {
    width: 100%;
    height: clamp(150px, 20vw, 200px);
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    border-radius: 8px;
}

.service-item h3 {
    font-size: clamp(1.6rem, 2.5vw, 1.8rem);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.service-item p {
    font-size: clamp(0.9rem, 1.2vw, 0.95rem);
    color: #b0b0b0;
    margin-bottom: 0;
}

.footer-content {
    max-width: 800px;
    width: 96%;
    margin: 0 auto;
    padding: 0 clamp(1rem, 2vw, 2rem);
    box-sizing: border-box;
    text-align: left;
}

.footer-title {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    max-width: 100%;
}

.contact-details p {
    margin-bottom: 0.5rem;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
}

.contact-details p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments for Services and Footer */
@media (max-width: 768px) {
    .services-section {
        padding: 3rem 0;
        margin-top: 3rem;
    }
    .contact-footer {
        padding: 3rem 0;
        margin-top: 6rem;
    }
    .content-wrapper {
        width: 98%;
        padding: 0 clamp(0.5rem, 1vw, 1rem);
        text-align: left;
    }
    .portfolio-grid, .services-grid {
        gap: 2rem;
    }
    .service-item:hover {
        transform: none;
    }

    /* Mobile Navigation (Hamburger) */
    .navigation ul.nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 60%;
        padding: 0;
        position: fixed;
        top: 0;
        right: 0;
        background-color: #1a1a1a;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        transition: transform 0.3s ease-in-out;
        transform: translateX(100%);
        z-index: 15;
        height: 100vh;
        overflow-y: auto;
        padding-top: 60px;
    }

    .navigation ul.nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    .navigation ul.nav-links li {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    .navigation ul.nav-links li a {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .navigation ul.nav-links li:last-child a {
        border-bottom: none;
    }

    .hamburger {
        display: flex;
    }

}

/* Specific adjustments for very small screens (e.g., 360px width) */
@media (max-width: 360px) {
    .header {
        padding: 0.8rem 1rem;
    }
    .logo {
        font-size: 1rem;
    }
    .logo-img {
        height: 1.2rem;
    }

    .frame-text {
        font-size: clamp(6vh, 15vw, 15vh);
    }
    .originals {
        font-size: clamp(3vh, 7vw, 7vh);
        letter-spacing: clamp(0.1em, 2vw, 0.45em);
    }
    .middle-tagline {
        font-size: 2.5vh;
        margin-top: 1.5rem;
    }
    .background-x {
        font-size: 12vh;
    }
    .angle-pixel {
        width: 1.8vw;
        height: 1.8vw;
    }
    .angle-pixel.top-left-1 {
        top: -2.5vw;
        left: -2.5vw;
    }
    .angle-pixel.top-left-2 {
        top: calc(-2.5vw + 1.8vw);
        left: calc(-4.3vw);
    }
    .angle-pixel.bottom-right-1 {
        bottom: -2.5vw;
        right:-2.5vw;
    }
    .angle-pixel.bottom-right-2 {
        bottom: calc(-2.5vw + 1.8vw);
        right: calc(-4.3vw);
    }

    .content-wrapper {
        padding: 0 0.8rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .team-member {
        min-width: unset;
        padding: 0.8rem;
    }
    .team-member-img {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }
    .about-me-content h3 {
        font-size: 1.3rem;
    }
    .about-me-content p {
        font-size: 0.85rem;
    }

    .portfolio-grid, .services-grid {
        gap: 1.5rem;
    }
    .portfolio-item h3, .service-item h3 {
        font-size: 1.4rem;
    }
    .portfolio-item p, .service-item p {
        font-size: 0.8rem;
    }
    .portfolio-image, .service-video {
        height: 150px;
    }

    .contact-details p {
        font-size: 0.9rem;
    }
    .footer-title {
        font-size: 1.8rem;
    }

    .navigation ul.nav-links {
        width: 70%;
    }
    .navigation ul.nav-links li {
        margin: 8px 0;
    }
    .navigation ul.nav-links li a {
        font-size: 1rem;
        padding: 0.8rem;
    }
}


/* --- Keyframe Animations --- */

@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
 
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeInScaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll to Top Button */
#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(17, 17, 17, 0.56);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, background-color 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#scrollToTopBtn:hover {
    background-color: rgba(88, 88, 88, 0.5);
}

#scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
}

/* Video Modal Styles */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.video-modal.show-modal {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background-color: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
    max-height: 90vh;
}

#modalVideoPlayer {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    object-fit: contain;
}

.hide-button {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #171717cb;
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    width: auto;
    padding: 0.5rem 1rem;
    height: auto;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10001;
    border: 1px solid rgba(61, 61, 61, 0.69);
    transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.hide-button:hover {
    background-color: #8a8a8a79;
    transform: translateX(-50%) scale(1.05);
}

/* Responsive adjustments for video modal */
@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
        padding: 5px;
        max-height: 95vh;
    }

    .hide-button {
        bottom: -40px;
        width: auto;
        padding: 0.4rem 0.8rem;
        height: auto;
        font-size: 0.8rem;
    }
}
