@import url('https://fonts.cdnfonts.com/css/devil-breeze');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');
@import url('https://fonts.cdnfonts.com/css/bimbo');
@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&display=swap');

/* --- Global Reset & Base Styles --- */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style-type: none;
}

/* Base Body Styles */
body {
    margin: 0;
    font-family: 'Black Ops One', cursive;
    font-size: 14px;
    background-color: #0A192F;
    color: #E5E7EB;
    background-image: linear-gradient(to bottom, #1A2A4F, #0A192F);
    background-size: cover;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Hide scrollbar for aesthetics */
*::-webkit-scrollbar {
    width: 0;
}

/* --- Fixed Header / Navigation Styles --- */
header {
    padding-block: 1em;
    position: fixed;
    top: 0;
    width: 200px;
    height: 100vh;
    left: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    background-color: #1B2A41;
    background-image: repeating-linear-gradient(to right, transparent 0 500px, #eee1 500px 501px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 1em;
    padding-right: 1em;
}

header .content-fit {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: unset !important;
    padding-block: unset !important;
    z-index: 2;
    width: 100%;
}

header .logo {
    margin-bottom: 2em;
    font-size: 1.5em;
    font-weight: bold;
}

header .logo a {
    text-decoration: none;
    font-family: 'Black Ops One', cursive;
    background: linear-gradient(to right, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header nav {
    width: 100%;
}

header nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0;
}

header nav ul li {
    width: 100%;
}

header nav ul li a {
    display: block;
    padding: 10px 15px;
    background-color: #0A192F;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
    color: #A6E3F4;
    font-weight: bold;
    border: 2px solid transparent;
}

header nav ul li a:hover {
    background-color: #1B2A41;
    color: #4facfe;
    transform: translateY(-2px);
    border-color: #4facfe;
}

/* --- Main Content Area Wrapper --- */
main {
    margin-left: 200px;
    width: calc(100% - 200px);
}

/* --- Section Base Styles --- */
main .section {
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 1em;
    box-sizing: border-box;
}

main .section .content-fit {
    width: min(1200px, 90vw);
    max-width: 100%;
    margin: auto;
    min-height: 100vh;
    padding-block: 6em;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* General H1 & H2 Styling for Section Titles */
h1 {
    font-family: 'Black Ops One', cursive;
    font-size: 3.5em;
    color: #E5E7EB;
    margin-bottom: 0.5em;
    line-height: 1.2;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7);
    width: 100%;
}

h2 {
    font-family: 'Black Ops One', cursive;
    font-size: 3em;
    color: #64FFDA;
    text-align: center;
    width: 100%;
    margin-bottom: 1.5em;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

/* General CTA Button Styling */
.cta-button {
    display: inline-block;
    padding: 0.8em 2em;
    background-color: #4facfe;
    color: #1B2A41;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 1.5em;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #00f2fe;
    color: #0A192F;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.4);
}

/* --- Hero Section Styles --- */
.hero-section {
    background: none;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
}

.hero-section .hero-content {
    align-items: center;
    text-align: center;
}

.hero-section p {
    font-size: 1.3em;
    color: #A6E3F4;
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    margin: 0 auto;
    align-items: center;
}

/* NEW: Globe image in Hero Section */
.globe-image {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #4facfe;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.5);
    margin-bottom: 2em;
    position: relative;
    z-index: 3;
}

/* REMOVED: spin-slow animation keyframes */

/* --- About Me Section Styles --- */
.about-section {
    background-color: #1B2A41;
    color: #E5E7EB;
}

.about-section .content-fit {
    align-items: center;
    text-align: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
    max-width: 800px;
}

.about-content p {
    font-size: 1.1em;
    line-height: 1.7;
    text-align: justify;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* --- Services Section Styles --- */
.services-section {
    background-color: #0A192F;
    color: #E5E7EB;
}

.services-section .content-fit {
    align-items: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    background-color: rgba(27, 42, 65, 0.7);
    border: 1px solid #334e6e;
    border-radius: 8px;
    padding: 1.5em;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px #00f2fe;
}

.service-item h3 {
    font-family: 'Poppins', sans-serif;
    color: #00f2fe;
    font-size: 1.4em;
    margin-bottom: 0.8em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.service-item p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #E5E7EB;
}

/* --- Portfolio Section Styles --- */
.portfolio-section {
    background-color: #1B2A41;
    color: #E5E7EB;
}

.portfolio-section .content-fit {
    align-items: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2em;
    width: 100%;
}

.portfolio-item {
    background-color: rgba(10, 25, 47, 0.8);
    border: 1px solid #334e6e;
    border-radius: 8px;
    padding: 1em;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portfolio-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.6);
}

.portfolio-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 1em;
    border: 2px solid #4facfe;
    transition: border-color 0.3s ease;
}

.portfolio-item img:hover {
    border-color: #00f2fe;
}

.portfolio-item h3 {
    font-family: 'Poppins', sans-serif;
    color: #00f2fe;
    font-size: 1.3em;
    margin-bottom: 0.5em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.portfolio-item p {
    font-size: 0.9em;
    line-height: 1.5;
    color: #E5E7EB;
    flex-grow: 1;
    margin-bottom: 1em;
}

.project-links {
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 1em;
    width: 100%;
}

.project-button {
    display: inline-block;
    padding: 0.7em 1.5em;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
}

.live-demo {
    background-color: #4facfe;
    color: #0A192F;
    border: 1px solid #4facfe;
}

.live-demo:hover {
    background-color: transparent;
    color: #4facfe;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.5);
}

.view-code {
    background-color: transparent;
    color: #00f2fe;
    border: 1px solid #00f2fe;
}

.view-code:hover {
    background-color: #00f2fe;
    color: #0A192F;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

/* --- Testimonials Section Styles --- */
.testimonials-section {
    background-color: #0A192F;
    color: #E5E7EB;
}

.testimonials-section .content-fit {
    align-items: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2em;
    width: 100%;
}

.testimonial-item {
    background-color: rgba(27, 42, 65, 0.7);
    border: 1px solid #334e6e;
    border-radius: 8px;
    padding: 1.5em;
    text-align: center;
    font-style: italic;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
}

.testimonial-item p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 1em;
    color: #A6E3F4;
}

.testimonial-item h4 {
    font-size: 1em;
    color: #4facfe;
    font-weight: bold;
}

/* --- Contact Section Styles --- */
.contact-section {
    background-color: #1B2A41;
    color: #E5E7EB;
}

.contact-section .content-fit {
    align-items: center;
}

.contact-intro {
    font-size: 1.1em;
    margin-bottom: 2em;
    text-align: center;
    max-width: 600px;
    color: #A6E3F4;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3em;
    width: 100%;
    max-width: 900px;
    justify-content: center;
    align-items: flex-start;
}

.contact-form {
    flex: 1 1 45%;
    min-width: 300px;
    background-color: rgba(10, 25, 47, 0.8);
    padding: 2em;
    border-radius: 8px;
    border: 1px solid #334e6e;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-form label {
    display: block;
    font-size: 1em;
    margin-bottom: 0.5em;
    color: #4facfe;
    font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.8em;
    margin-bottom: 1.5em;
    border: 1px solid #334e6e;
    border-radius: 5px;
    background-color: #0A192F;
    color: #E5E7EB;
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    box-sizing: border-box;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 8px rgba(79, 172, 254, 0.4);
}

.contact-form textarea {
    resize: vertical;
}

.contact-info {
    flex: 1 1 45%;
    min-width: 250px;
    background-color: rgba(10, 25, 47, 0.8);
    padding: 2em;
    border-radius: 8px;
    border: 1px solid #334e6e;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.contact-info h3 {
    font-family: 'Poppins', sans-serif;
    color: #00f2fe;
    font-size: 1.5em;
    margin-bottom: 1em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.contact-info p {
    font-size: 1.1em;
    margin-bottom: 0.8em;
    line-height: 1.6;
}

.contact-info a {
    color: #A6E3F4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #4facfe;
    text-decoration: underline;
}

.social-links {
    margin-top: 1.5em;
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.social-links a {
    background-color: #4facfe;
    color: #0A192F;
    padding: 0.6em 1em;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    background-color: #00f2fe;
    color: #0A192F;
    transform: translateY(-3px);
    text-decoration: none;
}

/* --- Footer Styles --- */
footer {
    background-color: #1B2A41;
    color: #E5E7EB;
    text-align: center;
    padding: 1.5em 1em;
    font-size: 0.9em;
    border-top: 1px solid #334e6e;
    margin-left: 200px;
}

footer .content-fit {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Responsive Adjustments --- */
@media screen and (max-width: 1023px) {
    header {
        position: relative;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-left: 1em;
        padding-right: 1em;
        box-sizing: border-box;
    }

    header .content-fit {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    header nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 10px;
        margin-top: 0;
    }

    header nav ul li {
        width: auto;
    }

    header nav ul li a {
        padding: 8px 12px;
        font-size: 0.9em;
        width: auto;
    }

    main {
        margin-left: 0;
        width: 100%;
    }

    main .section {
        padding-left: 0;
    }

    main .section .content-fit {
        max-width: 90vw;
        min-height: auto;
        padding-block: 4em;
    }

    .hero-section h1 {
        font-size: 2.8em;
        text-align: center;
    }

    .hero-section p {
        font-size: 1.1em;
        text-align: center;
    }

    .hero-section .hero-content {
        align-items: center;
    }

    h2 {
        font-size: 2.5em;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .services-grid,
    .portfolio-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
        padding: 0 1em;
    }

    .contact-content {
        flex-direction: column;
        align-items: center;
        gap: 2em;
    }

    .contact-form,
    .contact-info {
        min-width: unset;
        width: 100%;
    }

    footer {
        margin-left: 0;
    }
}

@media screen and (max-width: 767px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 1em 0;
    }

    header .content-fit {
        flex-direction: column;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 1em;
    }

    header nav ul li a {
        padding: 10px 15px;
        font-size: 1em;
        width: 180px;
    }

    .hero-section h1 {
        font-size: 2em;
    }

    .hero-section p {
        font-size: 1em;
    }

    h2 {
        font-size: 2em;
    }

    .about-content p {
        font-size: 1em;
    }

    .portfolio-item img {
        height: 200px;
        object-fit: cover;
    }

    .service-item h3,
    .portfolio-item h3,
    .testimonial-item p,
    .contact-form label,
    .contact-info h3 {
        font-size: 1.2em;
    }

    .contact-intro {
        font-size: 1em;
    }

    .social-links {
        justify-content: center;
    }
}

/* Styles that might be from your original code but not conflicting */
#container3D {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* NEW: Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #1B2A41;
    margin: 15% auto;
    padding: 2em;
    border: 1px solid #4facfe;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 242, 254, 0.5);
    position: relative;
}

.close-btn {
    color: #4facfe;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: #00f2fe;
    text-decoration: none;
}

.mockup-form h3 {
    text-align: center;
    color: #64FFDA;
    margin-bottom: 1em;
    font-size: 2em;
}

.mockup-form label,
.mockup-form input,
.mockup-form textarea,
.mockup-form button {
    display: block;
    width: 100%;
}

.mockup-form label {
    margin-bottom: 0.5em;
    color: #A6E3F4;
}

.mockup-form input,
.mockup-form textarea {
    padding: 0.8em;
    margin-bottom: 1.5em;
    border: 1px solid #334e6e;
    border-radius: 5px;
    background-color: #0A192F;
    color: #E5E7EB;
}

.mockup-form textarea {
    resize: vertical;
}