@import url('https://fonts.googleapis.com/css2?family=Geist+Sans:wght@400;700&display=swap'); /* Assuming Geist Sans is available via Google Fonts or similar, or we have local files */

:root {
    /* Colors from c8-website-original/src/app/globals.css (Dark Theme) */
    /* Mapped to blueprint.md terms where possible */

    --dark-theme-bg: hsl(240, 10%, 3.9%);        /* #0A0A0F - Near black */
    --dark-theme-card-bg: hsl(240, 6%, 10%);     /* #1A1A1A - Slightly lighter dark for cards */
    --dark-theme-text-primary: hsl(0, 0%, 98%);  /* #FAFAFA - Light gray/white text */
    --dark-theme-text-secondary: hsl(240, 5%, 64.9%); /* #A0A0B2 - Lighter gray text (muted-foreground) */
    --dark-theme-border: hsl(240, 3.7%, 15.9%);  /* #262629 - Darker border */

    /* Blueprint Semantic Colors - Mapped from dark theme in globals.css */
    --primary-color: hsl(248, 56%, 28%);       /* #20136B - Dark Blue (from blueprint, maps to dark theme's 'secondary') */
    --secondary-color: hsl(244, 20%, 49%);     /* #676393 - Muted Gray/Purple (from blueprint, maps to dark theme's 'muted' or 'accent') */
    --accent-color: hsl(244, 37%, 67%);        /* #8F89CC - Lavender/Teal (from blueprint, maps to dark theme's 'primary') */

    /* Other useful colors from dark theme */
    --primary-color-original-dark-theme: hsl(244, 37%, 67%); /* #8F89CC - Original 'primary' in dark theme */
    --primary-foreground-original-dark-theme: hsl(240, 10%, 3.9%); /* #0A0A0F */
    --secondary-color-original-dark-theme: hsl(248, 56%, 28%);   /* #20136B - Original 'secondary' in dark theme */
    --secondary-foreground-original-dark-theme: hsl(0, 0%, 98%);/* #FAFAFA */
    --muted-color-original-dark-theme: hsl(244, 20%, 49%);       /* #676393 - Original 'muted' in dark theme */
    --accent-color-original-dark-theme: hsl(244, 20%, 49%);        /* #676393 - Original 'accent' in dark theme */
    --accent-foreground-original-dark-theme: hsl(0, 0%, 98%);   /* #FAFAFA */

    --ring-color: hsl(244, 37%, 67%); /* #8F89CC */

    /* Font */
    --font-primary: 'Geist Sans', sans-serif;

    /* Radius (from globals.css via tailwind config) */
    --radius: 0.5rem;

    /* Neutral Backgrounds from blueprint.md */
    --neutral-bg-white: #FFFFFF;
    --neutral-bg-light-gray: #F0F0F0; /* Or #D3D3D3 for a truer gray */
}

body {
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    background-color: var(--dark-theme-bg);
    color: var(--dark-theme-text-primary);
    line-height: 1.6;
}

/* General Container */
.container {
    width: 90%;
    max-width: 1100px; /* Adjusted from 1200px to better match screenshot proportions */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* Corresponds to px-4 in Tailwind for container */
    padding-right: 1rem; /* Corresponds to px-4 in Tailwind for container */
}

/* Section Padding */
.py-16 {
    padding-top: 4rem; /* 64px */
    padding-bottom: 4rem; /* 64px */
}

.mb-12 {
    margin-bottom: 3rem; /* 48px */
}

.text-3xl {
    font-size: 1.875rem; /* 30px */
    line-height: 2.25rem; /* 36px */
}

.font-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--dark-theme-text-primary);
    margin-top: 0;
    font-weight: 700; /* Geist Sans often looks good with a bolder weight for headings */
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    /* Let's use the primary text color for section titles for now, can adjust to blueprint's primary color if preferred */
    color: var(--dark-theme-text-primary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
.site-header {
    background-color: hsla(240, 10%, 3.9%, 0.65); /* Dark theme bg with more alpha for translucency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    padding: 1em 0;
    border-bottom: 1px solid var(--dark-theme-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 40px; /* Adjust as needed */
    margin-right: 10px;
}

.logo-text {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--dark-theme-text-primary);
}

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation .nav-links a {
    color: var(--dark-theme-text-secondary);
    margin: 0 15px;
    font-weight: bold;
}

.main-navigation .nav-links a:hover,
.main-navigation .nav-links a.active {
    color: var(--accent-color);
}

.main-navigation .contact-link {
    margin-left: 20px;
    font-weight: bold;
    color: var(--accent-color);
}

.main-navigation .contact-link:hover {
    color: var(--dark-theme-text-primary);
}

.mobile-menu-toggle {
    display: none; /* Shown only on smaller screens via media query */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle svg {
    width: 28px;
    height: 28px;
    stroke: var(--dark-theme-text-primary);
}

/* Styles for the active mobile menu */
.main-navigation.active {
    display: flex; /* Re-display when active */
    flex-direction: column;
    position: absolute;
    top: 100%; /* Position below the header */
    left: 0;
    right: 0;
    background-color: var(--dark-theme-bg); /* Same as header */
    padding: 1em 0;
    border-top: 1px solid var(--dark-theme-border);
    box-shadow: 0 4px 6px hsla(0, 0%, 0%, 0.1);
    z-index: 999; /* Ensure it's above other content but below sticky header if header has higher z-index */
}

.main-navigation.active .nav-links {
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.main-navigation.active .nav-links a {
    padding: 1em;
    margin: 0.5em 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--dark-theme-border);
}
.main-navigation.active .nav-links a:last-child {
    border-bottom: none;
}

.main-navigation.active .contact-link {
    padding: 1em;
    margin: 0.5em auto; /* Center the contact link */
    width: auto; /* Auto width for the button-like link */
    text-align: center;
    border: 1px solid var(--accent-color);
    border-radius: var(--radius);
}

/* Hero Section */
.hero {
    position: relative; /* For finisher-header canvas positioning */
    overflow: hidden; /* To contain the animation */
    color: var(--dark-theme-text-primary); /* Ensuring text is light */
    padding: 60px 0;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); /* Skew bottom edge: right side is 8% shorter */
}

.hero-content {
    max-width: 800px;
}

.hero-eyebrow {
    display: inline-block;
    background-color: var(--accent-color); /* Using accent color as per original site */
    color: var(--dark-theme-bg); /* Text color that contrasts with accent */
    padding: 0.35rem 0.75rem;
    border-radius: 9999px; /* pill shape */
    font-size: 0.75rem; /* Small text */
    font-weight: 600; /* Semibold */
    margin-bottom: 1rem; /* Space below it */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--accent-color); /* This is #8F89CC (Lavender/Teal from blueprint) */
    margin-bottom: 0.5em;
}

.hero-title {
    font-size: 3.5em; /* Slightly increased from 3em */
    font-weight: 800; /* Extra bold for impact, if Geist Sans supports it, else 700 */
    background: linear-gradient(120deg, hsl(0, 0%, 100%) 30%, hsl(244, 37%, 80%) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback for browsers that don't support background-clip: text */
    margin-bottom: 0.5em;
    line-height: 1.2;
    text-shadow: 0px 2px 4px hsla(0, 0%, 0%, 0.2); /* Subtle shadow */
}

.hero-description {
    font-size: 1.1em;
    color: hsl(0, 0%, 90%); /* A slightly off-white for hero paragraph */
    margin-bottom: 30px;
}

/* CTA Buttons (General) */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: bold;
    margin: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color); /* #8F89CC */
    color: var(--dark-theme-bg); 
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: hsl(244, 37%, 77%); /* Lighter version of accent for hover */
    border-color: hsl(244, 37%, 77%);
    color: var(--dark-theme-bg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark-theme-text-primary); /* Text on hero/dark sections */
    border-color: var(--dark-theme-text-primary);
}

.btn-secondary:hover {
    background-color: var(--dark-theme-text-primary);
    color: var(--primary-color); /* Text color becomes the dark blue */
}

/* General Page Container for consistent padding */
.page-container {
    padding: 40px 0;
}

/* Skills & Toolkit Grids */
.skills-overview, .toolkit-section, .about-snippet, .portfolio-preview, .bottom-cta {
    padding: 40px 20px; /* Consistent padding for sections within page-container */
}

/* New specific grid container for Toolkit */
.toolkit-grid-container {
    display: grid;
    gap: 1rem; /* Tailwind gap-4 / gap-8 is usually 1rem or 2rem, adjust as needed */
    /* Desktop: 5 columns */
    grid-template-columns: repeat(5, minmax(0, 1fr)); 
}

/* New specific grid container for What I Do */
.what-i-do-grid-container {
    display: grid;
    gap: 1.5rem; /* Adjust gap as needed */
    /* Desktop: 3 columns */
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Card base styles */
.card {
    background-color: var(--dark-theme-card-bg); /* bg-card */
    padding: 1.5rem; /* p-6 */
    border-radius: var(--radius); /* rounded-lg */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-lg */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* Enhanced shadow on hover */
}

/* Unified styling for icons within cards - mb-4 h-8 w-8 text-primary */
.card svg.lucide-icon {
    width: 2rem; /* h-8 (32px) */
    height: 2rem; /* w-8 (32px) */
    color: var(--accent-color); /* text-primary (mapped to accent) */
    margin-bottom: 1rem; /* mb-4 (16px) */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Styling for card titles (h3) - text-xl font-semibold mb-2 */
.card h3 {
    font-size: 1.25rem; /* text-xl */
    line-height: 1.75rem;
    font-weight: 600; /* font-semibold */
    margin-bottom: 0.5rem; /* mb-2 */
    color: var(--dark-theme-text-primary);
}

/* Styling for card paragraphs (p) - text-muted-foreground */
.card p {
    margin: 0;
    color: var(--dark-theme-text-secondary); /* text-muted-foreground */
    font-weight: 400;
    font-size: 0.875rem; /* text-sm often used for muted text */
    line-height: 1.25rem;
}

.skill-card p, .tool-card p {
    margin: 0;
    color: var(--dark-theme-text-primary);
    font-weight: bold; /* Make text bold as in reference */
    font-size: 0.95em;
}

.toolkit-section .toolkit-learning-more {
    margin-top: 35px;
    font-style: italic;
    color: var(--dark-theme-text-secondary);
    text-align: center;
}

/* About Me Snippet */
.about-snippet .about-content {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    align-items: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-snippet .profile-image {
    width: 180px; /* Slightly smaller than original HTML for balance */
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color); /* Using blueprint primary color for border */
    box-shadow: 0 4px 15px hsla(0, 0%, 0%, 0.2);
}

.about-snippet .about-text {
    max-width: 600px;
}

.about-snippet .about-text .section-title {
    margin-bottom: 20px; /* Closer to text */
    text-align: center; /* Ensure centered if flex alignment changes */
}

.about-snippet .about-text p {
    font-size: 1.1em;
    color: var(--dark-theme-text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-snippet .learn-more-link {
    display: inline-block;
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: none; /* Remove underline by default */
    border-bottom: 2px solid transparent; /* For hover effect */
    transition: border-color 0.3s ease, color 0.3s ease;
    vertical-align: middle; /* Align text and icon */
}

.about-snippet .learn-more-link:hover {
    border-bottom-color: var(--accent-color);
    color: var(--accent-color); /* Ensure text color remains on hover */
}

.about-snippet .learn-more-link svg {
    transition: transform 0.2s ease-in-out;
    vertical-align: middle; /* Align icon nicely with the text */
}

.about-snippet .learn-more-link:hover svg {
    transform: translateX(3px);
}

/* Footer */
.site-footer {
    background-color: var(--dark-theme-bg);
    color: var(--dark-theme-text-secondary);
    padding: 20px 0;
    border-top: 1px solid var(--dark-theme-border);
    text-align: center;
}

.site-footer .container {
    display: flex;
    justify-content: space-between; /* This will push social to left, copyright to right */
    align-items: center;
    flex-wrap: wrap;
}

.social-links {
    order: 1; /* Ensure social links come first visually */
    margin-bottom: 10px; /* Add some space if it wraps */
}

.copyright-text {
    order: 2; /* Ensure copyright text comes second */
    margin-bottom: 10px;
}

.social-links a {
    margin: 0 10px; /* Keep existing margin */
    color: var(--dark-theme-text-secondary);
    display: inline-block; /* For proper sizing of SVG container */
}

.social-links a:first-child {
    margin-left: 0; /* Remove margin from the first icon if it's on the left */
}

.social-links a:hover {
    color: var(--accent-color);
}

.social-links svg.footer-icon {
    width: 24px; /* Standard icon size */
    height: 24px;
    stroke-width: 2; /* Standard Lucide stroke */
}

/* Basic Responsive (Example for Mobile Nav Toggle) */
@media (max-width: 768px) {
    .site-header .container {
        flex-wrap: wrap; /* Allow wrapping if logo and toggle are too wide */
    }

    .main-navigation {
        display: none; /* Hide by default on mobile */
        width: 100%;   /* Take full width when active */
        order: 3;      /* Ensure it appears below logo and toggle button if wrapped */
    }

    .main-navigation .nav-links,
    .main-navigation .contact-link {
        display: none; /* Initially hide these when .main-navigation is not .active */
    }
    
    /* When .main-navigation.active, these are handled by the .main-navigation.active rules above */
    .main-navigation.active .nav-links,
    .main-navigation.active .contact-link {
        display: flex; /* or block/flex as per the .active styles */
    }

    .mobile-menu-toggle {
        display: block; /* Show toggle button on mobile */
        margin-left: auto; /* Push it to the right */
    }

    .hero-title {
        font-size: 2.2em;
    }
    .skills-grid, .toolkit-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Smaller cards on mobile */
        gap: 15px;
    }
    .about-snippet .about-content {
        text-align: center; /* Ensure text below image is centered */
    }

    /* Toolkit grid on mobile */
    .toolkit-grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 columns for mobile */
    }

    /* What I Do grid on mobile */
    .what-i-do-grid-container {
        grid-template-columns: repeat(1, minmax(0, 1fr)); /* 1 column for mobile */
    }

    .portfolio-grid {
        grid-template-columns: repeat(1, 1fr); /* 1 column for portfolio on mobile */
    }
}

/* Added media query for about section layout */
@media (min-width: 769px) { /* Apply for larger screens */
    .about-snippet .about-content {
        flex-direction: row; /* Side-by-side layout */
        text-align: left;
    }
    .about-snippet .profile-image {
        margin: 0; /* Reset mobile margin */
    }
    .about-snippet .about-text .section-title {
        text-align: left; /* Align title left on larger screens */
    }
}

/* Responsive adjustments for Toolkit Grid */
@media (max-width: 1024px) { /* Tablet */
    .toolkit-grid-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .what-i-do-grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 columns for tablet */
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for portfolio on tablet */
    }
}

/* Subtle scrollbar styling from globals.css */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-theme-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color); /* Using blueprint's secondary color #676393 */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color); /* Using blueprint's accent color #8F89CC */
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Reusable Page Header Section (for Portfolio, About, Contact pages) */
.page-header-section {
    padding-top: 3rem; /* Reduced top padding */
    padding-bottom: 2rem; /* Reduced bottom padding */
    text-align: center;
    border-bottom: 1px solid var(--dark-theme-border); /* Optional: adds a subtle separator */
    margin-bottom: 3rem; /* Space before the main page content starts */
}

.page-header-section .page-title {
    font-size: 2.75rem; /* Larger font size, e.g., 44px */
    font-weight: 700; /* Bold */
    /* color: var(--dark-theme-text-primary); */ /* Overridden by gradient */
    margin-top: 0; /* Reset margin */
    margin-bottom: 0.75rem; /* Space below title */
    line-height: 1.2;
    /* Apply gradient and shadow like hero-title */
    background: linear-gradient(120deg, hsl(0, 0%, 100%) 30%, hsl(244, 37%, 80%) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback */
    text-shadow: 0px 2px 4px hsla(0, 0%, 0%, 0.2); /* Subtle shadow */
}

.page-header-section .page-subtitle {
    font-size: 1.1rem; /* e.g., 18px */
    color: var(--dark-theme-text-primary);
    margin-top: 0;
    margin-bottom: 0; /* Reset margin, section handles bottom spacing */
    max-width: 700px; /* Constrain subtitle width for readability */
    margin-left: auto;
    margin-right: auto;
}

/* Portfolio Page Specific Styles */
.page-container { /* General container for page content below header */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

#portfolio-page-content .page-title,
#about-page-content .page-title,
#contact-page-content .page-title {
    color: var(--foreground);
    /* padding-top: 80px; */ /* Will be handled by .page-header-section */
    margin-bottom: 1rem;
}

#portfolio-page-content .page-subtitle,
#contact-page-content .page-subtitle {
    color: var(--muted-foreground);
    margin-bottom: 3rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Default to 2 columns */
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-card {
    background-color: var(--dark-theme-card-bg); /* Fallback, image will cover */
    border-radius: 0.5rem; /* 8px */
    overflow: hidden;
    position: relative; /* For positioning the overlay content */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4 / 3; /* Maintain a consistent aspect ratio, adjust as needed */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1), 0 6px 12px rgba(0,0,0,0.1);
}

.portfolio-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 8px 10px rgba(0, 0, 0, 0.15);
}

.portfolio-thumbnail {
    width: 100%;
    height: 100%; /* Image covers the entire card */
    object-fit: cover;
    display: block; /* Remove extra space below image */
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-thumbnail {
    transform: scale(1.05); /* Subtle zoom on image hover */
}

.portfolio-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem; /* 20px */
    background: linear-gradient(to top, hsla(240, 6%, 10%, 0.95) 0%, hsla(240, 6%, 10%, 0.85) 60%, hsla(240, 6%, 10%, 0) 100%);
    color: var(--dark-theme-text-primary);
    transition: opacity 0.3s ease;
}

.portfolio-title {
    font-size: 1.375rem; /* 22px, larger than before */
    font-weight: 700; /* Bold */
    color: var(--dark-theme-text-primary);
    margin-bottom: 0.5rem; /* 8px */
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.portfolio-description {
    font-size: 0.875rem; /* 14px */
    color: var(--dark-theme-text-primary);
    line-height: 1.5;
    margin-bottom: 1rem; /* 16px */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis;
}

.portfolio-tags {
    padding-top: 0.25rem; /* Reduced space above tags */
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: hsla(248, 56%, 28%, 0.7); /* --primary-color with some transparency */
    color: hsl(0, 0%, 95%); /* Brighter text for tags */
    padding: 0.3rem 0.65rem; /* Slightly adjusted padding */
    border-radius: 0.25rem; /* Slightly less rounded */
    font-size: 0.7rem; /* Slightly smaller tags */
    font-weight: 500;
    line-height: 1;
    border: 1px solid hsla(244, 37%, 67%, 0.5); /* --accent-color with transparency */
}

/* Remove CTA button specific to old portfolio card style if it exists */
.portfolio-cta {
    /* display: none; */ /* Or remove if not used elsewhere with this class */
}

/* Bottom CTA Section */
#bottom-cta {
    /* background-color: var(--dark-theme-bg); // Same as body, or can be slightly different */
    /* border-top: 1px solid var(--dark-theme-border); // Optional separator */
}

#bottom-cta h2 {
    color: var(--dark-theme-text-primary);
    /* font-size: 2.5rem; /* Slightly larger if desired */
}

#bottom-cta p {
    color: var(--dark-theme-text-secondary);
    max-width: 600px; /* Constrain width for readability */
    margin-left: auto;
    margin-right: auto;
}

#bottom-cta .btn-lg svg {
    width: 1.1em; /* Adjust icon size relative to text */
    height: 1.1em;
    vertical-align: middle; /* Align icon with text */
    margin-left: 0.5em; /* Space between text and icon */
    transition: transform 0.2s ease-in-out;
}

#bottom-cta .btn-lg:hover svg {
    transform: translateX(3px); /* Slight movement on hover */
}

/* Styles for the About Me Snippet on Homepage */
.about-snippet .about-content {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    align-items: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-snippet .profile-image {
    width: 180px; /* Slightly smaller than original HTML for balance */
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color); /* Using blueprint primary color for border */
    box-shadow: 0 4px 15px hsla(0, 0%, 0%, 0.2);
}

.about-snippet .about-text {
    max-width: 600px;
}

.about-snippet .about-text .section-title {
    margin-bottom: 20px; /* Closer to text */
    text-align: center; /* Ensure centered if flex alignment changes */
}

.about-snippet .about-text p {
    font-size: 1.1em;
    color: var(--dark-theme-text-primary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-snippet .learn-more-link {
    display: inline-block;
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: none; /* Remove underline by default */
    border-bottom: 2px solid transparent; /* For hover effect */
    transition: border-color 0.3s ease, color 0.3s ease;
    vertical-align: middle; /* Align text and icon */
}

.about-snippet .learn-more-link:hover {
    border-bottom-color: var(--accent-color);
    color: var(--accent-color); /* Ensure text color remains on hover */
}

.about-snippet .learn-more-link svg {
    transition: transform 0.2s ease-in-out;
    vertical-align: middle; /* Align icon nicely with the text */
}

.about-snippet .learn-more-link:hover svg {
    transform: translateX(3px);
}

/* Styling for new Action Buttons in Portfolio Cards */
.portfolio-card-actions {
    margin-top: 1rem; /* Space above the buttons */
    display: flex;
    gap: 0.75rem; /* Space between buttons */
    align-items: center; /* Align items if they have different heights */
}

.portfolio-card-actions .btn {
    padding: 0.4rem 0.9rem; /* Smaller padding for card buttons */
    font-size: 0.8rem;    /* Smaller font size */
    border-radius: 0.375rem; /* Tailwind default rounded-md */
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    flex-grow: 1; /* Make buttons take equal width if desired */
    min-width: 100px; /* Minimum width to prevent squishing */
}

.btn-primary-card-action {
    background-color: var(--accent-color); /* Use accent color for primary card action */
    color: var(--dark-theme-bg); /* Ensure contrast */
    border: 1px solid var(--accent-color);
}

.btn-primary-card-action:hover {
    background-color: hsl(244, 37%, 77%); /* Lighter accent */
    border-color: hsl(244, 37%, 77%);
    color: var(--dark-theme-bg);
}

.btn-secondary-card-action {
    background-color: transparent;
    color: var(--dark-theme-text-primary);
    border: 1px solid var(--dark-theme-text-primary);
}

/* About Page Specific Styles */

/* General section title with underline */
.section-title-underline {
    font-size: 2rem; /* Adjust as needed, e.g., 32px */
    font-weight: 700;
    color: var(--dark-theme-text-primary);
    margin-bottom: 2.5rem; /* Space below title */
    text-align: center;
    position: relative;
    padding-bottom: 0.75rem; /* Space for the underline */
}

.section-title-underline::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px; /* Width of the underline */
    height: 3px; /* Thickness of the underline */
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* About Intro Section */
.about-intro-section {
    display: flex;
    align-items: center;
    gap: 2rem; /* Space between image and text */
    margin-bottom: 4rem; /* Space before next section */
    padding: 2rem 0; /* Some vertical padding */
}

.about-profile-image {
    width: 250px; /* Adjust size as needed */
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--dark-theme-card-bg); /* Subtle border */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.about-intro-text {
    flex: 1; /* Allows text to take remaining space */
}

.about-intro-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark-theme-text-primary);
    margin-bottom: 1.5rem;
}

.about-intro-text p:last-child {
    margin-bottom: 0;
}

/* Philosophy Section */
.philosophy-section {
    margin-bottom: 4rem; /* Space before next section */
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 2rem; /* Space between cards */
}

.philosophy-card {
    background-color: var(--dark-theme-card-bg);
    padding: 2rem; /* Generous padding */
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: left; /* Align text to the left within cards */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.philosophy-card svg.lucide-icon {
    width: 2.5rem; /* Larger icon size */
    height: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    /* Icons are aligned left by default in flex/block context */
}

.philosophy-card h3 {
    font-size: 1.5rem; /* Larger title */
    font-weight: 600;
    color: var(--dark-theme-text-primary);
    margin-bottom: 0.75rem;
    text-align: left;
}

.philosophy-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark-theme-text-primary);
    margin: 0;
}

/* Tech Stack Section */
.tech-stack-section {
    margin-bottom: 3rem;
}

.tech-stack-subtitle {
    text-align: center;
    color: var(--dark-theme-text-primary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.tech-skills-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem; /* Space between tags */
}

.skill-tag {
    background-color: var(--primary-color); /* Using blueprint primary */
    color: var(--dark-theme-text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.skill-tag:hover {
    background-color: var(--accent-color); /* Using blueprint accent on hover */
    color: var(--dark-theme-bg);
}

/* Responsive adjustments for About Page */
@media (max-width: 900px) { /* Tablet and smaller */
    .about-intro-section {
        flex-direction: column; /* Stack image and text */
        text-align: center;
    }

    .about-profile-image {
        width: 200px;
        height: 200px;
        margin-bottom: 1rem;
    }

    .philosophy-grid {
        grid-template-columns: 1fr; /* Single column for philosophy cards */
    }

    .philosophy-card h3,
    .philosophy-card svg.lucide-icon {
        text-align: center; /* Center icon and title in single column */
        margin-left: auto;
        margin-right: auto;
    }
    .philosophy-card p {
        text-align: center;
    }
}

@media (max-width: 768px) { /* Mobile */
    .about-profile-image {
        width: 180px;
        height: 180px;
    }

    .section-title-underline {
        font-size: 1.75rem;
    }

    .philosophy-card h3 {
        font-size: 1.3rem;
    }

    .skill-tag {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .what-i-do-grid-container {
        grid-template-columns: repeat(1, minmax(0, 1fr)); /* 1 column for mobile */
    }
    .portfolio-grid {
        grid-template-columns: repeat(1, 1fr); /* 1 column for portfolio on mobile */
    }

    .portfolio-card-featured {
        grid-column: span 1; /* Featured card takes 1 column on mobile */
    }
}

/* Contact Page Specific Styles */
.contact-layout {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 3rem; /* Space between form and info columns */
    padding-top: 2rem; /* Add some space from page header */
}

.contact-form-column {
    flex: 1; /* Adjusted flex ratio - aiming for more equal width with info column */
    min-width: 300px; /* Minimum width before wrapping */
    /* display: flex; */ /* REVERTING: To center the form wrapper within the column */
    /* justify-content: center; */ /* REVERTING: Horizontally center the wrapper */
    /* align-items: flex-start; */ /* REVERTING: Align wrapper to the top, if column is taller */
}

.contact-form-wrapper {
    background-color: var(--dark-theme-card-bg);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    /* margin-left: auto; */ /* To center a max-width wrapper */
    /* margin-right: auto; */ 
}

.contact-info-column {
    flex: 1; /* Aiming for more equal width with form column */
    min-width: 300px; /* Minimum width before wrapping */
    padding-top: 0.5rem; 
}

.contact-section-title {
    font-size: 1.75rem; /* e.g., 28px */
    font-weight: 600;
    color: var(--dark-theme-text-primary);
    margin-bottom: 1.5rem;
}

.contact-form-wrapper .contact-section-title.form-title {
    text-align: center; /* Center "Send a Message" title */
    margin-bottom: 2rem; /* More space below this title */
}

.contact-info-column .contact-section-title.info-title {
    text-align: left; /* Ensure titles in right column are left-aligned */
}

.contact-info-intro {
    color: var(--dark-theme-text-secondary);
    margin-bottom: 1.5rem; /* Adjusted spacing */
    line-height: 1.6;
    text-align: left; /* Ensure intro text is left aligned */
}

/* Form Styling */
#contact-form {
    /* Try to explicitly center the form block itself */
    margin-left: auto;
    margin-right: auto;
    max-width: 450px; /* Adjust as needed - this provides a fixed max width for the form content area */ 
                               /* This might be a better way to control the perceived width and centering */
}

#contact-form .form-group {
    margin-bottom: 1.5rem;
}

#contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-theme-text-secondary);
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--dark-theme-border);
    background-color: var(--dark-theme-bg); /* Changed from --dark-theme-card-bg for darker fields */
    color: var(--dark-theme-text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

#contact-form input[type="text"]:focus,
#contact-form input[type="email"]:focus,
#contact-form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px hsla(var(--accent-color-hsl), 0.3); /* Use HSL for transparency with accent */
    outline: none;
}

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

#contact-form .form-submit-button {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    width: 100%; /* Make button full width of its column */
}

/* Contact Details List */
.contact-details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0; /* Adjusted bottom margin */
}

.contact-details-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    color: var(--dark-theme-text-primary);
}

.contact-details-list li .contact-info-icon {
    width: 22px; /* Slightly smaller */
    height: 22px;
    margin-right: 1rem;
    color: var(--accent-color); /* Icon color */
}

.contact-details-list li a {
    color: var(--dark-theme-text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details-list li a:hover {
    color: var(--accent-color);
}

/* Connect with Me Section */
.connect-title {
    margin-top: 2rem; /* Adjusted top margin */
    margin-bottom: 1rem; /* Added bottom margin */
}

.contact-social-links {
    display: flex;
    gap: 1.5rem; /* Space between social icons */
}

.contact-social-links .social-icon-link svg {
    width: 28px; /* Match screenshot */
    height: 28px;
    color: var(--dark-theme-text-secondary);
    transition: color 0.3s ease;
}

.contact-social-links .social-icon-link:hover svg {
    color: var(--accent-color);
}

/* Responsive adjustments for Contact Page */
@media (max-width: 768px) { /* Mobile */
    .contact-layout {
        flex-direction: column; /* Stack columns on mobile */
        gap: 2rem;
    }
    .contact-form-column, .contact-info-column {
        flex-basis: 100%; /* Make columns full width when stacked */
    }
    .contact-section-title {
        text-align: center; /* Center titles on mobile */
    }
    .contact-info-intro, .contact-details-list, .contact-social-links {
        text-align: center; /* Center align list items and social links container */
    }
    .contact-details-list li {
        justify-content: center; /* Center individual list items */
    }
    .contact-social-links {
        justify-content: center; /* Center social icons */
    }
    #contact-form .form-submit-button {
        width: auto; /* Allow button to size to content on mobile, or keep 100% if preferred */
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    .contact-section-title.form-title {
        text-align: center;
    }
    .contact-section-title.info-title {
        text-align: center; /* Titles in info column centered on mobile */
    }
    .contact-info-intro, .contact-details-list, .contact-social-links {
        text-align: center; /* Center align list items and social links container */
    }
    .contact-details-list li {
        justify-content: center; /* Center individual list items */
    }
} 