/* Importing Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* General Styles */
body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f4f8;
    color: #1a365d;
    line-height: 1.6;
    padding-top: 20px; /* Reduce from 40px to 20px */
}

/* Header */
header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8em;
    text-align: right;
    font-weight: 600;
    letter-spacing: 1px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    transform: translateY(-100%);
}

/* Add a class for when we want to show the header */
header.show {
    transform: translateY(0);
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 1.8em; /* Slightly increase gap */
    padding-right: 2em; /* Reduce right padding */
}

header nav li {
    display: inline-block;
}

header nav a {
    color: #1a365d;  /* Darker blue that matches your theme */
    text-decoration: none;
    padding: 0.7em 1.2em;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;  /* Increased from 500 to 600 for bolder text */
}

/* Sections */
section {
    padding: 4em 10%;
    text-align: center;
    max-width: 900px;
    margin: auto;
}

/* Projects Section */
.project-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.project {
    background: rgba(144, 205, 244, 0.4);
    backdrop-filter: blur(8px);
    color: #1a365d;
    padding: 1.5em;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.project a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 14px;
    background: #4299e1;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.3s;
}

.project a:hover {
    background: #2c5282;
}

/* Contact Section */
#contact a {
    color: #4299e1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

#contact a:hover {
    color: #2c5282;
}

/* Buttons */

.button:hover {
    background: #2c5282;
}

/* Footer */
footer {
    background: #2c5282;
    color: white;
    text-align: center;
    padding: 1.5em;
    margin-top: 40px;
    font-size: 14px;
    letter-spacing: 0.5px;
}
/* Hero Section */
#hero {
    background-color: transparent;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px; /* Reduce gap */
    position: relative;
    margin-top: -20px; /* Match new body padding */
    padding-top: 20px; /* Match new body padding */
}

.hero-content {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0;
    flex-wrap: nowrap;
    padding: 0;
    gap: 20px; /* Reduce gap between image and text */
}

.hero-content img {
    width: 40vw;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, black 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 70% at center, black 40%, transparent 100%);
}

.hero-text {
    flex: 1;  /* Allow text to take remaining space */
    padding-right: 20px;  /* Add some padding on the right */
}

.hero-text h2 {
    font-size: 28px;
    color: #1a365d;
}

.hero-text p {
    font-size: 18px;
    color: #1a365d;
    line-height: 1.6;
}

.button {
    display: inline-block;
    background: #4299e1;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.button:hover {
    background: #2c5282;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    header {
        display: none;  /* Hide the entire header on mobile */
    }
    
    #hero {
        padding-top: 20px;  /* Adjust top padding since there's no header */
    }
    
    .hero-content {
        flex-direction: column;  /* Stack items vertically */
        text-align: center;
        gap: 30px;  /* Reduce gap on mobile */
    }

    .hero-content img {
        width: 80%;  /* Make image smaller on mobile */
        max-width: 300px;  /* Limit maximum size */
        margin: 0 auto;  /* Center the image */
    }

    .hero-text {
        padding: 0 15px;  /* Add some horizontal padding */
    }

    .hero-text h2 {
        font-size: 24px;  /* Smaller font size for mobile */
        line-height: 1.4;  /* Better line height for readability */
        margin-bottom: 15px;
    }

    .hero-text p {
        font-size: 16px;  /* Adjust paragraph font size */
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .button {
        display: inline-block;
        width: auto;  /* Allow button to size to content */
        margin: 10px auto;  /* Center the button */
    }
}

html {
    scroll-behavior: smooth;  /* Enable smooth scrolling */
}

.scroll-down {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(66, 153, 225, 0.8);
    backdrop-filter: blur(5px);
    width: 40px;  /* Set fixed width */
    height: 40px; /* Set fixed height */
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.2);
    transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    opacity: 1;
    display: flex;          /* Center the icon */
    align-items: center;    /* Vertically center */
    justify-content: center; /* Horizontally center */
}

.scroll-down:hover {
    background: rgba(44, 82, 130, 0.8);
    transform: translateY(-3px);
}

/* When rotated, adjust hover behavior */
.scroll-down[style*="rotate(180deg)"]:hover {
    transform: translateY(-3px) rotate(180deg);
}

.scroll-down svg {
    width: 20px;  /* Slightly smaller icon */
    height: 20px;
    fill: white;
}

/* Contact Form */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 2em;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8em;
    border: 1px solid rgba(44, 82, 130, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
}

.contact-form button {
    border: none;
    cursor: pointer;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .contact-container {
        padding: 0 1em;
    }
    
    .contact-form button {
        align-self: stretch;
    }
}

.contact-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}

.contact-info i {
    font-size: 1.2em;
    color: #4299e1;
    transition: transform 0.3s ease;
}

.contact-info p:hover i {
    transform: scale(1.1);
}

.button-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;  /* Ensure full width */
    margin-top: 15px;  /* Move margin to container */
}

.button-container .button {
    width: auto;  /* Override any width constraints */
    margin-top: 0;  /* Override any margin from .button class */
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.about-text ul {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.about-text li {
    margin: 15px 0;
    padding-left: 25px;
    position: relative;
}

.about-text li:before {
    content: "•";
    color: #4299e1;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.about-text strong {
    color: #2c5282;
}

.about-text p {
    margin: 20px 0;
    line-height: 1.8;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a365d;  /* Match your theme's dark blue */
    padding: 0 1rem;
}
