/* Custom CSS */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Navigation */
.navbar {
    background-color: black!important; /* rgba(44, 62, 80, 0.95) !important; */
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--text-light) !important;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar-brand .brand-logo {
    height: 40px;
    width: auto;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.navbar-brand .brand-text {
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateX(0);
}

/* Logo-only state when scrolled */
.navbar.scrolled .brand-text {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
    width: 0;
    margin: 0;
    overflow: hidden;
}

.navbar.scrolled .brand-logo {
    margin-right: 0;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: red !important;
}

.navbar-toggler {
    border: none;
    color: var(--text-light);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Mobile responsive adjustments for logo */
@media (max-width: 768px) {
    .navbar-brand .brand-logo {
        height: 35px;
        margin-right: 10px;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar.scrolled .brand-logo {
        height: 30px;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../img/HeroImage_m.jpg');
    background-attachment: scroll; 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    color: var(--text-light);
    position: relative;
    z-index: 1;
    padding-top: 350px;
    padding-left: 100px;
}

/* Tablet: 769px to 1024px - 1024×683 */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                    url('../img/HeroImage_t.jpg');
        background-attachment: fixed;
        padding-top: 136px;
        padding-left: 60px;
    }
}

/* Desktop: 1025px and up - 1920×1280 */
@media (min-width: 1025px) {
    .hero {
        background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                    url('../img/HeroImage_d.jpg');
        background-attachment: fixed;
    }
}

.hero-content {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 2s ease forwards;
    animation-delay: 1s;
    text-align: left;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.btn-hero {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Text-only section styling */
.text-only-section {
    min-height: 50vh;
    padding: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black; /*#fb5659;*/
    position: relative;
    z-index: 2;
}

.text-only-content {
    text-align: left;
    padding: 40px 20px;
    background: black; /*#fb5659;*/ /*rgba(255, 255, 255, 0.95);*/
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.text-only-content.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.text-only-content h2 {
    color: white; /*var(--primary-color);*/
    font-size: 2.2rem;
    margin-bottom: 30px;
    font-weight: bold;
}

.text-only-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: white; /*var(--text-dark);*/
    margin-bottom: 20px;
}

.text-only-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .text-only-section {
        min-height: 60vh;
        padding: 60px 0;
    }

    .text-only-content p {
        padding: 20px 0px;
    }

    .text-only-content h2 {
        font-size: 2.0rem;
        text-align: left;
    }

    .text-only-content p {
        font-size: 1.0rem;
        text-align: left;
    }
}

/* Section Styling */
.content-section {
    min-height: 80vh;
    padding: 50px 0;
    position: relative;
    background-color: #fb5659; /* white; */
    z-index: 2;
}

.content-section:nth-child(even) {
    background-color: #fb5659; /*#f8f9fa;*/
}

.section-container {
    position: relative;
    height: 80vh;
    min-height: 600px;
}

/* Default layout: text left, image right */
.section-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 75%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 15px 0 0 15px;
}

/* Section text base styles */
.section-text {
    position: absolute;
    left: 5%;
    top: 50%;
    width: 35%;
    background: black;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    z-index: 10;
    opacity: 0;
    transition: all 1s ease;
}

.about-me-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 75%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 15px 0 0 15px;
    background-image: url('../img/about_me_d.jpg');
}

.about-me-section-text {
    position: absolute;
    left: 5%;
    top: 50%;
    width: 60%;
    background: black;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    z-index: 10;
    opacity: 0;
    transition: all 1s ease;
}

/* Initial state for left-side text (slide in from left) */
.section-text, .about-me-section-text {
    transform: translateY(-50%) translateX(-100px);
}

/* Animation when in view - left side */
.section-text.slide-in, .about-me-section-text.slide-in {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Alternate layout: text right, image left */
.content-section:nth-of-type(even) .section-image {
    left: 0;
    right: auto;
    border-radius: 0 15px 15px 0;
}

/* Right-side text positioning and initial state */
.content-section:nth-of-type(even) .section-text {
    right: 5%;
    left: auto;
    transform: translateY(-50%) translateX(100px);
}

/* Animation when in view - right side */
.content-section:nth-of-type(even) .section-text.slide-in {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.section-text h2, .about-me-section-text h2 {
    color: white; /*var(--primary-color);*/
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.section-text p, .about-me-section-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: white; /*var(--text-dark);*/
}

/* About Section */
.about-section {
    min-height: 80vh;
    padding: 50px 0;
    position: relative;
    background-color: #fb5659; /*white;*/
    z-index: 2;
}

/* Contact Form Styling - Centered Version */
.contact-form-section {
    min-height: auto;
    padding: 80px 0;
    position: relative;
    background-color: #fb5659;
    z-index: 2;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
}

.contact-form-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    z-index: 10;
    display: none !important;
}

.contact-form-container h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 30px;
    font-weight: bold;
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.contact-form .form-control, 
.contact-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus, 
.contact-form .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.contact-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    background-color: black; /*var(--secondary-color);*/
    color: white;
    padding: 12px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background-color: white; 
    color: black; /*var(--secondary-color); */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact-card {
    flex: 1;
    background: black;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.contact-card h3 {
    color: white; /*var(--primary-color);*/
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-card .phone-number {
    color: white; /*var(--secondary-color);*/
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
}

.contact-card .phone-number:hover {
    color: var(--accent-color);
}

/* Contact Cards Container - Missing */
.contact-cards-container {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    max-width: 600px;
    width: 100%;
    transform: translateY(50px);
    transition: all 1s ease;
}

.contact-cards-container.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.contact-cards-container h2 {
    color: black;
    font-weight: 700;
}

/* Email Toggle Button - Missing */
.email-toggle-btn {
    background-color: white!important; /*var(--secondary-color);*/
    color: black!important;
    padding: 12px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.email-toggle-btn:hover {
    background-color: black; /*var(--primary-color);*/
    color: white;
    transform: translateY(-2px);
}

/* Contact Form Show State */
.contact-form-container.show {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
    animation: slideInUp 0.5s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}   

/* Mobile responsive for contact cards */
@media (max-width: 768px) {
    .contact-cards-container {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    .contact-card {
        padding: 30px 25px;
    }

    .contact-card h3 {
        font-size: 1.3rem;
    }
}        

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }

    .section-container {
        height: auto;
        min-height: auto;
    }

    .section-image {
        position: relative !important;
        width: 100% !important;
        height: 300px;
        border-radius: 15px !important;
        margin-bottom: 30px;
        left: auto !important;
        right: auto !important;
        top: auto !important;
    }

    .about-me-image {
        position: relative !important;
        width: 100% !important;
        height: 300px;
        border-radius: 15px !important;
        margin-bottom: 30px;
        left: auto !important;
        right: auto !important;
        top: auto !important; 
        background-image: url('../img/about_me_m.jpg');
    }

    .content-section, .about-section, .portfolio-cards-section {
        padding: 20px;
    }

    .section-text, .about-me-section-text {
        background-color: black !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        margin: 0;
        opacity: 0;
        transition: all 1s ease;
    }

    .section-text.slide-in, .about-me-section-text.slide-in {
        opacity: 1;
        transform: none !important;
    }

    .section-text h2, .about-me-section-text h2 {
        font-size: 1.8rem;
        color: white;
    }

    .section-text p, .about-me-section-text p {
        font-size: 1rem;
        color: white;
    }

    /* Mobile responsive for contact form */
    @media (max-width: 768px) {
        .contact-form-section {
            min-height: auto;
            padding: 60px 20px;
        }

        .contact-form-container {
            padding: 40px 30px;
            margin: 0;
        }

        .contact-form-container h2 {
            font-size: 1.8rem;
        }
    }
}

/* Footer */
.footer {
    background-color: black; /*var(--primary-color);*/
    color: white; /*var(--text-light);*/
    padding: 50px 0 30px;
}

.footer h5 {
    color: white; /*var(--secondary-color); */
    margin-bottom: 20px;
}

.footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: red; /*var(--secondary-color);*/
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
}

/* Portfolio Cards Section */
.portfolio-cards-section {
    padding: 25px 0;
    background-color: #fb5659; /*white;*/
    position: relative;
    z-index: 2;
}

.portfolio-card {
    position: relative;
    height: 400px;
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.portfolio-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Add dark overlay to images */
.portfolio-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: 1;
}

/* Ensure text stays above the overlay */
.portfolio-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px 25px 25px;
    color: white;
    z-index: 2; /* Higher z-index than the image overlay */
}

.portfolio-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: white;
}

.portfolio-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    color: rgba(255,255,255,0.9);
}

@media (max-width: 768px) {
    .portfolio-card {
        height: 350px;
        margin-bottom: 25px;
    }
    
    .portfolio-card h3 {
        font-size: 1.3rem;
    }
    
    .portfolio-card p {
        font-size: 0.9rem;
    }
}
.content-section {
    scroll-margin-top: 76px;
}