/* Variables */
:root {
    --accent: #007bff; /* Primary blue */
    --accent-light: #339aff; /* Lighter blue for hover */
    --bg-color: #111827; /* Dark background */
    --text-color: #f5f5f5; /* Light text */
    --light-text-color: #aaa; /* Lighter text for footer/secondary */
    --font-family: "Inter", Arial, sans-serif;
    --border-color: #222; /* Darker border/divider */
}

/* Base Styles */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* Better font rendering */
    -moz-osx-font-smoothing: grayscale; /* Better font rendering */
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

a:hover {
    color: var(--accent-light);
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

/* Banner */
.banner {
    width: 100%;
    overflow: hidden;
    max-height: 500px; /* Consistent height */
    position: relative; /* Allows content positioning if needed */
}

.banner-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* Ensures image covers the area without distortion */
    object-position: center; /* Centers the image within the banner */
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    background-color: #05070c;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); /* Subtle shadow for depth */
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
    padding: 0.5rem 0.8rem; /* Add padding for larger clickable area */
    border-radius: 4px;
}

nav a:hover,
nav a.active { /* Style for active link */
    color: var(--accent);

}

/* Main Content - Homepage Specific */
.homepage-content {
    max-width: 1000px; /* Slightly wider max-width for better layout */
    margin: 4rem auto;
    padding: 1rem;
    display: flex;
    flex-direction: column; /* Stack sections vertically */
    gap: 4rem; /* Space between sections */
}

.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card {
    display: flex;
    flex-direction: row; /* Default: row for larger screens */
    align-items: center;
    gap: 3rem; /* More space between image and text */
    background-color: #05070c; /* Slightly lighter background for the card */
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Enhanced shadow */
    max-width: 1000px; /* Control card width */
}

.profile-img {
    width: 250px; /* Slightly larger profile image */
    height: 250px;
    border-radius: 50%;
    border: 4px solid var(--accent); /* Thicker border */
    object-fit: cover;
    flex-shrink: 0; /* Prevents image from shrinking on smaller screens */
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5); /* Subtle glow effect */
}

.profile-info {
    flex-grow: 1; /* Allows text content to fill available space */
}

.profile-info h1 {
    font-size: 2.8rem; /* Larger name */
    margin-bottom: 0.8rem;
    color: var(--accent-light);
}

.profile-info .tagline {
    font-size: 1.3rem;
    color: var(--light-text-color);
    margin-bottom: 1.5rem;
    font-weight: 300; /* Lighter weight for tagline */
}

.profile-info .intro-text {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.resume-btn {
    display: inline-block; /* Makes padding work correctly */
    background-color: var(--accent);
    color: #fff;
    padding: 1rem 2rem; /* Larger button */
    border-radius: 35px; /* Slightly more rounded */
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.resume-btn:hover {
    background-color: var(--accent-light);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.5);
    transform: translateY(-2px); /* Slight lift effect */
}

/* Highlights/Expertise Section */
.highlights-section {
    text-align: center;
    padding: 2rem 0;
}

.highlights-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: var(--accent);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Responsive grid */
    gap: 2rem;
    margin-top: 2rem;
}

.expertise-item {
    background-color: #1a1a1a;
    padding: 1.8rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 123, 255, 0.3);
}

.expertise-item h3 {
    color: var(--accent-light);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.expertise-item p {
    font-size: 0.95rem;
    color: var(--light-text-color);
}

/* CyberSense/Section */
.cybersense-section {
    text-align: left;
    padding: 2rem 0;
}

.cybersense-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: var(--accent);
}

.letter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Responsive grid */
    gap: 10rem;
    margin-top: 2rem;
}

.letter-item {
    background-color: #1a1a1a;
    padding: 1rem;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.letter-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 123, 255, 0.3);
}

.letter-item h3 {
    color: var(--accent-light);
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.letter-item p {
    font-size: 0.95rem;
    color: var(--light-text-color);
}


/* Footer */
footer {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--light-text-color);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    font-size: 0.9rem;
    background-color: #05070c; /* Match nav background */
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .homepage-content {
        margin: 3rem auto;
        padding: 1rem 2rem; /* More padding on smaller screens */
    }
    .profile-card {
        flex-direction: column; /* Stack image and text vertically */
        text-align: center;
        gap: 2rem;
        padding: 2rem;
    }
    .profile-img {
        width: 180px;
        height: 180px;
        margin-bottom: 1.5rem; /* Add space below image when stacked */
    }
    .profile-info h1 {
        font-size: 2.2rem;
    }
    .profile-info .tagline {
        font-size: 1.1rem;
    }
    .profile-info .intro-text {
        font-size: 1rem;
    }
    .resume-btn {
        padding: 0.8rem 1.5rem;
    }
    .highlights-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    nav {
        flex-wrap: wrap; /* Allow nav items to wrap */
        padding: 0.8rem 0.5rem;
    }
    nav a {
        margin: 0.5rem 0.7rem;
    }
    .profile-img {
        width: 150px;
        height: 150px;
    }
    .profile-info h1 {
        font-size: 1.8rem;
    }
    .profile-info .tagline {
        font-size: 1rem;
    }
    .expertise-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
}

/* --- General Page Layout for Sub-Pages --- */
.page-header {
    background-color: #111827; /* Darker header for sub-pages */
    padding: 3rem 1rem; /* More padding than the banner */
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-header h1 {
    font-size: 3rem; /* Larger heading */
    color: var(--accent-light);
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--light-text-color);
    max-width: 800px;
    margin: 0 auto;
}

/* Main Content Area for Sub-Pages */
.main-content {
    max-width: 1000px; /* Consistent max-width for content */
    margin: 2rem auto; /* Vertical spacing */
    padding: 1rem 2rem; /* Horizontal padding, more on smaller screens */
    background-color: #05070c; /* Slightly lighter background for the content block */
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.main-content h1 {
    font-size: 4rem;
    color: var(--accent);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    /* border-bottom: 2px solid var(--border-color);*/
    /*padding-bottom: 0.5rem;*/
}

.main-content h2 {
    font-size: 2rem;
    text-align: center;
    color: var(--accent);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.main-content h3 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.main-content p {
    font-weight: normal; 
    
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: var(--text-color); 
}

.main-content p:not([class*="text-"]),
.main-content ul,
.main-content ol {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: var(--text-color); /* Ensure text color is right */
}

.main-content ul,
.main-content ol {
    padding-left: 25px;
}

.main-content li {
    margin-bottom: 0.5rem;
}

#coming-soon-title {
    /* Center the text within the <h1> element */
    text-align: center; 
    
    /* Remove the full-width border-bottom which looks odd when text is centered */
    border-bottom: none; 
    
    /* Make it a little bigger/more dramatic */
    font-size: 5rem;
    
    /* Center the <h1> block horizontally by setting margins, if needed, though text-align is usually enough */
    margin-left: auto;
    margin-right: auto;
    
    /* Make the color stand out */
    color: var(--accent-light); 
}

/* Responsive Adjustments for Sub-Pages */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    .page-header p {
        font-size: 1rem;
    }
    .main-content {
        margin: 2rem auto;
        padding: 1rem 1.5rem;
    }
    .main-content h2 {
        font-size: 1.8rem;
    }
    .main-content h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }
    .page-header p {
        font-size: 0.9rem;
    }
    .main-content {
        padding: 1rem;
    }
}

/* Add these styles to your assets/style.css */

/* Resume-specific styles within main-content */
.resume-section {
    margin-bottom: 2.5rem;
}

.resume-section h3 {
    color: var(--accent-light);
    font-size: 1.8rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.resume-entry {
    margin-bottom: 2rem;
    padding-left: 1.5rem; /* Indent entries slightly */
    border-left: 2px solid var(--accent); /* Visual separator */
}

.resume-entry h4 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.resume-entry .title-location {
    font-size: 1.1rem;
    color: var(--light-text-color);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.resume-entry .date {
    white-space: nowrap; /* Keep date on one line */
}

.resume-entry ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 0.8rem;
}

.resume-entry li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

/* PDF Button Specifics */
.pdf-button-container {
    text-align: center;
    margin-bottom: 3rem; /* Space below the button */
}

.pdf-button {
    background-color: var(--accent);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 35px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex; /* Allows icon and text to align */
    align-items: center;
    gap: 0.8rem; /* Space between icon and text */
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px #192E35;
}

.pdf-button:hover {
    background-color: #192E35;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px #192E35;
}

/* Optional: Icon for the PDF button (you can use an SVG or font icon) */
.pdf-icon {
    width: 20px;
    height: 20px;
    fill: currentColor; /* Inherits text color */
}

/* Responsive adjustments for resume content */
@media (max-width: 600px) {
    .resume-entry .title-location {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
}


.button { /* General button style, can be used for any link you want as a button */
    background-color: var(--accent);
    color: #fff;
    padding: 0.75rem 1.5rem; /* Adjust padding as needed */
    border-radius: 6px; /* Match other buttons or customize */
    text-decoration: none;
    font-weight: 500;
    display: inline-block; /* Makes padding and width/height work */
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(21,131, 255, 0.2); /* Subtle shadow */
    margin-top: 1rem; /* Space above the button if it follows text */
}

.button:hover {
    background-color: var(--accent-light);
    transform: translateY(-1px); /* Slight lift */
    box-shadow: 0 4px 8px rgba(55, 94, 138, 0.4); /* Enhanced shadow on hover */
}

/* --- Research Grid / Tiles Styling --- */
.research-section {
    text-align: left;
    padding: 2rem 0;
}

.research-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: var(--accent);
}
.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two grids per row */
    gap: 1.5rem; /* Space between tiles */
    margin-top: 2rem;
}

.research-item {
    background-color: #0F191C; /* Slightly darker background for the tile */
    border: 1px solid #333; /* Subtle border */
    border-radius: 8px; /* Rounded corners */
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(25, 25, 112, 1); /* Soft shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effects */
}

.research-item:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 15px rgba(247, 7, 7, 1); /* Stronger shadow on hover */
}

.research-item h3 {
    color: var(--accent); /* Highlight title color */
    font-size: 1.4rem;
    margin-top: 0; /* Remove default h3 margin-top */
    margin-bottom: 1rem;
    border-bottom: 1px solid #444; /* Subtle separator */
    padding-bottom: 0.5rem;
}

.research-item p {
    font-weight: normal;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--light-text-color); /* Slightly lighter paragraph text */
    margin-bottom: 0; /* Remove default p margin-bottom */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1000px) {
    .research-grid {
        grid-template-columns: 1fr; /* Stack tiles vertically on very small screens */
    }
    .research-item {
        padding: 1.2rem;
    }
    .research-item h3 {
        font-size: 1.25rem;
    }
    .research-item p {
        font-size: 0.95rem;
    }
}

/* --- Embedded Image Styles for About/Other Pages --- */
.embedded-image-container {
    /* Center the image block horizontally within the main content */
    margin: 2rem auto; 
    /* Max width helps keep the image from stretching too wide on large screens */
    max-width: 600px; 
    
    /* Add subtle card styling for presentation */
    padding: 1rem;
    background-color: var(--card-background); 
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center; /* Centers the image and caption */
}

.embedded-image {
    /* Ensure the image scales down and up, but never larger than its container */
    max-width: 100%;
    max-height: 400px; /* Prevents overly large images */
    height: auto;
    display: block; /* Important for removing extra space below */
    margin: 0 auto; /* Ensures image is centered inside its container */
    
    /* Style consistency */
    border-radius: 4px; 
    border: 2px solid var(--accent); 
}

.image-caption {
    font-size: 0.9rem;
    color: var(--light-text-color);
    margin-top: 0.5rem;
    margin-bottom: 0;
    text-align: center;
    padding: 0 0.5rem; /* Small horizontal padding */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1000px) {
    .research-grid {
        /* On screens up to 1000px wide, stick to a single column */
        grid-template-columns: 1fr; 
    }
    .research-item {
        padding: 1.2rem;
    }
    .research-item h3 {
        font-size: 1.25rem;
    }
    .research-item p {
        font-size: 0.95rem;
    }
}

.image-gallery {
    display: flex; /* Enable Flexbox layout */
    flex-wrap: wrap; /* Allows images to wrap onto new lines if necessary */
    justify-content: space-between; /* Distribute space evenly between images */
    gap: 1rem; /* Space between the image containers */
    margin: 2rem 0; /* Vertical margin for the whole gallery block */
}

/* Override the default single-image container style when it's inside a gallery */
.image-gallery .embedded-image-container {
    /* Flex-grow: 1 allows them to fill the space. 
       Flex-basis: Sets a minimum width, guaranteeing 3 or 4 fit per row */
    flex: 1 1 calc(25% - 1rem); /* 1rem accounts for the gap */
    
    /* Remove single-image centering and max-width */
    max-width: none;
    margin: 0;
    
    /* Optional: Slight border adjustment for grouped look */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
    padding: 0.8rem;
}

/* Ensure images within the gallery fill their new smaller containers */
.image-gallery .embedded-image {
    max-height: 150px; /* Limit the vertical size of the small images */
}


/* Responsive Adjustments: Stack images on very small screens */
@media (max-width: 700px) {
    .image-gallery .embedded-image-container {
        /* On small screens, let them take up half the width (two per row) */
        flex: 1 1 calc(50% - 1rem); 
    }
}

@media (max-width: 480px) {
    .image-gallery .embedded-image-container {
        /* On smallest screens, stack them (one per row) */
        flex: 1 1 100%; 
    }
}

/* Add to assets/style.css */

/* Contact Form Specific Styles */
.contact-form {
    max-width: 600px;
    margin: 2rem auto; /* Center the form and add vertical space */
    padding: 2rem;
    background-color: var(--card-background); /* Use a defined card background or similar */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--input-background); /* Define a background for inputs */
    color: var(--text-color);
    font-size: 1rem;
    box-sizing: border-box; /* Include padding in width calculation */
}

.contact-form textarea {
    resize: vertical; /* Allow vertical resizing only */
    min-height: 120px;
}

.contact-form input[type="submit"] {
    background-color: var(--accent);
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    width: auto; /* Allow button to size naturally */
    display: inline-block; /* For proper styling */
}

.contact-form input[type="submit"]:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.5);
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #0A66C2; /* LinkedIn blue */
    color: white;
    padding: 12px 20px;
    border-radius: 35px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.linkedin-btn:hover {
    background-color: #004182; /* darker hover */
    transform: translateY(-2px);
}

.linkedin-icon {
    height: 24px;
    width: 24px;
    border-radius: 4px; /* optional if icon is square */
}
/* X (Twitter) Button */
.x-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #000000; /* X brand black */
    color: white;
    padding: 12px 20px;
    border-radius: 35px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.15s ease;
    margin-top: 10px;
}

.x-btn:hover {
    background-color: #333333; /* lighter hover */
    transform: translateY(-2px);
}

.x-icon {
    height: 44px;
    width: 44px;
}
