/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Styles */
html, body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background: #1b1b1b; /* Dark background for a professional look */
    color: #e0e0e0; /* Light text for contrast */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Hide scrollbar but still allow scrolling */
html, body {
    overflow: auto; /* Enable scrolling */
}

/* Hide scrollbar for WebKit browsers (Chrome, Safari) */
::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for Firefox */
html {
    scrollbar-width: none;
}

/* Container Utility Class */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Responsive padding */
}




/* Header Section */
header {
    position: sticky;
    top: 0;
    background: #181818; /* Slightly lighter than body background */
    padding: 15px 0;
    z-index: 100; /* Ensure it stays above other elements */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); /* Subtle shadow for depth */
    text-align: center;
}

/* Navigation Styles */
nav ul {
    list-style: none; /* Remove default bullet points */
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between links */
}

nav ul li a {
    text-decoration: none; /* Remove underline */
    color: #e0e0e0; /* Light text for readability */
    font-weight: 500; /* Medium font weight for emphasis */
    transition: color 0.3s ease; /* Smooth color transition */
}

nav ul li a:hover {
    color: #f5f5f5; /* Slightly lighter color on hover */
}

/* Hero Section */
#hero {
    height: 100vh; /* Full viewport height */
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.9), rgba(0, 0, 0, 0.7)); /* Gradient overlay */
    background-attachment: fixed; /* Parallax effect for background */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    z-index: 1; /* Ensure hero content stays above background */
    will-change: transform; /* Browser optimization for smoother animations */
}

/* Hero Heading */
.hero-content h1 {
    font-size: 5rem; /* Large, prominent text */
    margin-bottom: 20px;
    font-weight: 800; /* Bold font */
    color: #eee; /* Light text for readability */
    letter-spacing: 5px; /* Spaced-out letters for style */
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.8); /* Subtle shadow for depth */
    animation: fadeIn 2s ease-out; /* Smooth fade-in effect */
    transition: transform 0.3s ease-out;
}

/* Hero Paragraph */
.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #bbb; /* Lighter gray for subtlety */
}

/* Hero Button */
.hero-content .btn {
    background: #333; /* Dark button background */
    color: white;
    padding: 12px 25px; /* Button padding for better click area */
    text-decoration: none;
    border-radius: 30px; /* Rounded button */
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.3s ease; /* Smooth hover effects */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Shadow for button */
}

.hero-content .btn:hover {
    background: #555; /* Slightly lighter color on hover */
    transform: scale(1.05); /* Slight enlargement for interactivity */
}

/* Background Container */
.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: -1; /* Ensure background stays behind content */
}

/* Background Images Animation */
.background-images {
    display: flex;
    position: absolute;
    width: 200%; /* Double width for scrolling animation */
    height: 100%;
    animation: moveBackgroundImages 120s linear infinite; /* Slower animation */
}

/* Individual Background Images */
.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure images cover the container */
    margin-right: 10px; /* Gap between images */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7); /* Shadow effect for depth */
}

/* Animation for Background Movement */
@keyframes moveBackgroundImages {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Move background to the left */
    }
}

/* Fade In Animation for Hero Text */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-50px); /* Slide text in from the top */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 768px) {
    /* Smaller font size for smaller screens */
    .hero-content h1 {
        font-size: 3rem;
        letter-spacing: 3px;
    }

    /* Adjust paragraph size for mobile screens */
    .hero-content p {
        font-size: 1.2rem;
    }

    /* Make the button smaller */
    .hero-content .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    /* Further adjustments for very small screens */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-content .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* About Section */
#about {
    padding: 80px 0; /* Vertical spacing */
    background: #121212; /* Darker background for contrast */
    color: #ddd; /* Lighter text for readability */
}

.about-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto; /* Centering the section */
    will-change: transform; /* Optimization for transitions */
}

/* About Image Styling */
.about-image {
    width: 45%;
}

.about-image img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    border-radius: 15px; /* Rounded corners for a softer look */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Adding smooth transition for effects */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); /* Soft shadow for depth */
    object-fit: cover; /* Ensures image covers container without distortion */
}

.about-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8); /* Stronger shadow on hover for effect */
}

/* About Text Styling */
.about-text {
    width: 45%;
}

.about-text h2 {
    font-size: 2.8rem; /* Slightly larger heading */
    margin-bottom: 20px;
    color: #fff; /* White text for headings */
    font-weight: 700; /* Bold for emphasis */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Adding text shadow for better contrast */
    letter-spacing: 1px; /* Subtle letter-spacing */
}

.about-text p {
    font-size: 1.2rem; /* Slightly larger text for readability */
    margin-bottom: 20px;
    color: #bbb; /* Light grey for paragraph text */
    line-height: 1.8; /* Improved line spacing for better readability */
}

.about-text .btn {
    background: #333; /* Dark background for the button */
    color: white;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.about-text .btn:hover {
    background: #555; /* Slightly lighter grey on hover */
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); /* Stronger shadow on hover for effect */
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 768px) {
    /* Stack content vertically on medium screens (tablets) */
    .about-preview {
        flex-direction: column;
        gap: 20px;
        align-items: center; /* Center the content */
    }

    /* Make image smaller on tablets */
    .about-image {
        width: 80%;
    }

    /* Adjust text styling */
    .about-text h2 {
        font-size: 2.2rem;
    }

    .about-text p {
        font-size: 1.1rem;
    }

    .about-text .btn {
        padding: 10px 25px;
    }
}

@media screen and (max-width: 480px) {
    /* Adjust layout for small screens (mobile) */
    .about-preview {
        flex-direction: column;
        gap: 15px;
    }

    /* Make image take full width on small screens */
    .about-image {
        width: 100%;
    }

    /* Further adjust text for readability */
    .about-text h2 {
        font-size: 1.8rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .about-text .btn {
        padding: 8px 20px;
        font-size: 1rem;
    }
}

/* Skills & Expertise Section */
#skills {
    padding: 80px 0; /* Increased padding for better spacing */
    background: #0f0f0f; /* Dark background for the section */
    color: #ddd; /* Light text color */
    text-align: center;
}

#skills h2 {
    font-size: 2.8rem; /* Larger heading for better emphasis */
    margin-bottom: 40px;
    font-weight: 700;
    color: #fff; /* White text for headings */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Adding text shadow for contrast */
}

/* Skills Grid Styling */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Auto-fit grid items */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto; /* Centering the grid */
    will-change: transform; /* Optimization for transitions */
}

/* Skill Item Styling */
.skill-item {
    background: #292929; /* Dark background for each item */
    padding: 30px;
    border-radius: 15px; /* Rounded corners for the items */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Soft shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; /* Smooth transitions */
}

.skill-item i {
    font-size: 3rem; /* Icon size */
    color: #ddd; /* Light grey icon color */
    margin-bottom: 15px;
    transition: color 0.3s ease; /* Smooth color transition */
}

.skill-item h3 {
    font-size: 1.8rem; /* Larger text for skill titles */
    margin-bottom: 10px;
    font-weight: 600; /* Semi-bold for titles */
    color: #fff; /* White color for the titles */
}

.skill-item p {
    font-size: 1.1rem; /* Larger font size for readability */
    color: #bbb; /* Lighter text for descriptions */
    line-height: 1.6; /* Increased line height for better readability */
}

/* Hover Effects */
.skill-item:hover {
    transform: translateY(-10px); /* Slight lift effect */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5); /* Stronger shadow on hover */
    background-color: #333; /* Change background color on hover */
}

.skill-item:hover i {
    color: #f5f5f5; /* Lighter grey for the icon on hover */
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 768px) {
    /* Adjust grid layout for medium screens */
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Smaller grid items for tablets */
    }

    .skill-item i {
        font-size: 2.5rem; /* Smaller icons for better readability on tablets */
    }

    .skill-item h3 {
        font-size: 1.6rem; /* Smaller headings for better fit */
    }

    .skill-item p {
        font-size: 1rem; /* Adjusted paragraph size for readability */
    }
}

@media screen and (max-width: 480px) {
    /* Adjust grid layout for mobile screens */
    .skills-grid {
        grid-template-columns: 1fr; /* Single column layout for mobile */
        gap: 20px;
    }

    .skill-item i {
        font-size: 2rem; /* Smaller icons for mobile */
    }

    .skill-item h3 {
        font-size: 1.4rem; /* Smaller skill titles for mobile */
    }

    .skill-item p {
        font-size: 0.95rem; /* Smaller text for mobile */
    }
}

/* Footer */
footer {
    background: #181818; /* Dark grey background */
    color: #bbb; /* Grey text color */
    padding: 20px 0;
    text-align: center;
}

footer .social-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

footer .social-links li a {
    color: #bbb; /* Grey color for icons */
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

footer .social-links li a:hover {
    color: #888; /* Darker grey color on hover */
}

footer p {
    font-size: 1rem;
    margin-bottom: 10px;
}

/* Animations */
@keyframes fadeInSection {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    footer {
        padding: 15px 0;
    }

    footer .social-links {
        gap: 15px;
    }

    footer .social-links li a {
        font-size: 1.3rem;
    }

    footer p {
        font-size: 0.9rem;
    }
}

/* Style for the Typed text */
#typed-text {
    color: #ddd; /* Light grey text color */
    font-weight: bold;
    font-size: 2rem; /* Adjust size */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(220, 220, 220, 0.8); /* Lighter shadow effect */
    letter-spacing: 2px; /* Add spacing between letters */
    padding: 5px 10px; /* Padding for contrast */
    background: rgba(0, 0, 0, 0.75); /* Dark background behind text */
    border-radius: 10px;
    transition: transform 0.3s ease; /* Smooth scale effect */
}

/* Hover Effect on Typed Text */
#typed-text:hover {
    transform: scale(1.1); /* Slightly enlarge text */
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(220, 220, 220, 1); /* More intense shadow */
}
