/* ============= PRELOADER ============= */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--sand);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    animation: fadeOutPreloader 5.5s forwards;
    overflow: hidden;
}

.typing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: bold;
    color: var(--cyprus);
    white-space: nowrap;
}

.line {
    opacity: 0;
    overflow: hidden;
    border-right: 3px solid var(--cyprus);
    animation: blink .75s step-end infinite;
}

#line1 {
    animation: typing1 2s steps(8, end) forwards;
}

.divider {
    font-size: 3rem;
    margin: 0.5rem 0;
    color: var(--cyprus);
    opacity: 0;
    animation: fadeInDivider 0.5s ease 2s forwards;
}

#line2 {
    animation: typing2 2s steps(11, end) 2.5s forwards;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

@keyframes typing1 {
    from {
        width: 0;
        opacity: 1;
    }

    to {
        width: 100%;
        opacity: 1;
    }
}

@keyframes typing2 {
    from {
        width: 0;
        opacity: 1;
    }

    to {
        width: 100%;
        opacity: 1;
    }
}

@keyframes fadeOutPreloader {

    0%,
    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        visibility: hidden;
        display: none;
    }
}

@keyframes fadeInDivider {
    to {
        opacity: 1;
    }
}

/* ================== NAVBAR ================== */
#mainNavbar {
    background: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: background 0.3s, box-shadow 0.3s, opacity 0.3s;
    z-index: 1030;
    padding: 0.4rem 0.5rem;
}

#mainNavbar.nav-scrolled {
    background: rgba(255, 255, 255, 0.30) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
} 

#mainNavbar .nav-link {
    font-weight: 700;
    font-size: 1rem;
    color: var(--white) !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.4rem 0.9rem;
    /* Increased padding for better spacing */
}

#mainNavbar.nav-scrolled .nav-link {
    color: var(--cyprus) !important;
}

#mainNavbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--highlight);
    transition: width 0.3s ease;
}

#mainNavbar .nav-link:hover::after {
    width: 100%;
}

.navbar-brand img {
    height: 50px;
    max-height: 100px;
    width: auto;
    transition: all 0.3s ease;
}

/* Partner With Us button */
.btn-cyprus {
    background-color: var(--cyprus);
    color: white !important;
    border: 2px solid var(--cyprus);
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
}

.btn-cyprus:hover {
    background-color: #003a37;
    border-color: #003a37;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
/* ================== HERO SECTION ================== */
.hero-static {
    position: relative;
    background: url('images/hero4.jpg') no-repeat center center ;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    z-index: 1;
    
}

/* Gradient overlay: dark on left, clear on right */
.hero-static::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    z-index: 1;
    pointer-events: none;
}

.hero-text {
    max-width: 600px;
    text-align: left;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
    position: relative;
        z-index: 2;
}

.hero-heading {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
    animation: slideInLeft 0.8s ease-out;
    
}

.highlight-word {
    color: var(--highlight);
}

.lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    animation: fadeIn 1.2s ease-out;
    color:black;
}

.btn-outline-cyprus {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--highlight);
    background: transparent;
    color: white;
    font-size: 1rem;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    animation: fadeIn 1.5s ease-out;
}

.btn-outline-cyprus:hover {
    background-color: var(--highlight);
        color: var(--cyprus);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    
    .hero-static .container {
        justify-content: center;
        text-align: center;
    }

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

    
}
@media (max-width: 576px) {
    .hero-static {
        background-position: center 20%;
    }
}
/* ================== ABOUT SECTION ================== */
 /* Image loading improvements */
 .lazy-img {
     opacity: 0;
     transform: translateY(20px);
     transition: all 0.6s ease;
 }

 .lazy-img.loaded {
     opacity: 1;
     transform: translateY(0);
 }
/* Main About Image */
.about-image {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Sub image styling */
.about-sub-img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.75rem;
    transition: transform 0.3s ease;
}

/* Main image (landscape) */
.about-main-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.about-sub-img:hover,
.about-main-img:hover {
    transform: scale(1.03);
    z-index: 1;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .about-main-img {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 480px) {
    .about-main-img {
        aspect-ratio: 16 / 11;
    }

    .about-sub-img {
        aspect-ratio: 1 / 1;
    }
}
.btn-outline-cyprus {
    border: 2px solid var(--cyprus);
    color: var(--cyprus);
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    
}

.btn-outline-cyprus:hover {
    background-color: var(--cyprus);
        color: #fff;
        transform: translateY(-3px);
}

#about .lead {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

#about ul li {
    margin-bottom: 1rem;
    line-height: 1.6;
}
.catchphrase {
    background-color: rgba(0, 70, 67, 0.05);
    padding: 1.5rem;
    border-left: 3px solid var(--cyprus);
    font-family: 'Montserrat', sans-serif;
    border-radius: 1rem;
}

.catchphrase .highlight-word {
    color: var(--cyprus);
    font-weight: 700;
}

/* ================== PROJECTS SECTION ================== */
.bg-sand {
    background-color: var(--sand);
}

/* Top image stack now wide */
.project-img-wide {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-img-tall {
    height: 280px;
    /* Portrait height */
    width: 100%;
    /* Maintain column sizing */
    object-fit: cover;
    border-radius: 0.75rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover glow effect */
.hover-glow:hover {
    transform: scale(1.03);
    box-shadow: 0 0 12px rgba(0, 70, 67, 0.4);
    filter: brightness(1.05);
}

/* Media Queries */
@media (max-width: 768px) {
    .project-img-tall {
        height: 240px;
    }
}

@media (max-width: 576px) {
    .project-img-tall {
        height: 200px;
        border-radius: 0.5rem;
    }
}
/* Zoom on top stack images */
.hover-zoom:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

/* Glow on bottom images */
.hover-glow:hover {
    transform: scale(1.03);
    box-shadow: 0 0 10px rgba(0, 70, 67, 0.4);
    filter: brightness(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .project-img-wide {
        height: 130px;
    }

    .project-img-tall {
        height: 180px;
        flex: 1 1 48%;
    }
}

@media (max-width: 480px) {
    .project-img-tall {
        height: 160px;
        flex: 1 1 100%;
    }
}
/* ================== INTEREST SECTION ================== */
#interest h5 {
    font-size: 1.2rem;
    color: var(--cyprus);
}

#interest p {
    font-size: 0.95rem;
    color: #4b5563;
}

.interest-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 70, 67, 0.1);
    animation: fadeInUp 0.6s forwards;
}

/* Staggered animations */
.interest-card:nth-child(1) {
    animation-delay: 0.1s;
}

.interest-card:nth-child(2) {
    animation-delay: 0.2s;
}

.interest-card:nth-child(3) {
    animation-delay: 0.3s;
}

.interest-card:nth-child(4) {
    animation-delay: 0.4s;
}

.interest-card:nth-child(5) {
    animation-delay: 0.5s;
}

.interest-card:nth-child(6) {
    animation-delay: 0.6s;
}
.interest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.text-cyprus {
    color: var(--cyprus);
}
.icon-container {
    width: 60px;
    height: 60px;
    background: rgba(0, 70, 67, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* ================== CONTACT SECTION ================== */
.contact-section {
    background:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('images/contactbg.jpg') center center / cover no-repeat;
    color: white;
    padding: 2rem 1rem 5rem;
        
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
        
    align-items: center;
    text-align: center;
}

.contact-section h2 {
    color: white;
    margin-bottom: 2rem;
    margin-top: 2rem;

    font-size: 2.2rem;
}

.contact-box {
    border-radius: 1rem;
    padding: 2rem 2.5rem;
    color: white;
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 650px;
    width: 100%;
    background: transparent;
    
   
}

.contact-box p,
.contact-box h5,
.contact-box strong,
.contact-box a {
    color: white !important;
}

.contact-box a:hover {
    color: var(--highlight) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-section {
        padding: 2rem 1rem 3rem;
    }

    .contact-box {
        padding: 1.5rem;
        font-size: 1.05rem;
    }
}
/* ================== FOOTER ================== */
footer {
    background-color: var(--cyprus);
    color: white;
    font-family: 'Inter', sans-serif;
    padding: 3rem 0 0;
}

.social-icons a {
    color: var(--sand);
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--highlight);
}

footer a {
    color: var(--sand);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--highlight);
    text-decoration: underline;
}

/* ================== ANIMATIONS ================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}