@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body {
    background-color: black;
    color: white;
    scroll-behavior: smooth;
}

/* Navbar */
nav {
    width: 100%;
    height: 10vh;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px -10px;
    width: 100%
}

.logo {
    font-size: 2rem;
    font-weight: bold;
}

.logo span {
    color: hwb(249 18% 5%);
}

.nav-container .links {
    display: flex;
}

.nav-container .links a {
    font-size: 1.2rem;
    color: white;
    margin: 0 15px;
    text-decoration: none;
}

.nav-container .links a:hover {
    color: #272ae1;
}

/* Sections */
section {
    padding: 50px 0;
    margin-bottom: 50px;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 10vh;
    text-align: center;
}

/* Home Section */
.main-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.image {
    width: 250px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 50px #0303fa;
}

.image img {
    width: 100%;
    height: 100%;
}

.content h1 span {
    color: #4615ea;
}
/* Skills Section */
#skills {
    background-color: #050101;
    padding: 50px 0;
}

.skills-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill {
    width: 80%;
    margin: 20px 0;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background-color: #2f2d2d;
    border-radius: 10px;
    overflow: hidden;
    position: relative
}

.progress {
    height: 100%;
    background-color: #211af3;
    width: 0;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.percentage {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
}

/* Animation of progress bar */
@keyframes fillProgress {
    0% { width: 0%; }
    100% { width: var(--progress-width); }
}

/* JS-specific percentage animation */
#html-bar #html {
    animation: fillProgress 2s forwards;
}

#css-bar #css {
    animation: fillProgress 2s forwards;
}

#js-bar #video {
    animation: fillProgress 2s forwards;
}

#python-bar #faceless {
    animation: fillProgress 2s forwards;
}

/* Add any custom color or other adjustments */
#html-bar #html { --progress-width: 95%; }
#css-bar #css { --progress-width: 80%; }
#js-bar #javascript { --progress-width: 80%; }
#python-bar #python { --progress-width: 98%; }

/* Social Links */
.social-links i {
    font-size: 1.5rem;
    color: #1909f1;
    margin: 10px;
    transition: transform 0.2s ease-in-out;
}

.social-links i:hover {
    transform: scale(1.2);
}

/* Button */
.btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #300bd8;
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    background: white;
    color: #2922f3;
}

/* Other Sections */
.section-container {
    width: 80%;
    max-width: 600px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

h2 {
    color: #22f14b;
    margin-bottom: 15px;
}

/* Typewriter Effect */
.typewriter-container {
    font-size: 24px;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
}

.typewriter-text {
    color: #ffcc00; /* Change this color if needed */
}

label {
    font-weight: bold;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}
/* Project Gallery Section */
#projects {
    width: 100%;
    padding: 50px 0;  /* Adds spacing */
    background-color: #0d0f17; /* Keep your section color */
    position: relative; /* Ensures it doesn't overlap */
    overflow: hidden; /* Prevents spilling into other sections */
}

/* Gallery Layout with Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px;
    justify-items: center; /* Center items horizontally */
    margin-top: 20px;
}

/* Gallery Item Styling */
.gallery-item {
    background: #0d0f17;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 15px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Video Styling - Default Small Size */
.gallery-item video {
    width: 100%; /* Ensure all videos take full width of their container */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px;
    transition: width 0.3s ease-in-out, transform 0.3s ease-in-out; /* Smooth transition for resizing */
}

/* Enlarged Video on Hover */
.gallery-item:hover video {
    transform: scale(1.05); /* Slightly enlarge the video on hover */
}

/* Title Styling */
.gallery-item h3 {
    margin-top: 10px;
    font-size: 18px;
    color: #7127ae;
}

/* Hover effect on the gallery item */
.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(201, 71, 71, 0.2);
}

/* Responsive Adjustments for Smaller Screens */

/* On tablets and medium-sized screens */
@media (max-width: 768px) {
    .gallery-item {
        flex: 1 1 45%; /* On smaller screens, make items 45% width */
    }

    .gallery-item video {
        width: 100%; /* Make video responsive on tablet-sized screens */
    }
}

/* On very small screens (e.g., phones) */
@media (max-width: 480px) {
    .gallery-item {
        flex: 1 1 100%; /* Make items full width on smaller screens */
    }

    .gallery-item video {
        width: 100%; /* Make video responsive on small screens */
    }
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, #0d0f17, #1c1e29);
    padding: 60px 20px;
    text-align: center;
    color: #ffffff;
}

/* Contact Container */
.contact-container {
    max-width: 600px;
    margin: auto;
}

/* Contact Info */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    background: rgba(15, 19, 232, 0.1);
    padding: 20px 15px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.contact-item i {
    font-size: 20px;
    color: #7127ae;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
}

.contact-item:hover {
    transform: scale(1.05);
}

/* Contact Form */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

.form-group {
    width: 100%;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    background: rgba(9, 47, 237, 0.2);
    color: #ffffff;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #b0b0b0;
}

#contact-form textarea {
    height: 100px;
    resize: none;
}

/* Submit Button */
#contact-form button {
    background: #7127ae;
    color: #ffffff;
    padding: 12px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

#contact-form button:hover {
    background: #9157d8;
}

/* Responsive */
@media (max-width: 480px) {
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
}
.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-in-out;
}

.social-links a {
    font-size: 24px;
    color: #0077b5; /* Change based on your theme */
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
    color: #00aaff;
}

/* Animation: Make the social links appear after scrolling */
[data-aos="fade-up"] {
    opacity: 1;
    transform: translateY(0);
}
