/* Font Declarations */
@font-face {
    font-family: 'Hurricane';
    src: url('/assets/fonts/Hurricane/Hurricane-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('/assets/fonts/Roboto/Roboto-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Variables */
:root {
    --primary-color: #4285f4;
    --background-dark: #1a1f2b;
    --text-light: #ffffff;
    --text-gray: #8892b0;
    --card-background: #232936;
    --bg-secondary: #f0f0f0;
    --text-color: #333;
    --border-color: #eaeaea;
}

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

html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
    width: 100%;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    position: relative;
}

.logo {
    font-family: 'Hurricane', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    line-height: 1.1;
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.logo.animate {
    animation: slideInFromLeft 0.8s ease-out forwards;
}

.nav-links {
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.nav-links.animate {
    animation: slideInFromRight 0.8s ease-out forwards;
    animation-delay: 0.2s; /* Slight delay after logo animation starts */
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 2rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    padding: 3rem 10%;
    gap: 4rem;
    background-image: url('/assets/hero-background.png');
    background-size: cover;
    background-position: center;
}

.hero-content, .hero-image {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-in, transform 0.8s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin: 3rem 0 2rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-image {
    align-self: flex-start;
}

.profile-pic {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
}

/* Project Cards */
.featured-projects {
    padding: 4rem 10%;
}

.project-card {
    display: flex;
    gap: 3rem;
    background: var(--card-background);
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    transition: transform 0.2s ease;
    opacity: 0;
    transform: translateY(40px);
}

.project-card.reverse {
    flex-direction: row-reverse;
}

.project-card.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.project-image {
    flex-shrink: 0;
    width: 100%;
    max-width: 500px;
}

.project-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    flex: 1;
}

.project-info h3 {
    font-size: 1.8rem;
    color: var(--text-light);
}

/* Project Roles and Tech Stack */
.project-roles, .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.role-tag {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
}

.role-tag:not(:last-child)::after {
    content: "•";
    color: var(--primary-color);
    margin-left: 0.8rem;
}

.tech-stack span {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.view-project {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Footer */
footer {
    background: var(--card-background);
    padding: 4rem 10% 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-brand {
    flex: 1;
    padding-right: 2rem;
    max-width: 400px;
}

.footer-brand h3, .quick-links h4, .contact-info h4 {
    margin-bottom: 1rem;
}

.quick-links {
    flex: 1;
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
}

.quick-links div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.contact-info {
    flex: 1;
}

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

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.social-links i {
    font-size: 1.2rem;
}

/* Animations */
.logo.animate {
    animation: slideInFromLeft 0.8s ease-out forwards;
}

.nav-links.animate {
    animation: slideInFromRight 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.hero-content.fade-in, .hero-image.fade-in {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 1024px) {
    .project-card {
        padding: 2rem;
        gap: 2rem;
    }

    .project-image {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .project-card,
    .project-card.reverse {
        flex-direction: column;
        padding: 1.5rem;
    }

    .project-image {
        align-self: center;
    }

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

    .hero h1 {
        font-size: 2.5rem;
        margin: 1.5rem 0;
    }

    .hero-image {
        align-self: center;
    }

    .project-info h3 {
        font-size: 1.5rem;
    }

    .tech-stack {
        gap: 0.5rem;
    }

    .tech-stack span {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    footer {
        padding: 2rem 10% 2rem;
    }

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

    .footer-brand, .quick-links {
        padding-right: 0;
        max-width: 100%;
    }

    .quick-links {
        align-items: center;
    }

    .quick-links div {
        flex-direction: row;
        gap: 1rem;
    }

    .contact-info p {
        justify-content: center;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background-color: var(--card-background);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        z-index: 90;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 1rem 0;
        font-size: 1.2rem;
    }

    /* Hamburger menu animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .carousel-btn {
        width: 40px;  /* Maintained width */
        height: 60px;  /* Maintained height */
    }

    .gallery-item img {
        max-height: 500px; /* Limit maximum height on mobile */
    }
}

@media (max-width: 480px) {
    .profile-pic {
        width: 150px;
        height: 150px;
    }

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

    .testimonials {
        padding: 2rem 5%;
    }

    .testimonial-container {
        min-height: 300px;
    }

    .testimonial {
        padding: 1.25rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .testimonial-image {
        width: 80px;
        height: 80px;
    }
    
    .testimonial-carousel {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-dots {
        margin-top: 0.5rem;
    }
}

/* Buttons and CTAs */
.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-button:hover {
    background: var(--primary-color);
    filter: brightness(110%);
    transform: translateY(-2px);
}

/* Testimonials */
.testimonials {
    padding: 4rem 10%;
    text-align: center;
    width: 100%;
    position: relative;
    background: var(--card-background);
    margin: 0;
}

.testimonial-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 3rem;
}

.testimonial-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial {
    position: absolute;
    width: 100%;
    max-width: 800px;
    text-align: center;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--background-dark);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%) translateX(100%);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.testimonial.active {
    display: flex;
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    z-index: 2;
}

/* Update animation-related classes */
.testimonial.prev,
.testimonial.next {
    display: flex;
    z-index: 1;
}

.testimonial.prev {
    transform: translateY(-50%) translateX(-100%);
    opacity: 0;
    visibility: visible;
}

.testimonial.next {
    transform: translateY(-50%) translateX(100%);
    opacity: 0;
    visibility: visible;
}

.testimonial-image {
    margin-bottom: 1.5rem;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--primary-color);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    max-width: 700px;
    color: var(--text-light);
}

.testimonial-author {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.author-info h4 {
    margin: 0 0 0.3rem 0;
    font-size: 1.1rem;
    color: var(--text-light);
}

.author-info .role {
    margin: 0 0 0.2rem 0;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.author-info .company {
    margin: 0;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.author-info p {
    margin: 0;
    color: var(--text-gray);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-light);
    width: 2.5rem;
    height: 8rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Navigation Dots */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.dot.active:hover {
    background: var(--primary-color);
}

@media (max-width: 768px) {
    .testimonials {
        padding: 3rem 5%;
    }

    .testimonial-container {
        min-height: 350px;
    }

    .testimonial {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 1.1rem;
    }

    .carousel-btn {
        width: 40px;
        height: 60px;
    }
    
    .testimonial-carousel {
        padding: 2rem 2rem;
    }
}

/* Project Detail Page */
.project-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.project-header {
    margin-bottom: 2rem;
    text-align: center;
}

.project-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-year {
    font-weight: bold;
    color: var(--accent-color);
}

.project-feature-image {
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .project-content {
        grid-template-columns: 2fr 1fr;
    }
    
    .project-gallery {
        grid-column: 1 / -1;
    }
}

.project-description h2,
.project-tech h2,
.project-gallery h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.project-description p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Updated gallery grid styling */
.gallery-grid {
    display: flex;
    width: 100%;
    gap: 1.5rem;
}

.gallery-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gallery-item {
    break-inside: avoid;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--card-background);
}

.gallery-item img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

.gallery-item .caption {
    width: 100%;
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    background: var(--background-dark);
    text-align: left;
}

/* Responsive adjustment for small screens */
@media (max-width: 600px) {
    .gallery-grid {
        flex-direction: column;
    }
}

.project-navigation {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.back-to-projects {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.back-to-projects:hover {
    background-color: var(--accent-dark);
}

/* Portfolio Page Styles */
.portfolio-header {
  background-color: var(--card-background);
  color: var(--text-light);
  padding: 2.5rem 0;
  text-align: center;
}

.portfolio-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  color: var(--text-light);
}

.portfolio-header p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-light);
  color: var(--text-gray);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.all-projects {
  padding: 4rem 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.projects-grid .project-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  text-decoration: none; /* Remove underline from link */
  color: inherit; /* Inherit text color */
  cursor: pointer;
}

.projects-grid .project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.projects-grid .project-image {
  height: 200px;
  overflow: hidden;
}

.projects-grid .project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.projects-grid .project-card:hover .project-image img {
  transform: scale(1.05);
}

.projects-grid .project-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.projects-grid .project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.projects-grid .project-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.projects-grid .project-year {
  color: var(--accent-color);
  font-weight: bold;
  margin-bottom: 1rem;
}

.projects-grid .project-description {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.projects-grid .tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.projects-grid .view-project {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
  margin-top: auto;
}

.projects-grid .project-card:hover .view-project {
  background-color: var(--accent-dark);
}

/* Add responsive adjustments */
@media (max-width: 768px) {
  .gallery-item img {
    max-height: 500px; /* Limit maximum height on mobile */
  }
}

/* Gallery Modal */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow-y: auto; /* Enable vertical scrolling within modal */
  padding: 20px 0;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1400px; /* Increased max-width */
  margin: 2% auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Changed to start from top */
  align-items: center;
  min-height: 90vh;
}

.modal-image-container {
  width: 90%; /* Increased width to 90% */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  margin: 30px 0;
}

.modal-image {
  max-width: 100%;
  max-height: none; /* Remove height constraint */
  object-fit: contain;
  width: auto;
  height: auto;
}

.modal-caption {
  color: white;
  margin-top: 20px;
  text-align: center;
  max-width: 90%;
  padding-bottom: 40px;
}

/* Adjust navigation buttons to not interfere with scrolling */
.modal-prev,
.modal-next {
  position: fixed; /* Change to fixed positioning */
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 30px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  cursor: pointer;
  padding: 15px;
  z-index: 1010;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

/* For very large screens, ensure buttons don't get too far from content */
@media (min-width: 1800px) {
  .modal-prev {
    left: calc((100% - 1400px) / 2 - 30px);
  }
  .modal-next {
    right: calc((100% - 1400px) / 2 - 30px);
  }
}

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

.gallery-modal.active {
  display: block;
  animation: fadeIn 0.3s;
}

/* Disable body scroll when modal is open */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

.modal-close {
  position: fixed; /* Change to fixed to stay in place during scrolling */
  top: 20px;
  right: 20px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.5); /* Add background for visibility */
  border: none;
  cursor: pointer;
  z-index: 1010;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s, color 0.3s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
  color: var(--accent-color);
}

/* For very large screens, position close button relative to content */
@media (min-width: 1800px) {
  .modal-close {
    right: calc((100% - 1400px) / 2 - 30px);
  }
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c5aa0 100%);
    padding: 4rem 10%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/hero-background.png') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 2;
}

.about-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-family: 'Hurricane', serif;
    color: var(--text-light);
}

.about-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    padding: 4rem 10%;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-in, transform 0.8s ease-out;
}

.about-grid.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.about-grid.reverse {
    direction: rtl;
}

.about-grid.reverse > * {
    direction: ltr;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-family: 'Hurricane', serif;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
}

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

.family-photo {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.family-photo:hover {
    transform: scale(1.02);
}

.about-cta {
    text-align: center;
    padding: 3rem;
    background: var(--card-background);
    border-radius: 15px;
    margin-top: 2rem;
}

.about-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-family: 'Hurricane', serif;
}

.about-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }
    
    .about-subtitle {
        font-size: 1.1rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-grid.reverse {
        direction: ltr;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .about-cta h2 {
        font-size: 2rem;
    }
    
    .about-cta p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: 2rem 5%;
    }
    
    .about-content {
        padding: 2rem 5%;
    }
    
    .about-hero h1 {
        font-size: 2rem;
    }
    
    .about-subtitle {
        font-size: 1rem;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .about-cta {
        padding: 2rem 1rem;
    }
    
    .about-cta h2 {
        font-size: 1.8rem;
    }
}

/* Contact Page Styles */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c5aa0 100%);
    padding: 4rem 10%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/hero-background.png') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
}

.contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-family: 'Hurricane', serif;
    color: var(--text-light);
}

.contact-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    padding: 4rem 10%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-section {
    background: var(--card-background);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(40px);
}

.contact-section.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.contact-section:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-family: 'Hurricane', serif;
}

.contact-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
}

.contact-info {
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.contact-item div {
    text-align: left;
}

.contact-item strong {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #5a9eff;
}

.contact-button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.contact-button.primary {
    background: var(--primary-color);
    color: var(--text-light);
}

.contact-button.primary:hover {
    background: #5a9eff;
    transform: translateY(-2px);
}

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

.contact-button.secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.contact-note {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1) 0%, rgba(44, 90, 160, 0.1) 100%);
    border: 1px solid rgba(66, 133, 244, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.note-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.note-content i {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.note-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.note-content p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Responsive Design for Contact Page */
@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-section h2 {
        font-size: 1.8rem;
    }
    
    .contact-section p {
        font-size: 1rem;
    }
    
    .note-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 2rem 5%;
    }
    
    .contact-content {
        padding: 2rem 5%;
    }
    
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
    
    .contact-section {
        padding: 2rem 1.5rem;
    }
    
    .contact-section h2 {
        font-size: 1.6rem;
    }
    
    .contact-note {
        padding: 1.5rem;
    }
}

/* Portfolio Hero Styles */
.portfolio-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c5aa0 100%);
    padding: 4rem 10%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/hero-background.png') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.portfolio-hero-content {
    position: relative;
    z-index: 2;
}

.portfolio-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-family: 'Hurricane', serif;
    color: var(--text-light);
}

.portfolio-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design for Portfolio Hero */
@media (max-width: 768px) {
    .portfolio-hero h1 {
        font-size: 2.5rem;
    }
    
    .portfolio-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .portfolio-hero {
        padding: 2rem 5%;
    }
    
    .portfolio-hero h1 {
        font-size: 2rem;
    }
    
    .portfolio-subtitle {
        font-size: 1rem;
    }
} 