/* Custom styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather+Sans:ital,wght@0,300;1,300&display=swap');

:root {
    --primary-green: #006438;
    --new-white: #f6f0f2;
}

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

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes borderPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 100, 56, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 100, 56, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 100, 56, 0);
    }
}

@keyframes pulsate-glow {
    0% {
        text-shadow: none;
    }
    50% {
        text-shadow: 
            0 0 8px var(--new-white),
            0 0 15px var(--new-white),
            0 0 20px var(--new-white),
            0 0 25px var(--new-white);
    }
    100% {
        text-shadow: none;
    }
}

/* Animation classes */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.scale-in {
    opacity: 0;
    animation: scaleIn 0.5s ease-out forwards;
}

/* Delay utilities */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Phase card animations */
.phase-card {
    transition: all 0.3s ease-in-out;
}

.phase-card:hover {
    transform: translateY(-8px);
}

.phase-card.active {
    animation: borderPulse 2s infinite;
}

/* Divider line animation */
.phase-divider {
    position: relative;
    overflow: hidden;
}

.phase-divider::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: currentColor;
    transition: width 0.3s ease-in-out;
}

.phase-card:hover .phase-divider::after {
    width: 100%;
}

/* Custom color classes */
.bg-primary-green {
    background-color: var(--primary-green);
}

.hover\:bg-primary-green:hover {
    background-color: var(--primary-green);
}

.text-primary-green {
    color: var(--primary-green);
}

.hover\:text-primary-green:hover {
    color: var(--primary-green);
}

.border-primary-green {
    border-color: var(--primary-green);
}

/* Century Gothic Paneuropean font-face definitions */
@font-face {
    font-family: 'Century Gothic Paneuropean';
    src: url('assets/century-gothic-paneuropean/CenturyGothicPaneuropeanRegular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Century Gothic Paneuropean';
    src: url('assets/century-gothic-paneuropean/CenturyGothicPaneuropeanItalic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'Century Gothic Paneuropean';
    src: url('assets/century-gothic-paneuropean/CenturyGothicPaneuropeanBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Century Gothic Paneuropean';
    src: url('assets/century-gothic-paneuropean/CenturyGothicPaneuropeanBoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}
@font-face {
    font-family: 'Century Gothic Paneuropean';
    src: url('assets/century-gothic-paneuropean/CenturyGothicPaneuropeanLight.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Century Gothic Paneuropean';
    src: url('assets/century-gothic-paneuropean/CenturyGothicPaneuropeanLightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}
@font-face {
    font-family: 'Century Gothic Paneuropean';
    src: url('assets/century-gothic-paneuropean/CenturyGothicPaneuropeanBlack.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}
@font-face {
    font-family: 'Century Gothic Paneuropean';
    src: url('assets/century-gothic-paneuropean/CenturyGothicPaneuropeanBlackItalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
}
@font-face {
    font-family: 'Century Gothic Paneuropean';
    src: url('assets/century-gothic-paneuropean/CenturyGothicPaneuropeanSemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Century Gothic Paneuropean';
    src: url('assets/century-gothic-paneuropean/CenturyGothicPaneuropeanSemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}
@font-face {
    font-family: 'Century Gothic Paneuropean';
    src: url('assets/century-gothic-paneuropean/CenturyGothicPaneuropeanExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: 'Century Gothic Paneuropean';
    src: url('assets/century-gothic-paneuropean/CenturyGothicPaneuropeanExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
}
@font-face {
    font-family: 'Century Gothic Paneuropean';
    src: url('assets/century-gothic-paneuropean/CenturyGothicPaneuropeanThin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: 'Century Gothic Paneuropean';
    src: url('assets/century-gothic-paneuropean/CenturyGothicPaneuropeanThinItalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
}

/* Update all font-family references to use the new font */
body {
    font-family: 'Century Gothic Paneuropean', Arial, sans-serif;
    font-weight: 300;
}

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

/* Custom animation for hover effects */
.transition-all {
    transition: all 0.3s ease-in-out;
}

/* Custom overlay for hero section */
.hero-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

/* Mobile menu animation */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

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

.dropdown-link {
    position: relative;
}
.dropdown-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}
.dropdown-link:hover::after {
    width: 100%;
}

/* Add glowing effect on hover for header text */
#header nav .hidden.md\:flex a:hover,
#header nav .hidden.md\:flex button:hover,
#header .group .absolute a:hover,
#mobile-menu a:hover {
    text-shadow: none; /* Ensure no static shadow initially */
    animation: pulsate-glow 2.5s infinite ease-in-out;
}

/* Add styles for letter-by-letter glow effect */
#header nav a span,
#header nav button span,
#header .group .absolute a span,
#mobile-menu a span {
    /* Initial state: no glow */
    text-shadow: none;
    transition: text-shadow 0.3s ease-in-out;
}

#header nav a:hover span,
#header nav button:hover span,
#header .group .absolute a:hover span,
#mobile-menu a:hover span {
    /* Hover state: apply glow */
    text-shadow: 
        0 0 5px var(--new-white),
        0 0 10px var(--new-white),
        0 0 15px var(--new-white),
        0 0 20px var(--new-white);
}

/* Add delays for sequential effect (example for up to 10 letters) */
#header nav a:hover span:nth-child(1), #header nav button:hover span:nth-child(1), #header .group .absolute a:hover span:nth-child(1), #mobile-menu a:hover span:nth-child(1) { transition-delay: 0s; }
#header nav a:hover span:nth-child(2), #header nav button:hover span:nth-child(2), #header .group .absolute a:hover span:nth-child(2), #mobile-menu a:hover span:nth-child(2) { transition-delay: 0.03s; }
#header nav a:hover span:nth-child(3), #header nav button:hover span:nth-child(3), #header .group .absolute a:hover span:nth-child(3), #mobile-menu a:hover span:nth-child(3) { transition-delay: 0.06s; }
#header nav a:hover span:nth-child(4), #header nav button:hover span:nth-child(4), #header .group .absolute a:hover span:nth-child(4), #mobile-menu a:hover span:nth-child(4) { transition-delay: 0.09s; }
#header nav a:hover span:nth-child(5), #header nav button:hover span:nth-child(5), #header .group .absolute a:hover span:nth-child(5), #mobile-menu a:hover span:nth-child(5) { transition-delay: 0.12s; }
#header nav a:hover span:nth-child(6), #header nav button:hover span:nth-child(6), #header .group .absolute a:hover span:nth-child(6), #mobile-menu a:hover span:nth-child(6) { transition-delay: 0.15s; }
#header nav a:hover span:nth-child(7), #header nav button:hover span:nth-child(7), #header .group .absolute a:hover span:nth-child(7), #mobile-menu a:hover span:nth-child(7) { transition-delay: 0.18s; }
#header nav a:hover span:nth-child(8), #header nav button:hover span:nth-child(8), #header .group .absolute a:hover span:nth-child(8), #mobile-menu a:hover span:nth-child(8) { transition-delay: 0.21s; }
#header nav a:hover span:nth-child(9), #header nav button:hover span:nth-child(9), #header .group .absolute a:hover span:nth-child(9), #mobile-menu a:hover span:nth-child(9) { transition-delay: 0.24s; }
#header nav a:hover span:nth-child(10), #header nav button:hover span:nth-child(10), #header .group .absolute a:hover span:nth-child(10), #mobile-menu a:hover span:nth-child(10) { transition-delay: 0.27s; }
/* Add more nth-child rules for longer text */

/* Hero section font customizations */
#carousel-title, .hero-title {
    font-family: 'Century Gothic Paneuropean', Arial, sans-serif;
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.1;
}
@media (min-width: 768px) {
    #carousel-title, .hero-title {
        font-size: 5.5rem;
    }
}
#carousel-desc, .hero-desc {
    font-family: 'Century Gothic Paneuropean', Arial, sans-serif;
    font-style: italic;
    font-weight: 300;
    font-size: 1.25rem;
}
@media (min-width: 768px) {
    #carousel-desc, .hero-desc {
        font-size: 1.75rem;
    }
}

/* Remove pulsating glow from hero section */
#carousel-title, .hero-title, #carousel-desc, .hero-desc {
    text-shadow: none !important;
    animation: none !important;
}

/* Apply pulsating glow effect on hover for header text and hero description */
#header nav a,
#header nav button,
#header .group .absolute a,
#mobile-menu a,
#carousel-title,
#carousel-desc {
    text-shadow: none !important;
}

#header nav a:hover,
#header nav button:hover {
    text-shadow: 0 0 8px #fff, 0 0 16px #00c86b, 0 0 2px #fff !important;
}

.eep-glass-card {
    box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.18);
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
    background: transparent !important;
    border: 1.5px solid rgba(255,255,255,0.18);
}
.eep-glass-card > img,
.eep-glass-card > .overlay {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
}
.eep-glass-card > .overlay {
    background: rgba(0,0,0,0.35) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.eep-glass-card h3, .eep-glass-card p, .eep-glass-card span, .eep-glass-card button {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.eep-glass-card button {
    color: #333333;
    background: rgba(255,255,255,0.9);
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}
.eep-glass-card button:hover {
    background: #fff;
    color: #006438;
}
.eep-glass-card svg {
    display: inline;
    vertical-align: middle;
}

.countup span {
    margin: 0 2px;
    min-width: 1ch;
    text-align: center;
    display: inline-block;
    transition: opacity 0.3s, transform 0.2s cubic-bezier(0.4,0,0.2,1);
}

.carousel-slide {
    will-change: opacity, transform;
    background: transparent !important;
}

section h1, section h2, section h3, .section-header {
    font-family: 'Century Gothic Paneuropean', Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.font-sans {
    font-family: 'Century Gothic Paneuropean', Arial, sans-serif;
    font-weight: 300;
}

.project-impact-kpi {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 180px;
    padding: 1.5rem 0;
}

.project-impact-kpi .countup {
    font-size: 2.5rem;
    font-family: 'Century Gothic Paneuropean', Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 0.5rem 0 0.25rem 0;
    line-height: 1;
}

.project-impact-kpi img {
    margin-bottom: 0.5rem;
}

.project-impact-kpi .kpi-label {
    font-size: 1rem;
    font-family: 'Century Gothic Paneuropean', Arial, sans-serif;
    font-weight: 300;
    margin-top: 0.25rem;
    text-align: center;
    line-height: 1.3;
} 
/* Responsive text fixes for small/mobile screens */
@media (max-width: 640px) {
	/* Ensure long headings and paragraphs wrap instead of overflowing */
	.hero-title,
	#carousel-title,
	.hero-desc,
	#carousel-desc,
	.eep-glass-card h3,
	.text-xl.font-bold,
	section p,
	section span {
		word-break: normal;
		overflow-wrap: anywhere;
		hyphens: auto;
		line-height: 1.25;
	}

	/* Scale down hero typography on narrow screens */
	#carousel-title, .hero-title {
		font-size: clamp(2.8rem, 11.8vw, 4.8rem);
		line-height: 1.2;
	}
	#carousel-desc, .hero-desc {
		font-size: clamp(1.4rem, 6.5vw, 1.75rem);
		line-height: 1.4;
	}

}