/* style.css */

/* Base HTML and Body styles */
html, body {
    margin: 0;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif; /* Using Inter font as requested */
}

/* Canvas positioning */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    display: block;
}
.scroll-prompt {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  font-weight: bold;
  color: #f8f8f8;
  background: rgba(30, 30, 30, 0.75);
  padding: 14px 28px;
  border-radius: 30px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
  animation: subtle-bounce 2s infinite;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.95;
}
.scroll-prompt i {
  font-size: 24px;
  color: #ffffffcc;
  animation: arrowFade 1.2s infinite;
}



/* Make the page scrollable to trigger animation */
.scroll-container {
    height: 300vh; /* Provides scrollable height */
}

/* Base style for content containers (sidebar and main) */
.sidebar-content,
.main-content-area {
    position: fixed; /* Stays fixed relative to the viewport */
    color: #fff;
    pointer-events: none; /* Allows mouse events to pass through to canvas by default */
    opacity: 0; /* Start hidden, will fade in with JS */
    transition: opacity 0.8s ease-out; /* Smooth transition for fade-in */
    z-index: 10; /* Ensure it's above the canvas */
    box-sizing: border-box; /* Include padding/border in element's total width/height */

    /* FULLY TRANSPARENT BACKGROUND - NO BLUR */
    background-color: rgba(255, 255, 255, 0); /* Fully transparent background */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Subtle border */
    border-radius: 12px; /* Slightly rounded corners */
}

/* Rule to make the content visible and interactive when the 'visible' class is added by JS */
.sidebar-content.visible,
.main-content-area.visible {
    opacity: 1; 
    pointer-events: auto; /* Enable interaction when visible */
}

/* Specific styles for sidebar content container */
.sidebar-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    justify-content: flex-start; /* Align content to the top */
    gap: 25px; /* Space between the profile card and contact info */
    overflow-y: auto; /* Allow vertical scrolling */
    overflow-x: hidden;
    text-align: center; /* Ensure text within sidebar is centered */
}

/* Specific styles for main content area */
.main-content-area {
    padding: 30px; /* Adjust padding as needed */
    overflow-y: auto; /* Allow vertical scrolling */
    overflow-x: hidden;
    min-width: 600px; /* NEW: Ensure enough width for grid to form on larger screens */
}

/* Hide scrollbar for WebKit browsers (Chrome, Safari, Edge) */
.sidebar-content::-webkit-scrollbar,
.main-content-area::-webkit-scrollbar {
    width: 0px; /* Remove scrollbar space */
    background: transparent; /* Optional: just make scrollbar invisible */
}

/* For Firefox (less control over visual hiding, but can make it thin/transparent) */
.sidebar-content {
    scrollbar-width: none; /* Firefox */
}
.main-content-area {
    scrollbar-width: none; /* Firefox */
}


/* Styling for the square profile card */
.profile-card {
    background-color: rgba(255, 255, 255, 0.05); /* Inherit service-item background */
    padding: 20px;
    border-radius: 10px; /* Inherit service-item border-radius */
    border: 1px solid rgba(255, 255, 255, 0.08); /* Inherit service-item border */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    width: 100%; /* Take full width of sidebar padding */
    max-width: 250px; /* Limit max width for square appearance on larger screens */
    aspect-ratio: 1 / 1; /* Make it perfectly square */
    box-sizing: border-box; /* Include padding in width/height */
    flex-shrink: 0; /* Prevent it from shrinking too much */
}

/* Profile Image Styling within the profile card */
.profile-card .profile-img-container {
    width: 100px; /* Adjusted size for better fit within the card */
    height: 100px; /* Adjusted size */
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px; /* Margin below profile image */
    border: 3px solid rgba(255, 255, 255, 0.3);
}
.profile-card .profile-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Name and Title styling within the profile card */
.profile-card .name {
    font-size: 1.5em; /* Slightly adjusted font size */
    margin-bottom: 5px; /* Margin below name */
}
.profile-card .title {
    font-size: 0.85em; /* Slightly adjusted font size */
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0; /* No margin-bottom if it's the last element in the card */
}

/* Adjustments for the main contact-info container */
.contact-info {
    width: 100%; /* Ensure it spans the width for alignment */
    display: flex; /* Use flexbox for contact item cards */
    flex-direction: column; /* Stack cards vertically */
    gap: 10px; /* Space between individual contact item cards */
    padding: 0 10px; /* Add some horizontal padding for the group of cards */
    box-sizing: border-box;
}

/* Styling for individual rectangular-oval contact item cards (now applies to <a>) */
.contact-item-card {
    background-color: rgba(255, 255, 255, 0.05); /* Use service-item background */
    padding: 10px 15px; /* Adjusted padding for smaller size */
    border-radius: 9999px; /* Makes it rectangular-oval/pill-shaped */
    border: 1px solid rgba(255, 255, 255, 0.08); /* Use service-item border */
    
    display: flex;
    align-items: center; /* Align icon and text vertically */
    justify-content: flex-start; /* Align content to the left */
    font-size: 0.9em; /* Adjusted font size */
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none; /* Remove underline for links */
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease; /* Smooth hover transition */
}

.contact-item-card:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly brighter on hover */
    border-color: rgba(255, 255, 255, 0.2);
    color: #F8B400; /* Change text color on hover */
}

.contact-item-card .icon {
    margin-right: 10px;
    color: #F8B400; /* Accent color for icons */
    font-size: 1.2em;
}

/* Main Content Navigation - Made Sticky and Transparent */
.main-nav {
    display: flex;
    justify-content: flex-end; /* Align links to the right */
    gap: 25px; /* Space between links */
    margin-bottom: 15px; /* Adjusted: Margin below nav, pushing subsequent content down */

    position: sticky; /* Make it sticky */
    top: -30px; /* Adjusted: Sticks -30px from the top of its scrollable parent (main-content-area) */
    z-index: 11; /* Ensure it stays above other content in main-content-area */
    
    /* FULLY TRANSPARENT BACKGROUND - NO BLUR */
    background-color: rgba(255, 255, 255, 0); /* Fully transparent background for sticky nav */
    
    /* Adjust padding and margins to extend across the full width of the main-content-area's padding */
    padding-top: 15px; 
    padding-bottom: 15px;
    margin-top: -30px; /* Adjusted: Pulls nav up to counteract main-content-area's top padding */
    margin-left: -50px; /* Adjusted: Pulls nav left to counteract main-content-area's left padding */
    margin-right: -30px; /* Adjusted: Pulls nav right to counteract main-content-area's right padding */
    width: calc(100% + 60px); /* Extends width to cover full width including original padding */
    box-sizing: border-box; /* Ensure padding is included in width calculation */
    border-top-left-radius: 12px; /* Match parent container's border radius */
    border-top-right-radius: 12px;
}
.main-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}
.main-nav a:hover {
    color: #F8B400; /* Hover color */
}
/* Active nav link (example) */
.main-nav a.active {
    color: #F8B400;
    position: relative;
}
.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #F8B400;
    border-radius: 1px;
}

/* Section Headings - Default Styling (no yellow, no underline) */
.main-content-area h2 {
    font-size: 2.2em;
    margin-bottom: 25px; /* Margin below default h2 */
    color: rgba(255, 255, 255, 0.8); /* Default white/grey color */
    position: relative;
}

/* Active Section Heading Styling (yellow with underline) */
/* This now applies to the first h2 within the active section, which could be 'About Me' or 'Resume', etc. */
.main-content-area section.active-content-section h2:first-of-type { /* Adjusted selector for clarity */
    color: #F8B400; /* Yellow accent color */
    margin-top: -50px;  /* Push down */
}
.main-content-area section.active-content-section h2:first-of-type::after { /* Adjusted selector for clarity */
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px; /* Underline effect */
    height: 3px;
    background-color: #F8B400;
    border-radius: 2px;
}

/* Paragraphs */
.main-content-area p {
    font-size: 1.05em;
    line-height: 1.6;
    margin-bottom: 20px; /* Margin below paragraphs */
    color: rgba(255, 255, 255, 0.8);
}

/* Default state for all content sections (hidden by default) */
.main-content-area section {
    display: none; /* Hide all sections by default */
}

/* Specific display for the active section */
.main-content-area section.active-content-section {
    display: block; /* Show the active section */
}


/* Skills & Expertise Section Styling */
.skills-wrapper {
    width: 100%; /* Ensure it takes full width of main-content-area */
    max-width: 100%; /* Prevent overflow */
    overflow-x: hidden; /* Avoid horizontal scroll */
}

.skills-grid { 
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force 3 columns */
    gap: 15px;
    margin-top: 20px;
    width: 100%; /* Ensure it uses full wrapper width */
}

.skill-category-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 100%; /* Allow cards to fit within grid */
    box-sizing: border-box;
    word-break: break-word; /* Ensure long text wraps */
}

.skill-category-card h3 {
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-category-card li {
    font-size: 0.85em;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
    position: relative;
    padding-left: 12px;
    word-break: break-word; /* Ensure long text wraps */
}

.skill-category-card li::before {
    content: '•'; /* Custom bullet point */
    color: #F8B400; /* Accent color for bullet points */
    position: absolute;
    left: 0;
    top: 0;
}
/* Portfolio Section Styling */
.portfolio-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: 30px; /* Match main-content-area padding */
    margin-left: -30px;
}

#portfolio-section {
    background-color: rgba(255, 255, 255, 0); /* Transparent background to match theme */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff; /* White text for dark theme */
}

#portfolio-section h2 {
    font-size: 2.2em;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

#portfolio-section .active-section {
    color: #F8B400; /* Match your active section style */
}

#portfolio-section .active-section::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #F8B400;
    border-radius: 2px;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px; /* Reduced gap for compactness */
    margin-bottom: 20px;
    margin-left: 0px;
}

.category-filters button {
    background-color: rgba(248, 180, 0, 0.1); /* Adjusted to match your yellow accent */
    color: #F8B400 !important;
    padding: 8px 16px;
    border-radius: 25px;
    border: 1px solid #F8B400;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-filters button:hover,
.category-filters button.active {
    background: linear-gradient(to right, #F8B400, #FFD700); /* Yellow gradient */
    color: #000 !important;
    box-shadow: 0 5px 15px rgba(248, 180, 0, 0.3);
}

.website-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjusted for your layout */
    gap: 20px;
}

.website-card {
    background-color: rgba(255, 255, 255, 0.05); /* Match your theme */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.website-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.website-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;
}

.website-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 180, 0, 0.8); /* Match your yellow accent */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #000; /* Dark text for contrast */
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    text-align: center;
    padding: 15px;
    box-sizing: border-box;
    pointer-events: none; /* This is the fix: makes the overlay non-interactive */
}

.website-card:hover .card-overlay {
    opacity: 1;
}

.website-card .card-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    color: #000;
}

.website-card .card-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    color: #000;
}

/* Styling for content within other sections (Resume, Portfolio, Blog, Contact) for consistency */
.main-content-area section h3 {
    font-size: 1.6em;
    color: #F8B400; /* Consistent heading color */
    margin-top: 30px;
    margin-bottom: 15px;
}

.main-content-area section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-content-area section ul li {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding-left: 15px;
}

.main-content-area section ul li::before {
    content: '•'; /* Consistent bullet point */
    color: #F8B400;
    position: absolute;
    left: 0;
    top: 0;
}

.project-link, .submit-button {
    display: inline-block;
    background-color: #F8B400;
    color: #000;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.project-link:hover, .submit-button:hover {
    background-color: #e0a800; /* Slightly darker yellow on hover */
}

.blog-date {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: -10px; /* Pull date closer to title */
    margin-bottom: 10px;
}

/* Contact Form Styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.form-input, .form-textarea {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box; /* Include padding in width */
}

.form-input::placeholder, .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #F8B400;
    box-shadow: 0 0 0 2px rgba(248, 180, 0, 0.3);
}

.form-textarea {
    min-height: 120px;
    resize: vertical; /* Allow vertical resizing */
}

.submit-button {
    align-self: flex-start; /* Align button to the left */
    cursor: pointer;
}


/* Small adjustments for layout when screen is narrow */
@media (max-width: 768px) {
    .main-nav {
        justify-content: center;
        gap: 15px;
    }
    .main-content-area h2 {
        font-size: 1.8em;
    }
    .main-content-area p {
        font-size: 0.95em;
    }
    .sidebar-content {
        padding: 15px;
    }
    .main-content-area {
        padding: 20px;
    }
    /* Adjustments for smaller profile card on mobile */
    .profile-card {
        max-width: 200px;
        padding: 15px;
    }
    .profile-card .profile-img-container {
        width: 80px;
        height: 80px;
    }
    .profile-card .name {
        font-size: 1.3em;
    }
    .profile-card .title {
        font-size: 0.8em;
    }
    .contact-info {
        padding: 0; /* Remove horizontal padding on smaller screens if it causes issues */
    }
    .contact-item-card {
        font-size: 0.85em;
        padding: 8px 12px;
    }
    .skills-expertise .skills-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
}


@keyframes subtle-bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

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


/* --- Image Modal (Lightbox) Styles --- */

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 2000; /* Sit on top of everything */
  padding-top: 60px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (The Image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 900px;
  animation-name: zoom;
  animation-duration: 0.6s;
}

/* Animation for the modal */
@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

/* The Close Button */
.close-button {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close-button:hover,
.close-button:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* On smaller screens, add some padding */
@media (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}
