/* ==========================================
   1. GLOBAL RESET & BODY
   ========================================== */
* { box-sizing: border-box; }

body {
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   margin: 0;
   display: flex;
   line-height: 1.6;
   color: #333;
   background-color: #f1d1d1 !important;
}

/* ==========================================
   2. FIXED SIDEBAR
   ========================================== */
header {
    width: 300px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    color: white;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
    box-sizing: border-box;
}

.profile-photo {
    max-width: 100%;
    width: 150px;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.2);
    margin-bottom: 20px;
    object-fit: cover;
    transition: width 0.3s ease;
}

header a.email-sidebar {
    color: #f1d1d1 !important; /* Forces the text to be the pink color */
}

header a.email-sidebar:hover {
    color: white !important;
    text-decoration: underline;
}

header h1 { font-size: 1.4rem; margin: 10px 0; color: #fff; }

nav { margin-top: 20px; width: 100%; }
nav a {
    color: #bdc3c7;
    text-decoration: none;
    display: block;
    padding: 10px;
    transition: 0.3s;
    border-radius: 5px;
}
nav a:hover {
    background: rgba(255,255,255,0.1);
    color: #3498db;
}

/* ==========================================
   3. MAIN CONTENT AREA
   ========================================== */
main {
    margin-left: 300px;
    padding: 40px 60px;
    width: calc(100% - 300px);
}

.simple-banner {
    width: 100%;
    padding: 60px 20px;
    background-color: #d1b4b4; 
    border-radius: 15px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}
.banner-text h1 {
    color: #363434 !important;
    font-size: 2.2rem !important;
    margin-bottom: 10px;
    border: none !important; /* Removes your global blue underline */
    letter-spacing: 1px;
}
.banner-text p {
    color: #bdc3c7;
    font-size: 1.1rem;
    margin: 0;
}
.banner-text {
    opacity: 0; /* Starts invisible */
    animation: slideUpFade 1.2s ease-out forwards; 
    animation-delay: 0.3s; /* Small pause before it starts */
}


section { margin-bottom: 50px; max-width: 900px; }

h2 { 
    border-bottom: 2px solid #3498db; 
    padding-bottom: 10px; 
    color: #2c3e50; 
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

/* List Styling */
.custom-list, .project-list {
    list-style: none;
    padding-left: 0;
}

.custom-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 20px;
}

.custom-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background-color: #3498db;
    border-radius: 2px;
}

/* Links */
a { text-decoration: none; transition: color 0.3s ease; }
li a { text-decoration: none !important; }
a:hover { text-decoration: underline; color: #3498db; }

/* ==========================================
   4. COLLAGE SECTION (FIXED 2x3 GRID)
   ========================================== */
.animated-collage {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* 3 columns */
    gap: 15px !important;
    max-width: 900px;
    margin: 30px 0;
    animation: fadeInUp 1s ease-out;
}

.collage-item {
   width: 100%;
   height: 250px;
   overflow: hidden;
   border-radius: 12px;
   position: relative;
   transition: all 0.4s ease;
}

.collage-item img {
    width: 100% !important;
    aspect-ratio: 1/1 !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.5s ease, filter 0.5s ease;
    border: 2px solid transparent;
}

/* ==========================================
   5. ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
   from { opacity: 0; transform: translateY(20px); }
   to { opacity: 1; transform: translateY(0); }
}

.animated-collage:hover .collage-item img {
    filter: grayscale(50%) brightness(70%);
}

.animated-collage .collage-item:hover img {
    filter: grayscale(0%) brightness(100%);
    transform: scale(1.1);
    border-color: #3498db;
}

.animated-collage .collage-item:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 2;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px); /* Starts lower down */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Ends in natural position */
    }
}

/* ==========================================
   6. RESPONSIVE (MOBILE)
   ========================================== */
@media (max-width: 900px) {
    .animated-collage { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    body { flex-direction: column; }
    header { 
        position: relative; 
        width: 100%; 
        height: auto; 
        padding: 20px;
    }
    main { 
        margin-left: 0; 
        width: 100%; 
        padding: 20px; 
    }

@media (max-width: 600px) {
    .animated-collage { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .simple-banner {
        padding: 40px 15px;
    }
    .banner-text h1 {
        font-size: 1.6rem !important;
    }
}
