/* --- General Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: #ffffff;
    line-height: 1.6;
    background-color: #1a1a1a; /* Fallback color */
    overflow-x: hidden;
}

/* --- Scrolling Background Slider --- */
.background-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind everything */
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 120%; /* Extra width to allow for the horizontal scroll movement */
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    filter: brightness(0.5); /* Dims images so text is readable */
    animation: scrollBackground 18s linear infinite;
}

/* Individual Slides with delays */
.slide:nth-child(1) {
    background-image: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&w=1920&q=80');
    animation-delay: 0s;
}

.slide:nth-child(2) {
    background-image: url('https://images.unsplash.com/photo-1517336714460-4c504bdc5f3a?auto=format&fit=crop&w=1920&q=80');
    animation-delay: 6s;
}

.slide:nth-child(3) {
    background-image: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1920&q=80');
    animation-delay: 12s;
}

@keyframes scrollBackground {
    0% {
        opacity: 0;
        transform: translateX(-10%);
    }
    10% {
        opacity: 1;
    }
    33% {
        opacity: 1;
    }
    43% {
        opacity: 0;
        transform: translateX(0%);
    }
    100% {
        opacity: 0;
    }
}

/* --- Navigation Bar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px); /* Frosted glass effect */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00cec9;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00cec9;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay */
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
}

.highlight {
    color: #00cec9;
}

/* --- Sections & Grid --- */
.container {
    padding: 100px 10%;
    background: rgba(255, 255, 255, 0.05); /* Glassmorphism background */
    backdrop-filter: blur(5px);
    margin: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #00cec9;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 30px;
    background: #00cec9;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #0984e3;
    box-shadow: 0 0 15px #00cec9;
}

/* --- Contact Form --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 3.5rem; /* Increased size */
    font-weight: 800;  /* Extra bold */
    color: #00cec9;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Adding a glow effect to make it stand out against the image */
    text-shadow: 0 0 20px rgba(0, 206, 201, 0.6), 2px 2px 10px rgba(0,0,0,0.8);
}

#contact-form {
    display: flex;
    flex-direction: column;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(0, 0, 0, 0.6); /* Darker container for better contrast */
    border-radius: 20px;
    border: 2px solid rgba(0, 206, 201, 0.3); /* Teal border glow */
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

/* Make placeholders and text inside inputs bolder */
#contact-form input, 
#contact-form textarea {
    margin-bottom: 25px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.15); /* Slightly brighter */
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600; /* Bold text */
    outline: none;
    transition: all 0.3s ease;
}

/* Bold placeholders */
#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
}

/* High-contrast focus state */
#contact-form input:focus, 
#contact-form textarea:focus {
    border-color: #00cec9;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 206, 201, 0.4);
}

/* Super Bold Submit Button */
#contact-form .btn {
    padding: 20px;
    font-size: 1.3rem;
    font-weight: 900; /* Maximum thickness */
    text-transform: uppercase;
    letter-spacing: 3px;
    background: #00cec9;
    color: #000; /* Dark text on bright background is very bold */
    border-radius: 12px;
    margin-top: 10px;
}

#contact-form .btn:hover {
    background: #fff;
    color: #00cec9;
    transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; } /* Hide menu for mobile or use a burger menu */
}

/* Styling for the Project Card Enhancements */
.project-badge {
    background: rgba(0, 206, 201, 0.2);
    color: #00cec9;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.tech-tags {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tags span {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-small {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #00cec9;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.btn-small:hover {
    border-bottom: 1px solid #00cec9;
    letter-spacing: 1px;
}

/* --- About Section Styles --- */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    color: #fff;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-text strong {
    color: #00cec9; /* Matching your theme color */
}

.skills-summary {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #00cec9;
    border-radius: 8px;
}

.skills-summary h3 {
    margin-bottom: 15px;
    color: #00cec9;
    font-size: 1.5rem;
}

.skills-summary ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.skills-summary li {
    font-size: 0.95rem;
}

/* Update for the Glassmorphism container to ensure readability */
#about.container {
    background: rgba(0, 0, 0, 0.6); 
    border: 1px solid rgba(255, 255, 255, 0.1);
}


/* --- Social Buttons in About Section --- */
.social-links {
    margin-top: 30px;
}

.social-links h3 {
    margin-bottom: 15px;
    color: #00cec9;
    font-size: 1.3rem;
}

.social-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* LinkedIn Colors */
.social-btn.linkedin {
    background: #0077b5;
    color: white;
}

.social-btn.linkedin:hover {
    background: transparent;
    border-color: #0077b5;
    color: #0077b5;
    box-shadow: 0 0 10px rgba(0, 119, 181, 0.4);
}

/* GitHub Colors */
.social-btn.github {
    background: #333;
    color: white;
}

.social-btn.github:hover {
    background: transparent;
    border-color: #fff;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Instagram Specific Gradient Button */
.social-btn.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
}

.social-btn.instagram:hover {
    background: transparent;
    border-color: #d6249f;
    color: #d6249f;
    box-shadow: 0 0 15px rgba(214, 36, 159, 0.5);
}

/* Ensure all buttons have consistent sizing */
.social-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* WhatsApp Specific Button */
.social-btn.whatsapp {
    background: #25D366;
    color: white;
}

.social-btn.whatsapp:hover {
    background: transparent;
    border-color: #25D366;
    color: #25D366;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
}

.logo .bracket {
    color: #00cec9; /* Your theme teal */
    font-weight: 400;
}