/* Base Styles */

/* Set up for sticky footer */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto; /* This makes the main content take up all available space */
}

/* Logo Link Style */
a.logo {
    text-decoration: none;
    color: inherit;
}

/* Landing Page Styles */
.page-header {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 120px 0 60px;
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}
:root {
    /* Primary Colors - Rich Blue Palette */
    --primary-dark: #1a365d;  /* Deep navy blue */
    --primary: #2a4a7f;       /* Rich medium blue */
    --primary-light: #4c6da3; /* Softer blue */
    
    /* Accent Colors */
    --accent: #f0b429;        /* Warm gold accent */
    --accent-light: #f7d794;  /* Light gold */
    
    /* Neutral Colors */
    --neutral-dark: #2d3748;  /* Dark slate for text */
    --neutral-medium: #718096; /* Medium gray for secondary text */
    --neutral-light: #e2e8f0; /* Light gray for backgrounds */
    
    /* UI Colors */
    --text-dark: #1a202c;     /* Almost black for primary text */
    --text-light: #ffffff;    /* White for text on dark backgrounds */
    --background: #f7fafc;    /* Very light gray for main background */
    --gray-light: #edf2f7;    /* Light gray for cards/sections */
    --gray: #cbd5e0;          /* Medium gray for borders */
    
    /* Success/Error Colors */
    --success: #48bb78;       /* Green for success messages */
    --error: #e53e3e;         /* Red for error states */
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* Apply transition to all elements for smooth theme switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Dark Mode Theme */
[data-theme="dark"] {
    --primary-dark: #6b8bbd;  /* Lighter in dark mode */
    --primary: #a1abbb;       /* Lighter in dark mode */
    --primary-light: #abb9d3; /* Lighter in dark mode */
    
    --accent: #876413;        /* Keep accent color */
    --accent-light: #f7d794;  /* Keep accent light */
    
    --neutral-dark: #e2e8f0;  /* Lighter in dark mode */
    --neutral-medium: #a0aec0; /* Lighter in dark mode */
    --neutral-light: #2d3748; /* Darker in dark mode */
    
    --text-dark: #e2e8f0;     /* Light text in dark mode */
    --text-light: #1a202c;    /* Dark text on light backgrounds in dark mode */
    --background: #121212;    /* Dark background */
    --gray-light: #2a2a2a;    /* Darker gray for cards/sections */
    --gray: #4a4a4a;          /* Darker gray for borders */
}

/* Dark mode specific overrides */
[data-theme="dark"] .hero-content {
    background-color: rgba(0, 0, 0, 0.75); /* Slightly darker background in dark mode */
}

[data-theme="dark"] .hero-content h1 {
    color: #ffffff; /* Ensure heading is bright white in dark mode */
}

[data-theme="dark"] .hero-content p {
    color: #e2e8f0; /* Light color for better readability in dark mode */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
    min-height: 100vh; /* Ensure minimum height is full viewport height */
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding-bottom: 5rem;
}

/* Alternating section backgrounds */
section:not(.page-header):nth-of-type(even) {
    background-color: var(--background);
}

section:not(.page-header):nth-of-type(odd) {
    background-color: var(--gray-light);
}

/* Add subtle pattern to some sections */
.pattern-section {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Dark mode pattern */
[data-theme="dark"] .pattern-section {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Section Dividers */
.section-divider {
    height: 100px;
    width: 100%;
    position: relative;
    margin-top: -30px;
    margin-bottom: 0px;
    overflow: hidden;
}

.wave-divider {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='%23718096'/%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' fill='%232d3748'/%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%231a365d'/%3E%3C/svg%3E");
    height: 20%;
    width: 100%;
    margin-top: 2rem;
}

.wave-divider-flipped {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='%23718096'/%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' fill='%232d3748'/%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%231a365d'/%3E%3C/svg%3E");
    height: 20%;
    width: 100%;
    transform: scaleY(-1);
    margin-top: 5rem;
}

/* Dark mode wave dividers */
[data-theme="dark"] .wave-divider,
[data-theme="dark"] .wave-divider-flipped {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='%23ffffff'/%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' fill='%23ffffff'/%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%23ffffff'/%3E%3C/svg%3E");
}



/* Add extra padding for inner pages to prevent content from being hidden under the fixed navbar */
.case-studies-section,
.apps-section,
.visualizations-section {
    padding-top: 3rem;
}

/* Container for consistent spacing */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Add padding to main content */
main {
    padding-top: 6rem; /* Add padding to ensure content isn't covered by the header */
}

.section-header {
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--neutral-medium);
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 5%;
    background-color: var(--text-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999; /* Increased from 1000 to 9999 to ensure it's always on top */
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 5%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 50px;
    width: auto;
    transition: opacity 0.3s ease;
}

/* Theme-based logo switching */
.logo .logo-light {
    display: block;
}

.logo .logo-dark {
    display: none;
}

[data-theme="dark"] .logo .logo-light {
    display: none;
}

[data-theme="dark"] .logo .logo-dark {
    display: block;
}

/* Dark theme specific styling for portfolio main header */
[data-theme="dark"] .portfolio-main-header {
    background-color: #121212;
}

[data-theme="dark"] .portfolio-main-header::before {
    background: #121212;
}

[data-theme="dark"] .portfolio-main-header .section-header h2,
[data-theme="dark"] .portfolio-main-header .section-header p {
    color: var(--text-dark);
}

/* Dark theme specific styling for page headers */
[data-theme="dark"] .page-header {
    background-color: var(--neutral-dark);
    color: var(--neutral-light);
}

[data-theme="dark"] .page-header h1,
[data-theme="dark"] .page-header p {
    color: var(--neutral-light);
}

/* Dark theme specific styling for navbar */
[data-theme="dark"] .navbar {
    background-color: var(--background);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .navbar.scrolled {
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    font-size: 1.05rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease, background-color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
    transform: translateY(-2px);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.burger:focus {
    outline: 2px solid var(--accent);
    border-radius: 4px;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Enhanced burger animation */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
    background-color: var(--accent);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
    background-color: var(--accent);
}

/* Button hover effect */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
}

.btn-hover-effect: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: 0.5s;
}

.btn-hover-effect:hover:before {
    left: 100%;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 70vh;
    padding: 8rem 5% 3rem;
    background: url('Assets/Images/Home/Hero Image.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for better text visibility */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Place content above the overlay */
    max-width: 675px;
    padding: 2.5rem;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.2;
    position: relative;
}

.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--accent);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--gray-light);
    max-width: 500px;
    margin-top: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--accent);
    color: var(--neutral-dark);
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button: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: 0.5s;
    z-index: -1;
}

.cta-button:hover:before {
    left: 100%;
}

.cta-button:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(42, 74, 127, 0.3);
}

/* Philosophy Section */
.philosophy-section {
    background-color: var(--text-light);
    padding: 5rem 5%;
}

.philosophy-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.philosophy-item {
    flex: 1;
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    background-color: var(--background);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.philosophy-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.philosophy-image {
    position: relative;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 8px;
}

.philosophy-image img {
    width: 100%;
    transition: var(--transition);
}

.philosophy-item:hover .philosophy-image img {
    transform: scale(1.05);
}

.step-number {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background-color: var(--accent);
    color: var(--neutral-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(240, 180, 41, 0.3);
}

.philosophy-item h3 {
    font-size: 1.5rem;
    margin: 1rem 1rem;
    color: var(--primary-dark);
}

.philosophy-item p {
    color: var(--text-dark);
}

/* Portfolio Section */
.portfolio-section {
    background-color: var(--background);
    overflow: hidden;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-card {
    background-color: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05), 0 6px 6px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
}

.portfolio-card:hover, .portfolio-card.highlighted {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0);
}

.portfolio-card.highlighted {
    border: 2px solid var(--accent);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(42, 74, 127, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(42, 74, 127, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(42, 74, 127, 0);
    }
}

.card-image {
    overflow: hidden;
}

.card-image img {
    width: 100%;
    transition: var(--transition);
}

.portfolio-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.card-content p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.card-link {
    display: inline-block;
    color: var(--accent);
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
    border-bottom: 1px dotted var(--accent);
    transition: all 0.3s ease;
}

.card-link::after {
    content: '→';
    margin-left: 5px;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
    transform: translateY(-2px);
}

.card-link:hover::after {
    margin-left: 10px;
    transform: translateX(3px);
}

/* Contact Section */
.contact-section {
    background-color: var(--text-light);
    padding: 5rem 5%;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 1.5rem 2.5rem;
    background-color: var(--background);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    min-width: 250px;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: var(--accent);
    border-left: 3px solid var(--accent);
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--accent);
    margin-right: 1.5rem;
}

.contact-item p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Social links removed */

/* Dark Mode Toggle */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: none;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.theme-toggle:focus {
    outline: 2px solid var(--accent);
    transform: scale(1.1);
}

.theme-toggle i {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(15deg);
}

/* Footer */
footer {
    background-color: var(--neutral-dark);
    color: var(--text-light);
    padding: 2rem 5%;
    text-align: center;
    border-top: 4px solid var(--accent);
    flex-shrink: 0; /* Prevent footer from shrinking */
    width: 100%;
    margin-top: auto; /* Push footer to bottom when content is short */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Scroll-Triggered Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .hero-section {
        justify-content: center;
        text-align: center;
        padding-top: 6rem;
        min-height: 60vh;
    }

    .hero-content {
        max-width: 90%;
        margin: 0 auto;
    }

    .hero-content h1::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-content p {
        margin: 1.5rem auto 2rem;
    }

    .philosophy-grid {
        flex-direction: column;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 0.9rem;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        background-color: var(--text-light);
        height: 100vh;
        width: 80%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem 0;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-links li {
        margin: 1.5rem 0;
        opacity: 0;
        transform: translateX(50px);
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
        display: inline-block;
        width: 80%;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0);
    }

    /* Animation for nav links */
    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-section {
        background-position: center center;
        min-height: 50vh;
    }

    .hero-content {
        padding: 1.5rem;
        max-width: 95%;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .contact-item {
        min-width: 280px;
        max-width: 100%;
        width: 90%;
        justify-content: flex-start;
        padding: 1.5rem;
    }
}

/* Animation Classes */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Contact Section */
.contact-section {
    background-color: var(--gray-light);
    padding: 5rem 0;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    background-color: var(--text-light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    min-width: 320px;
    max-width: 380px;
    flex: 1;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.contact-item p {
    color: var(--text-dark);
    font-weight: 500;
    white-space: nowrap;
    font-size: 1rem;
    line-height: 1.5;
}

/* Portfolio Page Styles - Moved from index.html */
/* Section Spacing */
#case-studies, #apps, #visualizations {
    padding-top: 2rem;
    padding-bottom: 4rem;
    margin-bottom: 2rem;
}

/* Portfolio Main Header Styling */
.portfolio-main-header {
    background-color: var(--primary-dark);
    padding: 2rem 0;
    margin-bottom: -3rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
    left: 0;
    right: 0;
    margin-left: -5%;
    margin-right: -5%;
    width: calc(100% + 10%);
}

.portfolio-main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 74, 127, 0.8) 0%, rgba(26, 54, 93, 0.9) 100%);
    z-index: 1;
}

.portfolio-main-header .section-header h2, 
.portfolio-main-header .section-header p {
    color: var(--text-light);
    position: relative;
    z-index: 2;
}

.portfolio-main-header .section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.portfolio-main-header .section-header h2::after {
    background-color: var(--accent);
    height: 4px;
    width: 80px;
    bottom: -15px;
}

.portfolio-main-header .section-header p {
    font-size: 1.4rem;
    font-weight: 300;
    max-width: 700px;
    margin: 1.5rem auto 0;
    color: var(--text-light);
}

/* Category Headers Styling */
.category-header {
    position: relative;
    padding: 1.5rem;
    margin-bottom: 3rem;
    /* Border radius and box-shadow removed */
}

.category-header h2 {
    font-size: 2.2rem;
}

.category-header p {
    font-size: 1.2rem;
    max-width: 600px;
}

/* Specific Category Header Styles */
/* Note: Background removed from category headers */
.case-studies-header h2::after {
    background-color: var(--primary-dark);
}

.apps-header h2::after {
    background-color: var(--accent);
}

.visualizations-header h2::after {
    background-color: var(--primary-light);
}

/* Case Studies Section Styles */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

@media (min-width: 768px) {
    .case-studies-grid {
        grid-template-columns: repeat(2, minmax(300px, 400px));
    }
}

.case-study-card {
    background-color: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05), 0 6px 6px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 450px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}

.case-study-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0);
}

.case-image {
    overflow: hidden;
    height: 200px;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.case-study-card:hover .case-image img {
    transform: scale(1.05);
}

.case-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.case-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.case-content p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    flex-grow: 1;
}

.case-link {
    display: inline-block;
    color: var(--accent);
    font-weight: 500;
    position: relative;
    align-self: flex-start;
    margin-top: auto;
    padding-bottom: 2px;
    border-bottom: 1px dotted var(--accent);
}

.case-link::after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

.case-link:hover::after {
    margin-left: 10px;
}

.case-link:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Apps Section Styles */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

@media (min-width: 768px) {
    .apps-grid {
        grid-template-columns: repeat(2, minmax(300px, 400px));
    }
}

.app-card {
    background-color: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05), 0 6px 6px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 450px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}

.app-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0);
}

.app-image {
    overflow: hidden;
    height: 200px;
    position: relative;
}

.app-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.app-card:hover .app-image img {
    transform: scale(1.05);
}

.app-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent);
    color: var(--neutral-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.app-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.app-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.app-content p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    flex-grow: 1;
}

.app-link {
    display: inline-block;
    color: var(--accent);
    font-weight: 500;
    position: relative;
    align-self: flex-start;
    margin-top: auto;
    padding-bottom: 2px;
    border-bottom: 1px dotted var(--accent);
}

.app-link::after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

.app-link:hover::after {
    margin-left: 10px;
}

.app-link:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Reset all tech-tag styles to ensure consistency */
span.tech-tag,
.tech-tag,
.tech-stack .tech-tag,
[class*="tech-tag"] {
    /* Set a single consistent color for all tech tags */
    background-color: var(--neutral-light) !important;
    color: var(--primary) !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 4px !important;
    font-size: 0.8rem !important;
    border: 1px solid var(--gray) !important;
    transition: all 0.3s ease !important;
    transform-origin: center !important;
    display: inline-block !important;
    margin: 0.1rem !important;
    text-decoration: none !important;
}

/* Add spacing between icon and text in tech tags */
.tech-tag i {
    margin-right: 0.3rem !important;
}

/* Hover state for all tech tags */
span.tech-tag:hover,
.tech-tag:hover,
.tech-stack .tech-tag:hover,
[class*="tech-tag"]:hover {
    /* Change to accent color only on hover */
    background-color: var(--accent) !important;
    color: var(--text-dark) !important;
    border-color: var(--accent) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

/* Visualizations Section Styles */
.visualizations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

@media (min-width: 768px) {
    .visualizations-grid {
        grid-template-columns: repeat(2, minmax(300px, 400px));
    }
}

.visualization-card {
    background-color: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05), 0 6px 6px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 450px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}

.visualization-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0);
}

.viz-image {
    overflow: hidden;
    height: 200px;
    position: relative;
}

.viz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.visualization-card:hover .viz-image img {
    transform: scale(1.05);
}

.viz-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent);
    color: var(--neutral-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.viz-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.viz-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.viz-content p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    flex-grow: 1;
}

.viz-link {
    display: inline-block;
    color: var(--accent);
    font-weight: 500;
    position: relative;
    align-self: flex-start;
    margin-top: auto;
    padding-bottom: 2px;
    border-bottom: 1px dotted var(--accent);
}

.viz-link::after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

/* About Me Page Styles */
.about-section {
    padding: 4rem 0;
}

.about-content {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: flex-start;
}

.about-image {
    flex: 0 0 300px;
}

.profile-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.profile-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.skills-section {
    margin-top: 2rem;
}

.skills-section h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    display: inline-block;
}

.skills-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category {
    background-color: var(--text-light);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.skill-category h3 i {
    margin-right: 10px;
    color: var(--accent);
}

.skill-list {
    list-style: none;
    padding-left: 1.5rem;
}

.skill-list li {
    margin-bottom: 0.8rem;
    position: relative;
}

.skill-list li::before {
    content: '•';
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

/* Responsive styles for About page */
@media screen and (max-width: 768px) {
    .about-content {
        flex-direction: column;
        align-items: center;
    }
    
    .about-image {
        flex: 0 0 100%;
        max-width: 300px;
        margin-bottom: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

.viz-link:hover::after {
    margin-left: 10px;
}

.viz-link:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}