@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Force dark navbar background on scroll */
header {
  background: var(--bg-secondary) !important;
}
header.scrolled {
  background: var(--bg-secondary) !important;
}
:root {
    /* New Modern Blue Color Palette */
    --primary-color: #ff9442;    
    --secondary-color: #2563eb;  /* A slightly darker blue for accents */
    --accent-color: #ff8c28;     /* A lighter blue for hover effects and highlights */

    --text-primary: #f3f4f6;      /* Off-white for primary text */
    --text-secondary: #d1d5db;   /* Light gray for secondary text */
    --bg-primary: #111827;       /* A deep, dark blue for the main background */
    --bg-secondary: #192230;     /* A slightly lighter dark blue for secondary sections */
    --bg-accent: #374151;        /* Grayish-blue for accents and borders */
    --border-color: #4b5563;     /* A subtle border color */

    /* Modern Shadow Styles */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    /* swap gradient for your photo */
    background: url('../images/your-background.jpg') center/cover no-repeat;
    color: white;
    padding: 120px 0 80px;

    text-align: center;
    position: relative;
    overflow: hidden;
}

/* disable the SVG overlay so it doesn’t obscure your photo */
.hero::before {
    background: none;
}

/* optional overlay if you want to darken it: */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.6); /* Use the new dark background color for the overlay */
    backdrop-filter: blur(2px); /* Slightly more blur for a softer look */
    z-index: 0;
}
.hero-content {
  position: relative;  /* above the overlay */
  z-index: 1;
}

/* Profile image styling */
.profile-pic {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-color);
  margin-bottom: 1rem;
}

/* Photography grid */
.photography {
  padding: 4rem 1rem;
  background: var(--bg-primary);
  text-align: center;
}
/* Photography section header now uses .section-title defaults */


.photo-grid {
  display: grid;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  /* Force exactly 3 columns on desktop */
  grid-template-columns: repeat(3, 1fr);
}

.photo-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.photo-grid img:hover {
  transform: scale(1.05);
}


body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* New modern font */
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.hamburger:hover {
    background-color: var(--bg-accent);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}


.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero .description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0);
}

.btn:hover {
    background: rgba(255, 255, 255, 0);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}


/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Improve text spacing */
body, p, li {
  line-height: 1.6;
}

p, .section-subtitle {
  margin-bottom: 1rem;
}

/* Add spacing between list items */
.experience-achievements li,
.project-achievements li {
  margin-bottom: 0.75rem;
}

/* Skills Section */
.skills {
    background: var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* default desktop: 2×2 */
    gap: 2rem;
}

.skill-category {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--bg-accent);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Experience Section */
.experience-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.experience-item {
    background: var(--bg-secondary);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.experience-company {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.experience-date {
    background: var(--bg-accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.experience-achievements {
    list-style: disc; /* Change to bullet points */
    padding-left: 2rem; /* Add padding for proper alignment */
}

.experience-achievements li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 0; 
}

/* Projects Section */
.projects {
    background: var(--bg-secondary);
}

.project-image {
    width: 100%;
    height: 300px; 
    object-fit: cover;
}

.project-card {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    max-width: 600px;
    margin: 0 auto;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-header {
    background: var(--bg-primary);
    color: white;
    padding: 2rem;
    text-align: center;
}

.project-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ─── Projects grid layout ───────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* default desktop: 2×2 */
  gap: 2rem;
}

/* Let each card fill its grid cell */
.projects-grid .project-card {
  max-width: none;     /* override the 600-px limit */
  margin: 0;           /* remove the auto-centering */
}

/* Mobile: single column */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .photo-grid {
    grid-template-columns: 1fr;
  }
  .photo-grid img {
    height: auto;
  }
}

/* Large desktop: single row, four columns */
@media (min-width: 1200px) {
  .projects-grid,
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tech-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-content {
    padding: 2rem;
}

.project-achievements {
    list-style: none;
    margin-bottom: 1.5rem;
}

.project-achievements li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.project-achievements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.project-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.project-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Education Section */
.education-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.education-degree {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.education-school {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.education-date {
    background: var(--bg-accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    color: var(--text-primary);
    display: inline-block;
    margin-bottom: 1rem;
}

.education-courses {
    text-align: left;
    margin-top: 1rem;
}

.education-courses h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--bg-primary) !important;
    color: white;
    text-align: center;
    padding: 2rem 0;
}


/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Mobile Navigation */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        width: 250px;
        background: rgba(17, 24, 39, 0.6); /* Translucent background */
        backdrop-filter: blur(5px); /* Frosted glass effect */
        border: 1px solid var(--border-color);
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        flex-direction: column;
        padding: 0.5rem 0;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        margin: 0;
        display: flex;
        align-items: center; /* Center text vertically */
        justify-content: center; /* Center text horizontally */
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
        display: block;
        width: 100%;
        text-align: center; /* Center text horizontally */
        border-bottom: 1px solid var(--bg-accent);
        transition: background-color 0.2s ease;
    }

    .nav-links a:hover {
        background-color: var(--bg-accent);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    /* Hero Section Mobile */
    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero .description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .profile-pic {
        width: 200px;
        height: 200px;
        margin-bottom: 1.5rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .contact-item {
        font-size: 0.9rem;
    }

    /* Buttons Mobile */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin: 0.5rem;
    }

    /* Sections Mobile */
    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Skills Mobile */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .skill-category h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .skill-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    /* Experience Mobile */
    .experience-timeline {
        padding: 0 1rem;
    }

    .experience-item {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .experience-title {
        font-size: 1.3rem;
    }

    .experience-company {
        font-size: 1.1rem;
    }

    .experience-date {
        align-self: flex-start;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

.experience-achievements {
    list-style: disc; /* Change to bullet points */
    padding-left: 2rem; 
}

.experience-achievements li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 0; /* Remove extra padding for arrows */
}

    /* Projects Mobile */
    .project-card {
        margin: 0 1rem;
    }

    .project-header {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.5rem;
    }

    .project-content {
        padding: 1.5rem;
    }

    .project-links {
        flex-direction: column;
        align-items: center;
    }

    .project-link {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 200px;
        text-align: center;
    }

    /* Education Mobile */
    .education-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .education-degree {
        font-size: 1.3rem;
    }

    .education-school {
        font-size: 1.1rem;
    }

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

    .education-courses h4 {
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

    .education-courses p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Photography Mobile */
    .photography {
        padding: 3rem 1rem;
    }

.photo-grid {
  display: grid;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
 
}

    .photo-grid img {
        height: auto;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .hero .description {
        font-size: 0.9rem;
    }

    .profile-pic {
        width: 200px;
        height: 200px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .skill-category {
        padding: 1rem;
    }

    .experience-item {
        padding: 1rem;
    }

    .project-header {
        padding: 1rem;
    }

    .project-content {
        padding: 1rem;
    }

    .education-card {
        padding: 1rem;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-item {
        font-size: 0.8rem;
    }

    /* Adjust dropdown for very small screens */
    .nav-links {
        width: calc(100vw - 2rem);
        right: -1rem;
        max-width: 250px;
    }
}

/* Large Mobile/Small Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 3rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Fun animations for cards */
@keyframes cardEnter {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes cardExit {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.8);
        opacity: 0;
    }
}

.card-enter {
    animation: cardEnter 0.6s ease-out;
}

.card-exit {
    animation: cardExit 0.6s ease-in;
}

/* Fun animations for photos */
@keyframes photoEnter {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes photoExit {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.8);
        opacity: 0;
    }
}

.photo-enter {
    animation: photoEnter 0.6s ease-out;
}

.photo-exit {
    animation: photoExit 0.6s ease-in;
}

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

/* Improve touch targets for mobile */
@media (max-width: 768px) {
    .btn, .project-link, .nav-links a, .hamburger {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
}

/* Improve focus states for accessibility */
.btn:focus, .project-link:focus, .nav-links a:focus, .hamburger:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

#portraits {
  background: var(--bg-secondary);
}

/* Mobile: keep social links horizontal */
@media (max-width: 768px) {
  .social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .social-links .btn {
    display: inline-flex;
    margin: 0;
  }
}

.portrait-bookings {
    text-align: center; /* Center-align the content */
    margin-top: 2rem; /* Add spacing above the section */
}

.portrait-bookings .project-link {
    display: inline-block; /* Ensure the button is treated as a block for centering */
    margin: 0 auto; /* Center the button horizontally */
}
