/* General body styles */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
}

/* Top Navigation */
.top-nav {
    width: 100%;
    background-color: #0f172a; /* dark blue */
    padding: 10px 30px; /* enough padding on sides */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    display: flex;
    justify-content: flex-end; /* align right */
    align-items: center;
    flex-wrap: wrap; /* allow wrapping */
    box-sizing: border-box; /* include padding in width */
}

.top-nav a {
    color: white;
    text-decoration: none;
    margin-left: 15px; /* smaller margin so links fit */
    font-weight: bold;
    font-size: 1.1rem;
    white-space: nowrap; /* prevent links from breaking */
}

.top-nav a:hover {
    text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .top-nav {
        justify-content: center; /* center links on smaller screens */
    }
    
    .top-nav a {
        margin: 5px 10px; /* smaller spacing */
        font-size: 1rem;
    }
}



/* Header container */
header {
    position: relative;
    height: 350px;
    overflow: hidden;
}

/* Video background */
header video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Overlay for header text */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background: rgba(0,0,0,0.3); /* dark overlay for readability */
}

/* Header title */
.header-overlay h1 {
    font-family: 'Pacifico', cursive;
    font-size: 3rem;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

/* Header subtitle */
.header-overlay p {
    font-size: 1.3rem;
    margin: 0;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* Intro paragraph section */
.intro {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
  color: #1f2937;
  line-height: 1.6;
}

/* First line - bold and friendly */
.intro-line1 {
  font-family: 'Lobster', cursive;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0f172a;
}

/* Second line - modern and clean */
.intro-line2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Third line - light and inviting */
.intro-line3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: #374151;
  font-style: italic; /* optional for a stylish touch */
}

/* Navigation links inside header */
.header-overlay nav a {
    margin: 0 15px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.header-overlay nav a:hover {
    text-decoration: underline;
}


/* ================== About Page Styles ================== */

/* About content */
.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 30px;
}

/* About Page Photo Styles */
.about-photo img {
    max-width: 250px;
    width: 100%;
    border-radius: 15px; /* rounded corners */
    box-shadow: 0 6px 15px rgba(0,0,0,0.25); /* subtle shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin: 0 auto; /* center on small screens */
}

/* Hover effect */
.about-photo img:hover {
    transform: scale(1.05); /* slight zoom on hover */
    box-shadow: 0 10px 25px rgba(0,0,0,0.3); /* stronger shadow */
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .about-photo img {
        max-width: 180px; /* smaller on mobile */
    }
}

.about-text {
    flex: 1;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #1f2937;
}

.about-text p {
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        text-align: center;
    }
}

/* -------------Tech Page Section -----------*/
/* Tech Page Section */
.tech-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.tech-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.tech-card {
    border-radius: 12px;
    padding: 25px 15px;
    width: 220px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.tech-card i {
    color: #0f172a;
    margin-bottom: 15px;
}

/* Pastel Colors for Each Card */
.tech-card:nth-child(1) { background-color: #ffd6d6; } /* HTML */
.tech-card:nth-child(2) { background-color: #d6f0ff; } /* CSS */
.tech-card:nth-child(3) { background-color: #fff7d6; } /* JavaScript */
.tech-card:nth-child(4) { background-color: #d6fff2; } /* React */
.tech-card:nth-child(5) { background-color: #e6d6ff; } /* PHP */
.tech-card:nth-child(6) { background-color: #d6ffe6; } /* Python */
.tech-card:nth-child(7) { background-color: #ffe6d6; } /* Java */
.tech-card:nth-child(8) { background-color: #f0f0f0; } /* SQL */

.tech-card h3 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 10px;
}

.tech-card p {
    font-size: 0.95rem;
    color: #1f2937;
    line-height: 1.4;
}
/* -------- Featured Projects Section -------- */
.projects-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.projects-section h2 {
    font-family: 'Lobster', cursive;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #0f172a;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.project-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 20px;
    width: 280px;
    text-align: left;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.project-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #0f172a;
}

.project-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #374151;
}

/* Responsive */
@media (max-width: 768px) {
    .projects-container {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        width: 90%;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .tech-container {
        flex-direction: column;
        align-items: center;
    }

    .tech-card {
        width: 80%;
    }
}
/*-----------contact*----------/
/* Contact Showcase Section */
.contact-showcase {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

.contact-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* Individual Cards */
.contact-card {
    background-color: #d6f0ff; /* pastel blue */
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    width: 250px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card i {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 15px;
}

/* Font for headings (Email, LinkedIn, GitHub) */

.contact-card h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700; /* bold */
    font-size: 1.3rem;
}

/* Font for details (email address, links) */
.contact-card p a {
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #0f172a;
    text-decoration: none;
}



.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }
}



/* Stylish Simple Footer */
footer {
    background-color: #0f172a; /* dark blue */
    color: white;
    text-align: center;
    padding: 30px 10px; /* taller footer */
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    margin-top: 50px;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.2); /* subtle top shadow */
    border-top: 1px solid #1e293b; /* subtle top border */
}

/* Optional hover effect for the text */
footer p:hover {
    color: #cbd5e1;
    transition: color 0.3s ease;
}

/* Responsive */
@media (max-width: 600px) {
    footer {
        padding: 25px 10px;
        font-size: 0.95rem;
    }
}
