/* Modern CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

BODY {
    font-family: 'Segoe UI', Geneva, Arial, Helvetica, sans-serif;
    font-size: 14px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8f5e9 100%);
    min-height: 100vh;
    position: relative;
}

/* Lime Color Palette */
:root {
    --lime-green: #8BC34A;
    --lime-dark: #558B2F;
    --lime-light: #DCEDC8;
    --lime-accent: #CDDC39;
    --box-border: #7CB342;
    --text-dark: #33691E;
    --white: #FFFFFF;
    --gray-light: #F1F8E9;
}

/* Main Content Box */
.grayed_box {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 14px;
    background-color: var(--white);
    background-image: url(images/lime-pattern.png);
    background-position: center center;
    background-repeat: repeat;
    background-size: auto;
    min-height: 400px;
    width: 500px;
    border: 2px solid var(--box-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(139, 195, 74, 0.2);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 30px;
    z-index: 10;
}

.content-wrapper {
    text-align: center;
    position: relative;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 6px;
}

.content-wrapper h1 {
    color: var(--lime-dark);
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.tagline {
    color: var(--lime-dark);
    font-size: 18px;
    font-weight: 500;
    margin: 15px 0;
}

.info-text {
    color: var(--text-dark);
    font-size: 14px;
    font-style: italic;
}

/* Header Box */
.filebox {
    height: 32px;
    width: 180px;
    border: 2px solid var(--box-border);
    border-radius: 6px;
    position: absolute;
    background: linear-gradient(135deg, var(--lime-light) 0%, var(--white) 100%);
    left: 50%;
    top: 80px;
    transform: translateX(-50%);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(139, 195, 74, 0.15);
    z-index: 5;
}

.box-title {
    font-weight: bold;
    color: var(--lime-dark);
    letter-spacing: 1px;
}

/* Footer Info Box */
.info-box {
    height: 32px;
    width: 280px;
    border: 2px solid var(--box-border);
    border-radius: 6px;
    position: absolute;
    background: linear-gradient(135deg, var(--white) 0%, var(--lime-light) 100%);
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(139, 195, 74, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 15;
}

.info-box:hover {
    box-shadow: 0 6px 20px rgba(139, 195, 74, 0.3);
    transform: translateX(-50%) translateY(-5px);
}

.box-content {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 13px;
}

/* Static Line - Left of Center Box */
.filler2 {
    height: 400px;
    width: 4px;
    border: 2px solid var(--box-border);
    border-radius: 4px;
    position: absolute;
    background: linear-gradient(180deg, var(--lime-light) 0%, var(--lime-green) 100%);
    left: calc(50% - 259px); 
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 6px rgba(139, 195, 74, 0.2);
    z-index: 8;
}

/* Right Sidebar Box */
.right-sidebar-box {
    height: 400px;
    width: 130px;
    border: 2px solid var(--box-border);
    border-radius: 8px;
    position: absolute;
    background-image: url(images/lime-photo.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    left: calc(50% + 254px); 
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 4px 12px rgba(139, 195, 74, 0.2);
    overflow: hidden;
    z-index: 10;
}

/* Corner Boxes - 9px spacing (reduced from 10px) aligned with main box top */
.corner-box-1, .corner-box-2, .corner-box-3, .corner-box-4, .corner-box-5 {
    width: 50px;
    height: 50px;
    border: 2px solid var(--lime-dark); 
    border-radius: 6px;
    position: absolute;
    background-color: var(--white);
    left: calc(50% - 315px); 
    box-shadow: 0 3px 8px rgba(85, 139, 47, 0.25);
    z-index: 9;
    transition: transform 0.2s ease;
}

.corner-box-1:hover, .corner-box-2:hover, .corner-box-3:hover, .corner-box-4:hover, .corner-box-5:hover {
    transform: scale(1.05);
}

/* Clickable corner box link styling */
.corner-box-link {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.corner-box-link:hover {
    transform: scale(1.1);
    background-color: var(--lime-light);
    box-shadow: 0 4px 12px rgba(85, 139, 47, 0.35);
    cursor: pointer;
}

/* Vertical positioning - 9px gap (50px box + 9px gap = 59px steps) - aligned with main box top */
.corner-box-2 { top: calc(50% - 200px);  /* Top box - aligned with main box top */
    background-image: url('images/Limes_floating.png');
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
}
.corner-box-3 { top: calc(50% - 141px); /* 59px below box 2 */
    background-image: url('images/lime-photo.png');
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
}
.corner-box-1 { top: calc(50% - 82px);  /* 59px below box 3 */
    background-image: url('images/Sidelime.png'); 
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
}
.corner-box-4 { top: calc(50% - 23px);  /* 59px below box 1 */
    background-image: url('images/Rob.png'); 
    background-size: cover;
    background-position: center;
}
.corner-box-5 { top: calc(50% + 36px);  /* 59px below box 4 */
    background-image: url('images/motherboard.png'); 
    background-size: cover;
    background-position: center;
}
/* Decorative Box Cluster - Right Bottom */
/* Large box - anchor of the cluster */
.filler1 {
    height: 60px;
    width: 60px;
    border: 2px solid var(--box-border);
    border-radius: 4px;
    position: absolute;
    background: linear-gradient(135deg, var(--lime-accent) 0%, var(--lime-green) 100%);
    right: 120px;
    bottom: 120px;
    box-shadow: 0 2px 6px rgba(139, 195, 74, 0.3);
    animation: float 12s ease-in-out infinite;
    z-index: 5;
}

/* Medium circle - top right of cluster */
.filler3 {
    height: 40px;
    width: 40px;
    border: 2px solid var(--box-border);
    border-radius: 50%;
    position: absolute;
    background: radial-gradient(circle, var(--lime-accent) 0%, var(--lime-green) 100%);
    right: 100px;
    bottom: 190px;
    box-shadow: 0 2px 6px rgba(139, 195, 74, 0.3);
    animation: float 5s ease-in-out infinite;
    animation-delay: 0.5s;
    z-index: 5;
}

/* Small circle - far right */
.filler4 {
    height: 25px;
    width: 25px;
    border: 2px solid var(--box-border);
    border-radius: 50%;
    position: absolute;
    background: var(--lime-accent);
    right: 80px;
    bottom: 150px;
    box-shadow: 0 2px 4px rgba(139, 195, 74, 0.3);
    animation: float 4s ease-in-out infinite;
    animation-delay: 1s;
    z-index: 5;
}

/* Tiny circle - bottom cluster */
.filler5 {
    height: 15px;
    width: 15px;
    border: 2px solid var(--box-border);
    border-radius: 50%;
    position: absolute;
    background: var(--lime-green);
    right: 190px;
    bottom: 110px;
    box-shadow: 0 2px 4px rgba(139, 195, 74, 0.3);
    animation: float 3.5s ease-in-out infinite;
    animation-delay: 1.5s;
    z-index: 5;
}

/* Medium box - left of main cluster */
.filler6 {
    height: 45px;
    width: 45px;
    border: 2px solid var(--box-border);
    border-radius: 4px;
    position: absolute;
    background: linear-gradient(45deg, var(--lime-light) 0%, var(--lime-accent) 100%);
    right: 200px;
    bottom: 140px;
    box-shadow: 0 2px 6px rgba(139, 195, 74, 0.3);
    animation: float 11s ease-in-out infinite;
    animation-delay: 2s;
    z-index: 5;
}

/* Small square - top of cluster */
.filler7 {
    height: 30px;
    width: 30px;
    border: 2px solid var(--box-border);
    border-radius: 4px;
    position: absolute;
    background: linear-gradient(135deg, var(--lime-green) 0%, var(--lime-dark) 100%);
    right: 150px;
    bottom: 200px;
    box-shadow: 0 2px 6px rgba(139, 195, 74, 0.3);
    animation: float 4.5s ease-in-out infinite;
    animation-delay: 2.5s;
    z-index: 5;
}

/* Tiny circle - accent */
.filler8 {
    height: 18px;
    width: 18px;
    border: 2px solid var(--box-border);
    border-radius: 50%;
    position: absolute;
    background: radial-gradient(circle, var(--lime-accent) 0%, var(--lime-dark) 100%);
    right: 140px;
    bottom: 100px;
    box-shadow: 0 2px 4px rgba(139, 195, 74, 0.3);
    animation: float 4.8s ease-in-out infinite;
    animation-delay: 3s;
    z-index: 5;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .grayed_box {
        width: 90%;
        min-width: 300px;
        padding: 20px;
        margin-top: 100px; /* Add space at top for header */
    }
    
    .filebox {
        top: 20px; /* Move header higher */
        width: 160px;
        font-size: 11px;
        z-index: 20; /* Ensure it's above everything */
        padding: 6px 10px;
    }
    
    .info-box {
        bottom: 40px;
        width: 90%;
        max-width: 280px;
    }
    
    .content-wrapper {
        padding: 20px;
    }
    
    .content-wrapper h1 {
        font-size: 24px;
    }
    
    /* Hide static line on mobile */
    .filler2 {
        display: none;
    }
    
    /* Hide right sidebar on mobile */
    .right-sidebar-box {
        display: none;
    }
    
    /* Reposition corner boxes - stack them ABOVE the main box */
    .corner-box-1, .corner-box-2, .corner-box-3, .corner-box-4, .corner-box-5 {
        height: 45px;
        width: 45px;
        left: auto; /* Reset left positioning */
        top: auto; /* Reset top positioning */
    }
    
    /* Arrange in two rows at the TOP of the page */
    .corner-box-2 { 
        left: 20px; 
        top: 80px; 
    }
    .corner-box-3 { 
        left: 75px; 
        top: 80px; 
    }
    .corner-box-1 { 
        left: 130px; 
        top: 80px; 
    }
    .corner-box-4 { 
        left: 20px; 
        top: 135px; 
    }
    .corner-box-5 { 
        left: 75px; 
        top: 135px; 
    }
    
    /* Adjust cluster positions for mobile */
    .filler1 {
        right: 20px;
        bottom: 80px;
        height: 45px;
        width: 45px;
    }
    
    .filler3 {
        right: 15px;
        bottom: 135px;
        height: 30px;
        width: 30px;
    }
    
    .filler6 {
        right: 75px;
        bottom: 90px;
        height: 35px;
        width: 35px;
    }
    
    .filler7 {
        right: 50px;
        bottom: 140px;
        height: 25px;
        width: 25px;
    }
}

@media (max-width: 480px) {
    /* Smaller screens - even more compact */
    .grayed_box {
        margin-top: 80px;
    }
    
    .filebox {
        top: 15px;
        width: 140px;
        font-size: 10px;
    }
    
    /* Hide smallest filler boxes on very small screens */
    .filler4, .filler5, .filler8 {
        display: none;
    }
    
    /* Keep only 3 corner boxes on very small screens */
    .corner-box-4, .corner-box-5 {
        display: none;
    }
    
    /* Adjust remaining corner boxes */
    .corner-box-2 { 
        left: 15px; 
        top: 70px;
        width: 40px;
        height: 40px;
    }
    .corner-box-3 { 
        left: 65px; 
        top: 70px;
        width: 40px;
        height: 40px;
    }
    .corner-box-1 { 
        left: 115px; 
        top: 70px;
        width: 40px;
        height: 40px;
    }
}
