@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
@font-face {
    font-family: 'Respira';
    src: url('fonts/Respira-Black.otf') format('opentype'); 
    font-weight: normal;
    font-style: normal; 
}

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

body {
    font-family: 'Monstera', sans-serif; 
    background-color: #1C1C1C;
    color: #F1F1F1;
    line-height: 1.6;
}

header {
    background: transparent; 
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

html {
    scroll-behavior: smooth;
}
.hero {
    height: 100vh; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    background-image: url('img/matteblack.jpg'); 
    background-size: cover;
    background-position: center top; 
    background-color: #1C1C1C; 
    position: relative; 
    overflow: hidden; 
}

.hero::before {
    content: '';
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
    z-index: 1; 
}


header {
    background: rgba(28, 28, 28, 0.8); 
    padding: 20px;
    position: fixed; 
    top: 0; 
    left: 50%;
    transform: translateX(-50%); 
    z-index: 1000; 
    width: 100%; 
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    margin: 0; 
    padding: 0; 
}

nav ul li a {
    position: relative; 
    color: #d6a95e; 
    text-decoration: none; 
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.3s ease; 
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #d6a95e; 
    left: 0;
    bottom: -5px; 
    transition: width 0.3s ease; 
}

nav ul li a:hover {
    color: #d6aa5ec5; 
}

nav ul li a:hover::after {
    width: 100%; 
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-5px); 
    }
    100% {
        transform: translate(-50%, -50%) translateY(0);
    }
}

/* Skeleton Image */
.hero-image {
    position: absolute; 
    top: 50%; 
    left: 45%; 
    transform: translate(-50%, -50%); 
    z-index: 2; 
    animation: float 3s ease-in-out infinite;
}

.hero-image img {
    height: auto; 
    width: auto; 
}

/* Head Image */
.hero-skeleton-head {
    position: absolute; 
    top: 46%; 
    left: 45%; 
    transform: translate(-50%, -50%); 
    z-index: 3; 
    animation: float 3s ease-in-out infinite; 
}

.hero-skeleton-head img {
    height: auto; 
    width: auto; 
}
@media (max-width: 768px) {
    .hero h1 {
        font-size: 120px; 
        top: 40%; 
    }

    .hero p {
        font-size: 1.2rem; 
        top: 50%; 
    }
    /* Hide Skeleton Image */
    .hero-skeleton-head {
        display: none; 
    }
    .hero-image {
        display: none;
    }
}
@media (max-width: 480px) {
    .hero h1 {
        font-size: 80px; 
        top: 30%; 
    }

    .hero p {
        font-size: 1rem; 
        top: 45%; 
    }
    /* Hide Skeleton Image */
    .hero-skeleton-head {
        display: none; 
    }
    .hero-image {
        display: none; 
    }
}

/* Heading and Text Styling */
.hero h1 {
    font-family: 'Respira', sans-serif; 
    font-size: 220px;
    margin-bottom: 20px;
    color: #d6a95e; 
    text-shadow: 12px 5px 10px rgb(0 0 0 / 65%);
    position: relative; 
    z-index: 2; 
}

.hero p {
    font-family: 'Monstera', sans-serif; 
    font-size: 1.5rem;
    color: #f1f1f1ca; 
    margin-bottom: 30px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6); 
    position:absolute;
    z-index: 9;
    right: 317px;
}

/* CTA Button Styling */
.cta {
    background-color: #d6a95e !important;
    color: #1C1C1C;
    padding: 10px 15px;
    text-transform: uppercase;
    font-weight: bold;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: -1px 2px 9px #cf9c44;
    position: relative; 
    border-radius: 5px;
    z-index: 10; 
    left: 65%;
    top: 53px;
}
.cta-about {
    background-color: #d6a95e !important;
    color: #1C1C1C;
    padding: 10px 15px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: -1px 2px 9px #cf9c44;
    position: relative; 
    border-radius: 5px;
    z-index: 10; 
    top: 20px;
}
.cta-about:hover {
    background-color: #d6a95e !important; 
    transform: translateY(-5px); 
    box-shadow: 0 12px 20px #d6a95e; 
}
.cta-project{
    background-color: #d6a95e; 
    color: #1C1C1C;
    padding: 15px 30px;
    text-transform: uppercase;
    font-weight: bold;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 15px #cf9c44;
    position: relative; 
    border-radius: 5px;
    z-index: 10; 
}
.cta-project:hover{
    background-color: #d6a95e !important; 
    transform: translateY(-5px); 
    box-shadow: 0 12px 20px #d4ae6b; 
}
.cta-contact{
    background-color: #d6a95e; 
    color: #1C1C1C;
    padding: 15px 30px;
    text-transform: uppercase;
    font-weight: bold;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 15px #422424c7;
    position: relative; 
    border-radius: 5px;
    z-index: 10; 
}
.cta-contact:hover{
    background-color: #d6a95e !important; 
    transform: translateY(-5px); 
    box-shadow: 0 12px 20px #d6a95e; 
}
.cta:hover {
    background-color: #d6a95e !important; 
    transform: translateY(-5px); 
    box-shadow: 0 12px 20px #d6a95e; 
}


/* Animation */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* about me */
.about-section {
    padding: 60px 20px;
    background-color: #1C1C1C; 
    color: #F1F1F1;
    text-align: center;
}

.about-content {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    max-width: 1200px; 
    margin: auto; 
}

.about-image {
        width: 400px; 
        height: auto; 
        border-radius: 50%; 
        margin-right: 20px; 
    }

.about-text {
    flex: 1; 
    text-align: left; 
}

.about-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #d6a95e; 
    margin-bottom: 20px;
}

.about-section p {
    max-width: 800px; 
    margin: auto;
    font-family: 'Monstera', sans-serif; 
    font-size: 1rem;
}

/* Skills Section */
.skills-section {
    padding: 60px 20px;
    background-color: #1C1C1C;
    color: #F1F1F1;
    text-align: center;
}

.skills-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #d6a95e;
    margin-bottom: 40px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 30px; 
    justify-items: center; 
}

.skill-item img {
    height: 80px;
    margin-bottom: 10px;
}


.skill-item h3 {
    font-family: 'Monstera', sans-serif; 
    font-size: 1.2rem;
    color: #d6a95e;
}
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for medium screens */
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for smaller screens */
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr; /* 1 column for very small screens */
    }
}

/* Project Section */
.projects-section {
    padding: 60px 20px;
    background-color: #1C1C1C;
    color: #F1F1F1;
    text-align: center;
}

/* Title Styles */
.projects-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #d6a95e;
    margin-bottom: 40px;
}

/* Grid Container */
.project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    padding: 0 10px; 
}

/* Project Card */
.project-card {
    position: relative;
    overflow: hidden; 
    border-radius: 10px; 
    transition: transform 0.3s ease; 
}

/* Image styles - Start with grayscale */
.project-card img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: grayscale(100%); /* Make the image grayscale */
    transition: filter 0.3s ease, transform 0.3s ease; /* Add filter transition */
}

/* Hover effect - Restore original color */
.project-card:hover img {
    filter: grayscale(0%); /* Remove grayscale */
    transform: scale(1.1); /* Add zoom effect */
}

/* Overlay for project details */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Make overlay semi-transparent */
    color: #d6a95e;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0; 
    transition: opacity 0.3s ease; 
    padding: 20px;
    text-align: center;
}

/* Show overlay on hover */
.project-card:hover .overlay {
    opacity: 1; 
}

/* Overlay title */
.overlay h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem; 
    margin: 10px 0; 
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7); /* Add text shadow for better visibility */
}

/* Overlay paragraph */
.overlay p {
    font-family: 'Monstera', sans-serif; 
    margin: 10px 0; 
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7); /* Add text shadow for better visibility */
}

/* Button hover effect */
.cta:hover {
    background-color: #d6a95e; 
    transform: translateY(-2px); 
}
/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
}

@media (max-width: 480px) {
    .project-grid {
        grid-template-columns: 1fr; /* 1 column on small screens */
    }
}


/* Contact Section */
.contact-section {
    padding: 60px 20px;
    background-color: #1C1C1C;
    color: #F1F1F1;
    text-align: center;
}

.contact-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem; 
    color: #d6a95e;
    margin-bottom: 40px;
    text-shadow: 2px 6px 4px black;
}

form {
    max-width: 600px;
    margin: auto;
}

form input, form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #333;
    border: none;
    color: #d6a95e;
    font-family: 'Roboto', sans-serif;
}

form button {
    background-color: #d6a95e;
    color: #1C1C1C;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #d4b072;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .contact-section {
        padding: 40px 10px; /* Reduce padding for smaller screens */
    }

    .contact-section h2 {
        font-size: 2rem; /* Slightly smaller font size for mobile */
        margin-bottom: 30px;
    }

    form {
        padding: 0 10px; /* Add padding to the form for smaller screens */
    }

    form input, form textarea {
        padding: 12px; /* Adjust padding for inputs and textareas */
        margin-bottom: 15px;
    }

    form button {
        padding: 12px 25px; /* Adjust button size */
    }
}

@media (max-width: 480px) {
    .contact-section h2 {
        font-size: 1.5rem; /* Further reduce font size for smaller devices */
        margin-bottom: 20px; 
    }

    form {
        max-width: 90%; /* Make the form width more responsive */
    }

    form input, form textarea {
        padding: 10px; /* Further adjust padding */
    }

    form button {
        padding: 10px 20px; /* Further adjust button size */
    }
}

/* Parallax Section */
.parallax-section {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.skills-section,
.contact-section {
    position: relative; 
    background-image: url('img/matteblack.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
}

/* Add an overlay with opacity */
.skills-section::before,
.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

/* Ensure content stays above the overlay */
.skills-section * ,
.contact-section * {
    position: relative;
    z-index: 1;
}

/* media */
@media (max-width: 768px) {
    .hero, .parallax-section {
        background-attachment: scroll; /* Disable parallax effect on mobile */
    }
}
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll; /* Disable parallax effect on mobile */
    }
}
@media (max-width: 768px) {
    .about-content {
        flex-direction: column; /* Stack items vertically on smaller screens */
        text-align: center; /* Center text on small screens */
    }
    
    .about-image {
        margin: 0 0 20px 0; /* Remove right margin for a vertical layout */
    }
}
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
}

@media (max-width: 480px) {
    .project-grid {
        grid-template-columns: 1fr; /* 1 column on small screens */
    }
}
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #333;
    color: #d6a95e;
    padding: 20px;
    border: 2px solid #ccb182;
    z-index: 1000; 
    text-align: center;
}

.popup button {
    background-color: #d6a95e;
    color: #333;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

.footer-section {
    padding: 20px;
    background-color: #1C1C1C;
    color: #d6a95e;
    text-align: center;
    font-size: 1rem;
}

/* Optional: Adjust the email link style if necessary */
.footer-section a {
    color: #d6a95e; 
    text-decoration: none; 
}
.footer-section a:hover {
    text-decoration: underline; 
}
