/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background-color: #020113;
    overflow: hidden; /* Prevent initial double scrollbar */
}

body {
    background: linear-gradient(to bottom, #020113, #020113, #060229);
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    line-height: 1.6;
    display: flex;
    justify-content: center;
}

.layout {
    display: flex;
    width: 100%;
    max-width: 1600px;
    height: 100vh;
    gap: 80px;
    padding: 0 60px;
}

/* Left Column */
.left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    position: sticky;
    top: 0;
}

/* Right Column */
.right-column {
    flex: 2;
    padding: 30px;
    height: 100vh;
    overflow-y: auto; /* Only this element should scroll */
}

/* Resume Button */
.cta-button {
    margin-top: 20px;
}

/* Section Divider */
.section-divider {
    width: 90%;
    max-width: 1200px;
    margin: 25px auto;
    border: none;
    border-top: 1px dotted rgba(255, 255, 255, 0.12);
}

.button {
    display: inline-block;
    background-color: #7009e6;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: #ad8ed1;
}

.name-logo {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 10px;
    opacity: 0.8;
}

.purple-dot {
    color: #8A2BE2;
    font-size: 3rem;
    font-weight: 700;
}

/* Navigation Styling */
nav ul {
    list-style: none;
}

nav ul li {
    margin-bottom: 7px;
}

nav ul li a {
    text-decoration: none;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ad8ed1;
    font-weight: bold;
}

nav ul li a.active {
    color: #7009e6;
    font-weight: bold;
}

/* Content Styles */
h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

h2 {
    font-size: 1.1rem;
    color: #7009e6;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    margin-top: 15px;
    letter-spacing: 0.5px;
}

p {
    margin-bottom: 5px;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.9);
}

.unstyled-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.read-more {
    color: #7009e6;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #ad8ed1;
}

.read-more h2 {
    transition: color 0.3s ease;
}

.read-more:hover h2 {
    color: #ad8ed1;
}

/* Responsive Layout */
@media (max-width: 768px) {
    body {
        overflow: auto; /* Allow scrolling on mobile */
    }
    
    .layout {
        flex-direction: column;
        align-items: center;
        text-align: left;
        padding: 0 20px;
        gap: 20px;
        height: auto;
        overflow: visible;
    }

    .left-column {
        width: 100%;
        height: auto;
        position: static;
        text-align: center;
        padding: 20px;
    }

    .right-column {
        width: 100%;
        max-width: 100%;
        padding: 0 10px 20px;
        height: auto;
        overflow-y: visible;
    }

    .right-column p {
        font-size: 1rem;
    }

    .cta-button {
        text-align: center;
        margin-top: 20px;
    }
    
    nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
 
 
    }
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Auto-adjusting columns */
    grid-auto-rows: 250px; /* Consistent row height */
    gap: 20px; /* Even spacing between images */
    margin-top: 30px;
    align-items: center; /* Ensures images align properly */
    justify-content: center; /* Centers the grid */
}

.image-grid img {
    width: 100%; /* Makes sure all images fill their grid cell */
    height: 100%; /* Ensures they take up equal space */
    object-fit: contain; /* Ensures images are fully visible without being cropped */
    border-radius: 8px; /* Keeps soft edges */
}