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


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: black; 
}

/* Container and Video */
.container {
    position: relative;
    width: 100%;
    height: 380px; 
    overflow: hidden;
}

.background-video {
    position: absolute;
    right: 0;
    width: 100%;
    height: 300px; 
    object-fit: cover;
}

.video-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

/* Overlay (Dark Gradient) */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.1));
}

/* Profile Section */
.profile-section {
    position: absolute;
    bottom: 5px; 
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.profile-circle {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer; /* Make the profile image clickable */
}

/* About Me Section */
.about-container {
    display: flex;
    flex-wrap: wrap; /* Allow children to wrap on smaller screens */
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 10px;
    max-width: 100%;
}

.description-container {
    flex: 2;
    margin-right: 70px; 
}

.about-title {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 10px;
}

.about-description {
    font-size: 16px;
    line-height: 1.6;
    color: #E0E0E0;
}

/* Contact Info and Buttons */
.contact-container {
    flex: 1.5;
    display: flex;
    flex-direction: column;  
}

.contact-info {
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 16px;
    color: #E0E0E0;
}

.button-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px; 
}

.contact-btn {
    padding: 10px 20px;
    background-color: #FFD700;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

.contact-btn:hover {
    background-color: #FFC107; 
}

/* Modal Styles */
.modal {
    display: none;  
    position: fixed;
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); 
    overflow: auto;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
    object-fit: cover;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Projects Section */
.projects-sections {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 20px;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.projects-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    width: 100%;
}

/* Project Container */
.project-container {
    width: 100%;
    max-width: 500px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #f9f9f9;
    transition: transform 0.3s ease-in-out;
}

.project-container:hover {
    transform: scale(1.05);
    background-color: #ffffff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.project-container h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.project-container p {
    font-size: 14px;
    margin-bottom: 10px;
    color: #666;
    text-align: center;
}

.preview-button {
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

.preview-button:hover {
    background-color: #45a049;
    transform: scale(1.1);
}

.video-container iframe {
    width: 100%;
    height: 315px;
    border-radius: 8px;
}

.project-image {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 8px;
}

/* Media Queries */
@media (max-width: 768px) {
    .profile-circle {
        width: 150px;
        height: 150px;
    }

    .about-container {
        flex-direction: column; 
        padding: 15px;
        gap: 30px;
    }

    .contact-btn {
        width: 100%; 
    }

    .about-title {
        font-size: 20px;
    }

    .about-description {
        font-size: 14px;
    }

    .project-container {
        width: calc(50% - 20px);
        padding: 10px;
    }

    .project-container h2 {
        font-size: 18px;
    }

    .caution-message {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .project-container {
        width: calc(100% - 20px);
    }
 
}

/* Close Button Styles */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    background-color: rgba(190, 85, 85, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    padding: 5px 10px;
    cursor: pointer;
    z-index: 1;
}

.close-btn:hover {
    background-color: #ff0000;
}

/* Caution Message Styling */
.caution-message {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 15px;
    margin-top: 30px;
    font-size: 16px;
    text-align: center;
    border-radius: 5px;
}

.caution-message a {
    color: #007bff;
    text-decoration: none;
}

.caution-message a:hover {
    text-decoration: underline;
}

/* Modal Visibility */
.project-container.hide {
    display: none;
}

#projectsModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    padding-left: 40px;
}

.projects-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
/* Animista focus-in-expand-fwd animation */
@-webkit-keyframes focus-in-expand-fwd {
    0% {
      letter-spacing: -0.5em;
      -webkit-transform: translateZ(-800px);
              transform: translateZ(-800px);
      -webkit-filter: blur(12px);
              filter: blur(12px);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateZ(0);
              transform: translateZ(0);
      -webkit-filter: blur(0);
              filter: blur(0);
      opacity: 1;
    }
  }
  @keyframes focus-in-expand-fwd {
    0% {
      letter-spacing: -0.5em;
      -webkit-transform: translateZ(-800px);
              transform: translateZ(-800px);
      -webkit-filter: blur(12px);
              filter: blur(12px);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateZ(0);
              transform: translateZ(0);
      -webkit-filter: blur(0);
              filter: blur(0);
      opacity: 1;
    }
  }
  
  .focus-in-expand-fwd {
    -webkit-animation: focus-in-expand-fwd 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
            animation: focus-in-expand-fwd 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
  }
  .justified-text {
    text-align: justify;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 800px;
    font-size: 16px;
    font-family: 'Arial', sans-serif;
}
  