:root {
    /* Primary Colors - Climate-inspired green palette */
    --primary-color: #059669;
    --primary-dark: #047857;
    --primary-light: #10b981;
    --primary-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
    
    /* Secondary Colors */
    --secondary-color: #0891b2;
    --secondary-dark: #0e7490;
    --accent-color: #f59e0b;
    --accent-dark: #d97706;
    
    /* Text Colors */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-dark: #111827;
    
    /* Border & Shadows */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-colored: 0 20px 25px -5px rgba(5, 150, 105, 0.1), 0 10px 10px -5px rgba(5, 150, 105, 0.04);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Poppins', sans-serif;
    
    /* Animations */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

/* Enhanced Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    box-shadow: var(--shadow);
    border-bottom-color: var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
}

.nav-logo h2 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.25rem;
}

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

/* Enhanced Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 50%, #ecfdf5 100%);
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="2" fill="%23059669"/><circle cx="75" cy="25" r="2" fill="%2310b981"/><circle cx="25" cy="75" r="2" fill="%230891b2"/><circle cx="75" cy="75" r="2" fill="%23f59e0b"/></svg>') repeat;
    animation: float 20s ease-in-out infinite;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: radial-gradient(circle at 20% 20%, rgba(5, 150, 105, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 60%, rgba(8, 145, 178, 0.1) 0%, transparent 50%);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    font-family: var(--font-display);
    color: var(--text-primary);
}

.highlight {
    color: var(--primary-color);
    font-weight: inherit;
    display: inline;
    position: relative;
}

/* Only apply gradient if browser supports it */
@supports (background-clip: text) or (-webkit-background-clip: text) {
    .highlight {
        background: linear-gradient(135deg, #059669 0%, #10b981 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}

/* Hero title styling */
.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    font-family: var(--font-display);
    color: var(--text-primary);
}

/* Ensure the highlight inherits proper styling */
.hero-title .highlight {
    font-weight: 800;
    font-family: inherit;
}

/* Fallback for older browsers */
.no-backgroundclip .highlight {
    background: none !important;
    -webkit-text-fill-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-family: var(--font-display);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    font-family: var(--font-primary);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 50px -12px rgba(5, 150, 105, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-colored);
}

.hero-img-container {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    border: 6px solid white;
}

.hero-img-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    animation: rotate 10s linear infinite;
    z-index: -1;
}

.hero-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(5, 150, 105, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    opacity: 0;
    transition: var(--transition);
}

.hero-img-container:hover .hero-img-overlay {
    opacity: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* Enhanced Section Styles */
section {
    padding: 120px 0;
    position: relative;
}

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

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

/* Enhanced About Section */
.about {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #ecfdf5 50%, var(--bg-secondary) 100%);
    position: relative;
}

/* Enhanced Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-family: var(--font-display);
}

.skill-category h3 i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-item {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.skill-item:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Enhanced Portfolio Section */
.projects {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #f0fdf4 50%, var(--bg-secondary) 100%);
}

.portfolio-category {
    margin-bottom: 5rem;
}

.category-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.75rem;
    font-family: var(--font-display);
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.8) 0%, rgba(16, 185, 129, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

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

.project-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.project-link:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.1);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: var(--font-display);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tech span {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 500;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
    margin-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 2rem;
}

.timeline-date {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    height: fit-content;
}

.timeline-content {
    flex: 1;
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: var(--text-secondary);
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-items {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.social-links a {
    position: relative;
}

.social-links a::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.social-links a:hover::after {
    opacity: 1;
}

.contact-form {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Resume Section */
.resume {
    background: var(--bg-secondary);
}

.resume-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    align-items: center;
}

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

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

.resume-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.resume-text .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.resume-highlights {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.resume-highlights h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.resume-highlights ul {
    list-style: none;
    padding: 0;
}

.resume-highlights li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

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

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

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex !important;
    }

    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        padding: 2rem 0;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-item {
        margin: 1rem 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

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

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-img-container {
        width: 300px;
        height: 300px;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

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

    .skill-category,
    .project-content {
        padding: 1.5rem;
    }

    /* About section mobile adjustments */
    .about-me {
        padding: 3rem 1rem;
    }

    .about-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .about-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Hero banner mobile adjustments */
    .hero-banner {
        height: 350px;
    }

    .animated-text {
        font-size: 1.8rem;
    }

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

    .hero-btn-container {
        flex-direction: column;
        gap: 10px;
    }

    .hero-btn {
        width: 80%;
        text-align: center;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Complete Portfolio Section Redesign */
.portfolio-section {
  padding: 60px 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.portfolio-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.portfolio-image {
  width: 100%;
  position: relative;
  background: #f5f5f5;
}

/* This is the key change - we're not setting height constraints */
.portfolio-image img {
  width: 100%;
  display: block;
  height: auto; /* Let height be determined by aspect ratio */
}

.portfolio-content {
  padding: 20px;
}

.portfolio-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.portfolio-description {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 15px;
  line-height: 1.6;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.portfolio-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 30px;
  font-weight: 500;
}

.portfolio-link {
  display: inline-block;
  color: #2563eb;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}

.portfolio-link:hover {
  color: #1d4ed8;
}

/* Lightbox for full image view */
.portfolio-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
}

.lightbox-caption {
  color: white;
  text-align: center;
  padding: 10px;
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 100%;
}

/* Animation for lightbox */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-active {
  display: flex;
  animation: fadeIn 0.3s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Hero Banner with Animated Image */
.hero-banner {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 60px;
    background-color: #0d9488; /* Fallback background color */
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1; /* Ensure proper stacking */
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: subtle-zoom 20s infinite alternate;
    display: block; /* Ensure image displays as block */
}

/* Debug styles to highlight if image fails to load */
.hero-image:-moz-broken {
    outline: 5px solid red;
}

.hero-image.error {
    background-color: #f43f5e;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* Animation Keyframes */
@keyframes subtle-zoom {
    0% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1.15);
    }
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles for Hero Banner */
@media (max-width: 768px) {
    .hero-banner {
        height: 400px;
    }
    
    .animated-text {
        font-size: 2.2rem;
    }
    
    .animated-subtitle {
        font-size: 1rem;
    }
    
    .hero-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        height: 350px;
    }
    
    .animated-text {
        font-size: 1.8rem;
    }
    
    .hero-btn-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-btn {
        width: 80%;
        text-align: center;
    }
}
.hero-btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* Animation Keyframes */
@keyframes subtle-zoom {
    0% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1.15);
    }
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles for Hero Banner */
@media (max-width: 768px) {
    .hero-banner {
        height: 400px;
    }
    
    .animated-text {
        font-size: 2.2rem;
    }
    
    .animated-subtitle {
        font-size: 1rem;
    }
    
    .hero-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        height: 350px;
    }
    
    .animated-text {
        font-size: 1.8rem;
    }
    
    .hero-btn-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-btn {
        width: 80%;
        text-align: center;
    }
}
