/*
  Basic styling for Anthony Rebello's personal site.
*/

/* Global resets and typography */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    color: #001122;
    background-color: #ffffff;
    line-height: 1.6;
}

/* Navigation bar - Updated with professional gradient */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #d4b896 0%, #c4a574 50%, #b8956b 100%);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav .logo {
    display: flex;
    align-items: center;
}

nav .logo img {
    height: 2rem; /* Adjust this to make the logo bigger or smaller */
    width: auto;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 1.5rem;
}

nav a {
    text-decoration: none;
    color: #2c2824;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    position: relative;
}

nav a:hover {
    background-color: rgba(44, 40, 36, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Hero section - Reduced padding and enhanced styling */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 2rem 2rem; /* Reduced from 4rem */
    background: linear-gradient(135deg, #f9f7f4 0%, #f2ede6 100%);
    border-bottom: 1px solid #e6ddc9;
}

.hero .text {
    flex: 1 1 50%;
    padding-right: 2rem;
}

.hero .text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #b8956b, #a08660);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .text h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #7a6e5f;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.hero .image {
    flex: 1 1 50%;
    text-align: center;
}

.hero .image img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    box-shadow: 0 8px 25px rgba(184, 149, 107, 0.25);
    border: 3px solid rgba(184, 149, 107, 0.2);
}

/* Section styles - Reduced top padding */
.section {
    padding: 2rem 2rem; /* Reduced from 3rem */
}

.section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #8b7355;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #b8956b, #d4b896);
    border-radius: 2px;
}

.section h3 {
    color: #a08660;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.section p {
    font-size: 1.125rem;
    max-width: 800px;
    margin-bottom: 1rem;
    color: #444444;
}

/* Call-to-action button - Updated colors */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #b8956b, #d4b896);
    color: #2c2824;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(184, 149, 107, 0.4);
}

.button:hover {
    background: linear-gradient(135deg, #a08660, #b8956b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 149, 107, 0.5);
}

/* Research and projects lists */
ul.posters,
ul.projects {
    list-style: disc inside;
    padding-left: 1rem;
    max-width: 800px;
    line-height: 1.5;
}

ul.posters li,
ul.projects li {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

/* Photo grid for photography page */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 2rem;
}

.photo-grid img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

/* Contact form - Reduced top padding */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem 2rem; /* Reduced padding */
}

.contact-container form {
    display: flex;
    flex-direction: column;
}

.contact-container label {
    margin-top: 1rem;
    font-weight: 600;
    font-size: 1rem;
}

.contact-container input,
.contact-container textarea {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #cccccc;
    border-radius: 4px;
    margin-top: 0.25rem;
}

.contact-container textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-container button {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #b8956b, #d4b896);
    color: #2c2824;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(184, 149, 107, 0.4);
}

.contact-container button:hover {
    background: linear-gradient(135deg, #a08660, #b8956b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 149, 107, 0.5);
}

.image img {
    max-width: 250px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Updated footer styles - slightly larger */
.footer {
    position: relative;
    overflow: hidden;
    background-color: #001122;
    color: #ffffff;
    padding: 1.5rem 2rem; /* Increased from 1rem */
    font-size: 1rem; /* Increased from 0.875rem */
}

.footer-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float-up linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(100px) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-20px) scale(1);
        opacity: 0;
    }
}

/* Ensure footer links are also slightly larger */
.footer-content a {
    color: #ffffff;
    text-decoration: none;
    margin-right: 1.25rem; /* Increased from 1rem */
    position: relative;
    z-index: 3;
    font-size: 1rem; /* Ensure consistent size */
}

.footer-content a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem; /* Further reduced on mobile */
    }
    
    .hero .text {
        padding-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .hero .text h1 {
        font-size: 2.5rem;
    }
    
    nav {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav ul li {
        margin-left: 0;
        margin-right: 1rem;
    }
}
