/* styles.css */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #0d1117;
    color: #ffffff;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #1c1c1c;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
/* Burger menu styles */
.burger {
    display: none; /* Hidden by default */
    font-size: 1.5em;
    color: #f5f5f5;
    cursor: pointer;
}

/* Navigation links (hidden by default for mobile) */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    transition: transform 0.3s ease-in-out;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
        background: #1c1c1c;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        padding: 15px;
        transform: translateX(100%); /* Initially hidden off-screen */
        box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.5);
    }

    .burger {
        display: block; /* Show the burger menu */
    }
}

/* Active state for navigation */
.nav-links.nav-active {
    transform: translateX(0); /* Slide-in effect */
}

.left-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #f5f5f5;
    margin-bottom: 10px; /* Space between logo and social icons */
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    text-decoration: none;
    font-size: 1.4em;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #333, #555);
    color: #fff;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #1f6feb;
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(31, 111, 235, 0.5);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
    margin-top: 5px; /* Slight alignment tweak for centering */
}

.nav-links li a {
    text-decoration: none;
    color: #f5f5f5;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #58a6ff;
}


.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    text-decoration: none;
    font-size: 1.4em;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000; /* Black background for circles */
    color: #fff; /* White icon color */
    transition: background 0.3s, transform 0.3s;
}

.social-icons a:hover {
    background: #0077b5; /* Highlighted color */
    transform: scale(1.1); /* Slight pop effect */
}
/* //////////////////////////////////////// */

.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    background: #0d1117; /* Fallback background color */
    background: url('fallback.jpg') no-repeat center center/cover;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3em;
    color: #ffffff; /* Ensure text color is white */
    text-shadow: 8px 8px 8px rgba(0, 0, 0, 0.936); /* Subtle shadow */
}

.hero-content p {
    font-size: 1.5em;
    margin: 10px 0;
    color: #ffffff;
    text-shadow: 8px 8px 8px rgba(0, 0, 0, 0.9); /* Slightly lighter shadow */
}

.hero-content .btn {
    display: inline-block;
    padding: 10px 20px;
    background: #58a6ff;
    color: #0d1117;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8); /* Button shadow */
}

.hero-content .btn:hover {
    background: #1f6feb;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.8); /* Stronger shadow on hover */
}

.headshot {
    width: 150px; /* Adjust width as needed */
    height: 150px; /* Keep height proportional */
    border-radius: 50%; /* Circular shape */
    border: 3px solid #ffffff; /* Subtle white border for separation */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Soft shadow for depth */
    margin-bottom: 20px; /* Space between the image and the heading */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add hover effect */
}

.headshot:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.4); /* Bright highlight on hover */
}


.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    display: flex; /* Ensure consistent alignment */
    justify-content: center;
    align-items: center;
}

.video-slide {
    position: absolute;
    width: auto; /* Maintain aspect ratio */
    height: 100%; /* Fill the height of the container */
    object-fit: cover; /* Ensure the video covers the container while maintaining aspect ratio */
    min-width: 100%; /* Prevent gaps on small screens */
    min-height: 100%; /* Ensure it covers the container height */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: brightness(0.7) contrast(1); /* Adjust video appearance */
    pointer-events: none; /* Prevent interaction with the video */
}

.video-slide.active {
    opacity: 1; /* Make the active video visible */
}

@media (max-width: 768px) {
    .video-slide {
        height: auto; /* Allow height to adjust for smaller screens */
        width: 100%; /* Set width to container width */
        object-fit: cover; /* Maintain aspect ratio */
    }
}

/* For iOS-specific fixes */
@media screen and (max-width: 768px) and (orientation: portrait) {
    .video-slide {
        object-fit: fill; /* Prevent squeezing on portrait iOS */
        filter: brightness(0.8); /* Make the video slightly darker for readability */
    }
}

/* ////////////////////////////////////////////////// */
.about p{
    font-size: 1em;
}
/* ///////////////////////////////////////////////// */
.hero-content h1 {
    font-size: 1.5em;
}

.hero-content p {
    font-size: 1.5em;
    margin: 10px 0;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #58a6ff;
    color: #0d1117;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background: #1f6feb;
}

.about, .projects, .contact {
    padding: 80px 20px;
    text-align: center;
}

/* Projects Section */
.projects {
    padding: 50px 0; /* Adds spacing around the section */
    text-align: center;
    position: relative; /* Helps in positioning child elements */
}

.slider-container {
    display: flex;
    flex-direction: column; /* Align scrollbar and slider vertically */
    justify-content: center; /* Centers the slider content */
    align-items: center; /* Ensures horizontal centering */
    overflow: hidden; /* Prevents overflow */
    max-width: 100%; /* Limits container width to screen width */
}

.project-slider {
    display: flex;
    gap: 20px; /* Adds spacing between cards */
    overflow-x: scroll; /* Enable horizontal scrolling */
    scroll-behavior: smooth; /* Smooth scrolling */
    padding: 20px 0;
    width: 100%;
    max-width: 1200px;
    -webkit-overflow-scrolling: touch; /* Ensures smooth scrolling on iOS */
}

/* Hide scrollbar for a cleaner look */
/* .project-slider::-webkit-scrollbar {
    display: none; 
} */

.scrollbar {
    width: 100%;
    max-width: 1200px; /* Aligns scrollbar with the slider */
    height: 4px;
    background: #333;
    border-radius: 2px;
    margin: 10px auto;
    position: relative; /* Ensures proper placement of the progress bar */
}

.scroll-progress {
    height: 100%;
    background: #58a6ff;
    width: 0;
    border-radius: 2px;
    transition: width 0.2s;
}

/* /////////////////////////////////////// */

.project-card {
    flex: 0 0 300px; /* Card width (example: 300px for a portrait ratio) */
    height: 375px; /* 1.25 times the width for a 4:5 ratio */
    perspective: 1000px; /* Enables the 3D flip effect */
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

/* Flip effect */
.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.project-card:hover .card-inner {
    transform: rotateY(180deg);
}

/* Front and back styling */
.card-front, .card-back {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center the content */
    align-items: center; /* Horizontally center the content */
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Ensures the backface is hidden */
    transform-style: preserve-3d;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
}
.card-front img, .card-back img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the card */
    z-index: 1; /* Places the image behind the text */
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1; /* Push image to background */
}

.card-front, .card-back {
    z-index: 1; /* Ensures text appears on top of the image */
    color: #000000;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7); /* Makes text readable */
}

.card-front h3,
.card-front p {
    font-size: 1.2em;
    line-height: 1.5;
    color: #1eff00;
    text-align: center;
    margin: 0 auto; /* Center horizontally */
    max-width: 90%; /* Adjust width to fit content */
    text-shadow: 0 1px 10px rgb(0, 0, 0); /* Readable text shadow */
    position: relative;
    z-index: 2;
    padding: 5px;
    background: rgba(0, 0, 0, 0); /* Add slight background for readability */
    border-radius: 5px;
    margin-left: 1px;
}

.card-back h3,
.card-back p {
    font-size: 1.2em;
    line-height: 1.5;
    color: #ffffff;
    text-align: center;
    margin: 0 auto; /* Center horizontally */
    max-width: 90%; /* Adjust width to fit content */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7); /* Readable text shadow */
    position: relative;
    z-index: 2;
    padding: 5px;
    background: rgba(0, 0, 0, 0.6); /* Add slight background for readability */
    border-radius: 5px;
    margin-left: 1px;
}


/* Back side specific styles */
.card-back {
    transform: rotateY(180deg);
}

.card-back .btn {
    margin-top: bottom;
    padding: 8px 12px;
    background: #58a6ff;
    color: #0d1117;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
    z-index: 3;
}

.card-back .btn:hover {
    background: #1f6feb;
}

/* Scrollbar */
.scrollbar {
    height: 6px;
    background: #2e2e2e;
    border-radius: 3px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.scroll-progress {
    height: 100%;
    background: #58a6ff;
    width: 0; /* Initial width of the progress bar */
    border-radius: 3px;
    transition: width 0.3s;
}

/* //////////////////////////////////// */

.skills {
    padding: 80px 20px;
    text-align: center;
    background: #161b22;
    color: #ffffff;
}

.skills h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #58a6ff;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill i {
    font-size: 4em; /* Adjust icon size */
    color: #ffffff;
    transition: transform 0.3s ease, color 0.3s ease;
}

.skill i:hover {
    transform: scale(1.2); /* Slight zoom effect */
    color: #58a6ff; /* Highlight color */
}
.skill img {
    width: 60px; /* Fixed size for images */
    height: 60px;
    object-fit: contain; /* Maintain the original aspect ratio */
    border-radius: 50%; /* Make only images round */
    background: #161b22; /* Optional: Add a background color for contrast */
    padding: 5px; /* Optional: Add inner padding for a clean look */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.skill img:hover {
    transform: scale(1.2); /* Slight zoom effect */
    box-shadow: 0 4px 10px rgba(88, 166, 255, 0.8); /* Highlight on hover */
}

/* /////////////////////////////////////// */

.difference {
    padding: 60px 20px;
    text-align: center;
    background: #161b22;
    color: #ffffff;
    font-family: Arial, sans-serif;
}

.difference h4 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #58a6ff;
    text-transform: uppercase;
}

.difference p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #d1d5db; /* Light gray for better readability */
    margin: 0 auto;
    max-width: 800px;
}

.bring {
    padding: 60px 20px;
    text-align: center;
    background: #161b22;
    color: #ffffff;
    font-family: Arial, sans-serif;
}

.bring h4 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #58a6ff;
    text-transform: uppercase;
}

.bring p {
    font-size: 1.2em;
    line-height: 1.8;
    color: #d1d5db; /* Light gray for better readability */
    margin: 0 auto;
    max-width: 800px;
    text-align: justify; /* Align text for a professional look */
}

.footer {
    padding: 30px 20px;
    background: #161b22; /* Dark background */
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Makes footer responsive */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left {
    text-align: center;
}

.hobby-button {
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
}

.hobby-button img {
    width: 120px; /* Reduced size for a more balanced look */
    height: auto; /* Maintain aspect ratio */
    border-radius: 15px; /* Smooth rounded corners */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6); /* Darker shadow for depth */
    filter: brightness(0.7) contrast(1.1); /* Make image slightly darker */
}

.hobby-button:hover img {
    transform: scale(1.1); /* Slight zoom on hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.8); /* Darker glow effect */
}

.footer-left p {
    font-size: 1em;
    color: #d1d5db;
}

.footer-center {
    text-align: center;
    font-size: 1em;
    color: #d1d5db;
}

.footer-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-right .social-icons a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.5em;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #22272e;
    transition: 0.3s;
}

.footer-right .social-icons a:hover {
    background: #58a6ff;
    color: #0d1117;
}
/* ////////////////// */
