/* style.css - Premium Dark Blue & Black Portfolio */

/* ======================
   COLOR VARIABLES
   ====================== */
:root {
    --primary-blue: #0a84ff;
    --secondary-blue: #64b5f6;
    --dark-blue: #0a0e17;
    --darker-blue: #05080f;
    --accent-blue: #00f7ff;
    --neon-glow: 0 0 10px rgba(0, 247, 255, 0.7);
    --text-light: #f0f8ff;
    --text-gray: #94a3b8;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.9);
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* ======================
   RESET & BASE STYLES
   ====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: var(--text-light);
    background-color: var(--darker-blue);
    /* Subtle gradient background effects */
    background-image:
        radial-gradient(circle at 25% 25%, rgba(10, 132, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 247, 255, 0.1) 0%, transparent 50%);
    padding: 0;
    margin: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

a {
    text-decoration: none; /* Remove default underline from all links */
}

ul {
    list-style: none; /* Remove bullet points from lists */
}

/* ======================
   HEADER (HERO) SECTION STYLES
   ====================== */
header {
    background-color: var(--dark-blue);
    color: var(--text-light);
    padding: 6rem 2rem 4rem; /* Adjusted for consistency with main portfolio header */
    text-align: center;
    position: relative;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(10, 132, 255, 0.2);
}

/* Gradient underline effect for header */
header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    box-shadow: var(--neon-glow);
}

header h1 {
    font-size: 3.5rem; /* Adjusted for consistency with main portfolio header */
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary-blue), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; /* Makes the text transparent to show the gradient */
    text-shadow: var(--neon-glow);
    letter-spacing: -0.5px;
}

header p {
    max-width: 800px; /* Adjusted for consistency with main portfolio header */
    margin: 0 auto;
    font-size: 1.2rem; /* Adjusted for consistency with main portfolio header */
    color: var(--text-gray);
    line-height: 1.8;
}

/* Specific styling for the hero section on contact.html */
.hero {
    padding: 5rem 2rem 3rem; /* Slightly different padding for contact page hero */
}

.hero h1 {
    font-size: 2.5rem; /* Specific font size for contact page hero title */
}

.hero p {
    max-width: 600px; /* Specific max-width for contact page hero paragraph */
    font-size: 1.1rem; /* Specific font size for contact page hero paragraph */
}

/* ======================
   LAYOUT CONTAINER
   ====================== */
.container {
    max-width: 800px; /* Max width for the main content container */
    margin: 0 auto; /* Center the container */
    padding: 0 2rem; /* Horizontal padding */
}

/* ======================
   GENERAL SECTION STYLES (for portfolio pages)
   ====================== */
section {
    background-color: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border-left: 3px solid var(--primary-blue);
    box-shadow: var(--shadow);
    padding: 3rem;
    margin: 2.5rem auto;
    max-width: 1000px; /* Wider max-width for general sections */
    transition: var(--transition);
    position: relative;
    overflow: hidden; /* Ensures pseudo-elements stay within bounds */
}

/* Corner background effect for general sections */
section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 247, 255, 0.1) 0%, transparent 70%);
    z-index: -1;
}

/* Hover effect for general sections */
section:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px -10px rgba(0, 132, 255, 0.3);
    border-left-color: var(--accent-blue);
}

/* General H2 heading style with blinking cursor effect */
h2 {
    color: var(--primary-blue);
    margin-bottom: 2.5rem;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
}

h2::before {
    content: '>';
    position: absolute;
    left: -30px;
    color: var(--accent-blue);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    animation: blink 1s infinite step-end;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Underline effect for H2 headings */
h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), transparent);
}

h3 {
    color: var(--secondary-blue);
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
}

/* Specific text styling */
#education strong,
.certifications strong {
    color: var(--secondary-blue);
}

/* ======================
   PROJECTS SECTION STYLES
   ====================== */
#projects ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

#projects li {
    background: linear-gradient(145deg, rgba(10, 14, 23, 0.8), rgba(5, 8, 15, 0.9));
    border-radius: 8px;
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid rgba(10, 132, 255, 0.1);
    box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Left border effect for project cards */
#projects li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-blue), var(--accent-blue));
}

/* Hover effect for project cards */
#projects li:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px -10px rgba(0, 132, 255, 0.3);
    border-color: rgba(10, 132, 255, 0.3);
}

#projects strong {
    display: block;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    position: relative;
    padding-left: 20px; /* Space for the custom bullet point */
}

/* Custom bullet point for project titles */
#projects strong::before {
    content: '▹'; /* Right-pointing triangle */
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

/* Project link styling */
#projects a {
    display: inline-flex;
    align-items: center;
    margin-top: 1.5rem;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(90deg, rgba(10, 132, 255, 0.2), transparent);
    border-radius: 5px;
    color: var(--accent-blue);
    font-size: 1rem;
    border: 1px solid rgba(0, 247, 255, 0.3);
    transition: var(--transition);
}

/* Hover effect for project links */
#projects a:hover {
    background: linear-gradient(90deg, rgba(10, 132, 255, 0.4), transparent);
    border-color: var(--accent-blue);
    box-shadow: var(--neon-glow);
}

/* ======================
   CONTACT FORM STYLES (Specific to contact.html)
   ====================== */
.contact-form {
    background-color: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border-left: 3px solid var(--primary-blue);
    box-shadow: var(--shadow);
    padding: 3rem;
    margin: 2rem auto; /* Adjusted margin for contact page form */
    transition: var(--transition);
}

/* Hover effect for the form container */
.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -10px rgba(0, 132, 255, 0.3);
}

/* Form layout */
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Spacing between form groups */
}

/* Form label styling */
.contact-form label {
    color: var(--accent-blue);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Input field styling (text, email, textarea) for the contact form specifically */
.contact-form .form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(5, 8, 15, 0.5); 
    border: 1px solid rgba(10, 132, 255, 0.3);
    border-radius: 5px;
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
}

/* Focus states for input fields */
.contact-form .form-control:focus { 
    outline: none; /* Remove default outline */
    border-color: var(--accent-blue);
    box-shadow: var(--neon-glow);
}

/* Textarea specific styles */
.contact-form textarea.form-control { 
    min-height: 150px; /* Minimum height for textarea */
    resize: vertical; /* Allow vertical resizing only */
}

/* Submit button styling */
.contact-form button {
    align-self: flex-start; /* Aligns button to the left within the flex container */
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    color: var(--dark-blue);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
    box-shadow: 0 5px 15px -5px var(--primary-blue);
    display: inline-flex; 
    align-items: center;
    gap: 10px;
}

/* Button hover effect */
.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px -5px var(--primary-blue);
}

/* ======================
   DIRECT CONTACT FALLBACK STYLES
   ====================== */
.direct-contact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px dashed rgba(10, 132, 255, 0.3); /* Dashed separator */
}

.direct-contact p {
    margin-bottom: 1rem;
}

/* Email link styling */
.email-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(90deg, rgba(10, 132, 255, 0.2), transparent);
    border-radius: 5px;
    color: var(--accent-blue);
    text-decoration: none;
    border: 1px solid rgba(0, 247, 255, 0.3);
    transition: var(--transition);
    margin: 0.5rem 0; /* Vertical margin for spacing */
}

.email-link:hover {
    background: linear-gradient(90deg, rgba(10, 132, 255, 0.4), transparent);
    border-color: var(--accent-blue);
    box-shadow: var(--neon-glow);
}

/* Manual email display (monospace for code-like appearance) */
.manual-email {
    display: inline-block;
    padding: 0.5rem;
    background: rgba(5, 8, 15, 0.5);
    border-radius: 3px;
    margin-top: 0.5rem;
    font-family: monospace;
}

/* ======================
   ADDITIONAL LINK STYLES (for main portfolio sections)
   ====================== */

/* Style for the general contact link */
#contact a {
    color: var(--accent-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 247, 255, 0.3);
    transition: var(--transition);
}

#contact a:hover {
    color: var(--primary-blue);
    border-bottom-color: var(--accent-blue);
    text-shadow: var(--neon-glow);
}

/* Style for certificate links */
.certifications a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(90deg, rgba(10, 132, 255, 0.2), transparent);
    border-radius: 3px;
    border: 1px solid rgba(0, 247, 255, 0.3);
}

.certifications a:hover {
    background: linear-gradient(90deg, rgba(10, 132, 255, 0.4), transparent);
    border-color: var(--accent-blue);
    box-shadow: var(--neon-glow);
}

/* ======================
   DOWNLOAD BUTTON (CV/Resume)
   ====================== */
.cv-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    color: var(--dark-blue);
    padding: 1rem 2rem;
    border-radius: 5px;
    margin-top: 1.5rem;
    font-weight: bold;
    transition: var(--transition);
    box-shadow: 0 5px 15px -5px var(--primary-blue);
    border: none;
    font-size: 1.1rem;
}

.cv-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px -5px var(--primary-blue);
    text-decoration: none;
}

/* ======================
   FOOTER STYLES
   ====================== */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--dark-blue);
    color: var(--text-gray);
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* ======================
   FLOATING PARTICLES ANIMATION
   ====================== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Two distinct particle types for varied effect */
    background-image:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%230a84ff" opacity="0.5"/></svg>'),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="0.5" fill="%2300f7ff" opacity="0.3"/></svg>');
    background-size: 100px 100px, 50px 50px; /* Size of the individual particle backgrounds */
    z-index: -1; /* Place behind other content */
    animation: float 100s linear infinite; /* Animation duration and loop */
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50%, -50%); } /* Moves particles across the screen */
}

/* ======================
   RESPONSIVE DESIGN
   ====================== */
@media (max-width: 768px) {
    /* General header adjustments */
    header {
        padding: 4rem 1rem 3rem;
    }

    header h1 {
        font-size: 2.5rem;
    }

    /* General section adjustments */
    section {
        padding: 2rem;
        margin: 2rem 1rem;
    }

    /* Project section layout for smaller screens */
    #projects ul {
        grid-template-columns: 1fr; /* Single column layout */
    }

    /* Contact form specific adjustments */
    .hero {
        padding: 3rem 1rem 2rem; /* Adjusted for smaller screens on contact page */
    }

    .hero h1 {
        font-size: 2rem; /* Adjusted for smaller screens on contact page */
    }

    .contact-form {
        padding: 2rem;
        margin: 2rem 1rem; /* Adjusted margin for contact page form on smaller screens */
    }
}