:root {
    --primary-blue: #0033FF;
    /* Vibrant blue from mockup */
    --text-white: #FFFFFF;
    --text-dark: #1A1A1A;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-image: url('img/BG%20paper.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-dark);
}

/* Header Styles */
.main-header {
    padding: 2rem;
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

.header-container {
    background-color: var(--primary-blue);
    width: 100%;
    max-width: 1200px;
    height: 80px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: 0 10px 20px rgba(0, 51, 255, 0.2);
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
    /* Assuming logo might need white filter if it's black, 
       but assuming it's prepared for dark bg based on mockup context.
       If it's not, we might need filter: brightness(0) invert(1); */
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

.main-nav a:hover {
    opacity: 0.8;
}

.btn-mail {
    background-color: var(--text-white);
    color: var(--text-dark);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease;
}

.btn-mail:hover {
    transform: scale(1.05);
}

/* Hero Section Styles */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1400px;
    padding-left: 4rem;
    padding-right: 4rem;
    margin: 0 auto;
    /* Adjust for header */
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 5;
}

.title-portfolio {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 700;
    font-size: 8rem;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.title-name {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 4rem;
    color: var(--primary-blue);
    line-height: 1.1;
    margin-bottom: 4rem;
}

.quote-container {
    max-width: 400px;
}

.quote-text {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.quote-author {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--primary-blue);
    font-size: 1.2rem;
}

/* Hero Image Styles */
.hero-image {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.image-wrapper {
    position: relative;
    /* Create the white outline effect if the image doesn't have it */
    /* Assuming the image is a cutout. 
       If we need to add a white border/sticker effect via CSS: */
    filter: drop-shadow(0 0 0 5px white);
    /* Note: This filter trick works best on transparent PNGs */
}

.image-wrapper img {
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .title-portfolio {
        font-size: 6rem;
    }

    .title-name {
        font-size: 3rem;
    }

    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem;
    }

    .hero-content {
        align-items: center;
        margin-bottom: 3rem;
    }

    .hero-image {
        justify-content: center;
    }

    .main-nav ul {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
        border-radius: 30px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .title-portfolio {
        font-size: 4rem;
    }

    .title-name {
        font-size: 2.5rem;
    }
}

/* About Section Styles */
.about-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--text-white);
    position: relative;
    z-index: 5;
}

.about-container {
    max-width: 800px;
    padding: 0 2rem;
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    margin-top: 4rem;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    /* For animation */
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-title::before,
.section-title::after {
    content: '';
    display: block;
    height: 1px;
    width: 50px;
    background-color: #d0d0d0;
}

.about-content p {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 2rem;
    opacity: 0;
    /* For animation */
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Stagger delays for text */
.about-content p:nth-child(1) {
    transition-delay: 0.1s;
}

.about-content p:nth-child(2) {
    transition-delay: 0.2s;
}

.about-content p:nth-child(3) {
    transition-delay: 0.3s;
}

/* Global Highlight Style */
.highlight {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 700;
    color: var(--primary-blue);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    opacity: 0;
    /* For animation */
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: 0.4s;
}

/* Animation trigger class */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--primary-blue);
    border-radius: 12px;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-blue);
    color: var(--text-white);
}

/* Logo Banner Styles */
.logo-banner {
    width: 100%;
    background-color: var(--primary-blue);
    padding: 2rem 0;
    overflow: hidden;
    display: flex;
    white-space: nowrap;
}

.banner-track {
    display: flex;
    gap: 4rem;
    align-items: center;
    animation: scroll 20s linear infinite;
    padding-right: 4rem;
    /* Match gap */
}

.banner-track img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .about-content p {
        font-size: 1.2rem;
    }

    .banner-track img {
        height: 40px;
    }
}

/* Projects Section Styles */
.projects-section {
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    background-color: var(--text-white);
}

.projects-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projects-heading {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 5rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.project-card {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1 / 1 !important;
    width: 100%;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background-color: #fff;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.btn-view-more {
    background-color: var(--primary-blue);
    color: var(--text-white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-view-more:hover {
    transform: scale(1.05);
    background-color: #0026cc;
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-heading {
        font-size: 3rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Tools Section Styles */
.tools-section {
    padding-bottom: 4rem;
    display: flex;
    justify-content: center;
    background-color: var(--text-white);
}

.tools-container {
    max-width: 800px;
    width: 100%;
}

/* Specific styling for Tools title to match mockup */
.tools-section .section-title {
    color: var(--text-dark);
    /* Override blue for Tools title */
    font-size: 3rem;
    /* Make it larger like the mockup */
    justify-content: flex-start;
    /* Align left like mockup */
    padding-left: 0;
}

.tools-section .section-title::before,
.tools-section .section-title::after {
    display: none;
    /* Remove lines for this specific title */
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.tool-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.tool-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.tool-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tool-header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.tool-name {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-blue);
    text-transform: uppercase;
}

.tool-desc {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #666;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: #E0E0E0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-blue);
    border-radius: 3px;
    width: 0;
    /* Start at 0 for animation */
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 768px) {
    .tool-item {
        gap: 1rem;
    }

    .tool-icon {
        width: 40px;
        height: 40px;
    }
}

/* CV Button Styles */
.cv-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-cv {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: fit-content;
    cursor: pointer;
}

.btn-cv:hover {
    background-color: var(--primary-blue);
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 51, 255, 0.15);
}

.btn-preview {
    background-color: rgba(0, 51, 255, 0.05);
    /* Slight tint for secondary action */
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-blue);
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .cv-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Filter Button Styles */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-blue);
    color: var(--text-white);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Styles */
.main-footer {
    background-color: var(--primary-blue);
    padding: 4rem 2rem;
    color: var(--text-white);
    display: flex;
    justify-content: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 100%;
    max-width: 1200px;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-social-icon {
    background-color: var(--text-white);
    color: var(--primary-blue);
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.footer-social-icon:hover {
    transform: translateY(-5px);
}

.footer-email {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 3rem;
    /* Large size as per mockup */
    color: var(--text-white);
    text-decoration: none;
    text-align: center;
    word-break: break-all;
    /* Ensure it doesn't overflow on small screens */
}

.footer-nav {
    display: flex;
    gap: 3rem;
}

.footer-nav a {
    color: var(--text-white);
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 0.8;
}

.footer-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Make logo white */
}

@media (max-width: 768px) {
    .footer-email {
        font-size: 1.5rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
}

/* Contact Page Styles */
.contact-page-content {
    padding-bottom: 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-main-title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 5rem;
    color: var(--primary-blue);
    line-height: 1.1;
}

.highlight-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 700;
}

.contact-form-container {
    background-color: #555555;
    /* Dark grey from mockup */
    padding: 3rem;
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-white);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    background-color: #666666;
    /* Slightly lighter grey */
    border: none;
    border-radius: 10px;
    padding: 1rem;
    color: var(--text-white);
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
    transition: background-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #cccccc;
}

.form-group input:focus,
.form-group textarea:focus {
    background-color: #777777;
}

.btn-submit {
    background-color: var(--text-white);
    color: var(--primary-blue);
    border: none;
    border-radius: 30px;
    padding: 1rem;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 1rem;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .contact-main-title {
        font-size: 3rem;
    }

    .contact-form-container {
        padding: 1.5rem;
        width: 90%;
    }
}