/* Reset and Global Styles */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    font-family: 'Roboto Slab', serif;
    background-color: #ffffff;
    color: #333;
}

/* Landing Page Styling */
.landing-page {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
    background-color: #f0f0f0;
}

.landing-page h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 0;
}

.landing-page .subtitle {
    font-size: 1rem;
    font-weight: 400;
    margin: 10px 0 20px;
    opacity: 0.9;
}

/* Header Styling */
header h1, header h2 {
    text-align: center;
    margin: 0 0 16px;
    color: #333;
}

header h1 {
    font-size: 2.5rem;
    margin-top: 10px;
}

header h2 {
    font-size: 1.25rem;
    margin-bottom: 32px;
}

/* Section Styling */
section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Image Container for Each Section */
.image-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    text-align: center;
    overflow: hidden;
    border-radius: 1px;
}

.image-container img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.image-container:hover img {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Text Overlay */
.image-container p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    border-radius: 8px;
}

/* Contact Section Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    width: 90%;
    padding: 20px;
    margin: 0 auto;
    box-sizing: border-box;
}

.contact-box {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    text-align: center;
    height: 250px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
/* Profile Photo Styling */
.intro-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.intro-text {
    text-align: left;
    max-width: 60%;
}

.profile-photo {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 10px; 
    transform: translateX(-10px);
}

/* Button container positioning */
.button-container {
    position: absolute;
    bottom: 20px;
    left: 20px;   
    display: flex;
    gap: 10px; 
}

.button {
    background-image: url('/img/gmail_logo.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 25px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}

.button.email {
    background-image: url('/img/gmail_logo.png');
}

.button.linkedin {
    background-image: url('/img/linkedin-logo.png');
}

.button:hover {
    animation: shake 1s;
}

@keyframes shake {
    0% { transform: translate(10px, 10px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* Scroll Down Arrow */
.scroll-down-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg); 
    width: 24px;
    height: 24px;
    border-left: 3px solid #333;
    border-bottom: 3px solid #333;
    opacity: 0.8;
    cursor: pointer;
    animation: bounce 1.5s infinite;
    transition: opacity 0.3s;
}

.scroll-down-arrow:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0) rotate(-45deg); /* Rotate adjusted for upward arrow */
    }
    50% {
        transform: translateX(-50%) translateY(10px) rotate(-45deg); /* Rotate adjusted for upward arrow */
    }
}
@media (max-width: 768px) {
    .image-container {
        width: 95%;
    }

    header h1 {
        font-size: 2rem;
    }

    header h2 {
        font-size: 1rem;
    }

    .landing-page h1 {
        font-size: 2rem; /* Reduced size for better fit */
    }

    .landing-page .subtitle {
        font-size: 0.9rem;
    }

    .intro-container {
        flex-direction: column; /* Stack text and image vertically */
        align-items: center;
        text-align: center;
    }

    .intro-text {
        max-width: 100%; /* Allow text to span full width */
        margin-bottom: 20px;
    }

    .profile-photo {
        width: 200px; /* Smaller profile photo */
        height: 200px;
        margin: 0; /* Center the image */
    }

    .scroll-button {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .button-container {
        bottom: 10px; /* Adjust for smaller screen real estate */
        left: 12%;
        transform: translateX(-50%);
    }

    .button {
        padding: 15px 15px; /* Reduced padding for buttons */
        font-size: 12px;    /* Smaller font size for buttons */
    }
}
