/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Basic Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #00aaff; /* You can change this to your preferred color */
    --secondary-color: #0a192f;
    --text-color: #ccd6f6;
    --light-text-color: #8892b0;
    --background-color: #0a192f;
    --card-bg-color: #112240;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: 600;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* Header & Navbar */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 400;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    position: relative; /* Yeh Add Karein */
    overflow: hidden;   /* Yeh Add Karein */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.hero-content .highlight {
    color: var(--primary-color);
}

.hero-content .subtitle {
    font-size: 1.5rem;
    color: var(--light-text-color);
    margin-bottom: 1.5rem;
}

.hero-content .description {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--light-text-color);
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* General Section Styling */
.content-section {
    padding: 6rem 5%;
    max-width: 1100px;
    margin: 0 auto;
    opacity: 0; /* For scroll animation */
    transform: translateY(50px); /* For scroll animation */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.content-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.content-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 0;
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image img {
    max-width: 350px;
    border-radius: 10px;
    border: 3px solid var(--primary-color);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--light-text-color);
}

.social-links a {
    font-size: 1.8rem;
    margin-right: 1.5rem;
    color: var(--light-text-color);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Video Section */
.video-section .video-placeholder {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background-color: var(--card-bg-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--primary-color);
}
.video-placeholder p { color: var(--light-text-color); }
.video-placeholder iframe { width: 100%; height: 100%; border-radius: 10px; }


/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--card-bg-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-bottom-color: var(--primary-color);
}

.skill-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.skill-card p {
    color: var(--light-text-color);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--card-bg-color);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: var(--light-text-color);
    margin-bottom: 1rem;
}

.project-link {
    font-weight: 600;
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid var(--light-text-color);
    background: var(--card-bg-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
}

.contact-form button {
    width: fit-content;
    align-self: center;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 5%;
    background: var(--card-bg-color);
    color: var(--light-text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        display: none; /* Simple hiding for mobile, can be replaced with a burger menu */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image img {
        max-width: 250px;
    }
}

/* YEH SARA CODE COPY KARKE FILE KE END MEIN PASTE KAREIN */

/* Background Video Styling */
.hero-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1; /* Text ke peeche rakhne ke liye */
}

/* Video ke upar dark overlay (taake text saaf dikhe) */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.7); /* Iski transparency aap 0.7 se 0.8 ya 0.6 kar sakte hain */
    z-index: 0;
}

/* Text ko video ke upar laane ke liye */
.hero-content {
    position: relative;
    z-index: 1;
}