*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    font-size: 62.5%; /* 1rem = 10px */
}

body{
    font-family: "Lato", sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #ffffff;
    background: linear-gradient(135deg, #009788 0%, #00796b 50%, #009788 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    position: relative;
}

.main-title{
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 8rem;
    text-shadow: 
    2px 2px 4px rgba(0,0,0,0.3), 
    3px 3px 6px rgba(0,0,0,0.2);
    animation: fadeInDown 1s ease-out;
}

.main-title h1{
    font-size: 7rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #ffffff;
    animation: pulse 2s ease-in-out infinite;
}

.main-title h2{
    font-size: 4rem;
    font-weight: 300;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 1rem;
    animation: fadeIn 1.5s ease-out 0.3s both;
}

.main-title h3.construction-text{
    font-size: 2.5rem;
    font-weight: 300;
    text-transform: lowercase;
    color: #e0f2f1;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    animation: blink 2s ease-in-out infinite;
}

.main-title .subtitle{
    font-size: 2rem;
    color: #e0f2f1;
    font-weight: 300;
    font-style: italic;
    margin-top: 1rem;
    letter-spacing: 2px;
    animation: fadeIn 2s ease-out 0.6s both;
}

.svg-img{
   display: block;
   margin: auto;
}

svg{
    display: block;
    margin: auto;
}

.chess-illustration{
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 20px;
    border: 3px solid #ffffff;
    animation: zoomIn 1s ease-out 0.5s both;
}

#clock{
    animation: clockHand 5s infinite linear;
    
    
    transform-box: fill-box;
    transform-origin: bottom;
}

#leftTree, #righTree{
    animation: tree 2s ease-in-out infinite alternate;
    transform-box: fill-box;
    transform-origin: bottom;
}

#man{
    animation: manBody 1s ease-in-out infinite alternate;
    transform-box: fill-box;
    transform-origin: bottom;
}

#pc-circle{
    fill: #6ace66;
    stroke-width: 4;
    animation: change-light 4s linear infinite alternate;
}

/* Chess Board Animations */
.board-border{
    animation: drawBorder 1s ease-out 0.5s both;
}

.board-square{
    animation: squareFadeIn 0.4s ease-out both, squarePulse 3s ease-in-out infinite;
    transform-origin: center;
}

/* Cascading animation for chess board squares */
#chessboard rect.board-square:nth-child(2) { animation-delay: 0.55s, 2s; }
#chessboard rect.board-square:nth-child(3) { animation-delay: 0.58s, 2.1s; }
#chessboard rect.board-square:nth-child(4) { animation-delay: 0.61s, 2.2s; }
#chessboard rect.board-square:nth-child(5) { animation-delay: 0.64s, 2.3s; }
#chessboard rect.board-square:nth-child(6) { animation-delay: 0.67s, 2.4s; }
#chessboard rect.board-square:nth-child(7) { animation-delay: 0.70s, 2.5s; }
#chessboard rect.board-square:nth-child(8) { animation-delay: 0.73s, 2.6s; }
#chessboard rect.board-square:nth-child(9) { animation-delay: 0.76s, 2.7s; }
#chessboard rect.board-square:nth-child(10) { animation-delay: 0.79s, 2.8s; }
#chessboard rect.board-square:nth-child(11) { animation-delay: 0.82s, 2.9s; }
#chessboard rect.board-square:nth-child(12) { animation-delay: 0.85s, 3s; }
#chessboard rect.board-square:nth-child(13) { animation-delay: 0.88s, 3.1s; }
#chessboard rect.board-square:nth-child(14) { animation-delay: 0.91s, 3.2s; }
#chessboard rect.board-square:nth-child(15) { animation-delay: 0.94s, 3.3s; }
#chessboard rect.board-square:nth-child(16) { animation-delay: 0.97s, 3.4s; }
#chessboard rect.board-square:nth-child(17) { animation-delay: 1.00s, 3.5s; }
#chessboard rect.board-square:nth-child(18) { animation-delay: 1.03s, 3.6s; }
#chessboard rect.board-square:nth-child(19) { animation-delay: 1.06s, 3.7s; }
#chessboard rect.board-square:nth-child(20) { animation-delay: 1.09s, 3.8s; }
#chessboard rect.board-square:nth-child(21) { animation-delay: 1.12s, 3.9s; }
#chessboard rect.board-square:nth-child(22) { animation-delay: 1.15s, 4s; }
#chessboard rect.board-square:nth-child(23) { animation-delay: 1.18s, 4.1s; }
#chessboard rect.board-square:nth-child(24) { animation-delay: 1.21s, 4.2s; }
#chessboard rect.board-square:nth-child(25) { animation-delay: 1.24s, 4.3s; }
#chessboard rect.board-square:nth-child(26) { animation-delay: 1.27s, 4.4s; }
#chessboard rect.board-square:nth-child(27) { animation-delay: 1.30s, 4.5s; }
#chessboard rect.board-square:nth-child(28) { animation-delay: 1.33s, 4.6s; }
#chessboard rect.board-square:nth-child(29) { animation-delay: 1.36s, 4.7s; }
#chessboard rect.board-square:nth-child(30) { animation-delay: 1.39s, 4.8s; }
#chessboard rect.board-square:nth-child(31) { animation-delay: 1.42s, 4.9s; }
#chessboard rect.board-square:nth-child(32) { animation-delay: 1.45s, 5s; }
#chessboard rect.board-square:nth-child(33) { animation-delay: 1.48s, 5.1s; }

/* Chess-specific styling */
.chess-piece{
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    animation: fadeInPieces 0.8s ease-out both;
}

.chess-piece:hover{
    transform: scale(1.2);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    animation: bounce 0.6s ease;
}

/* Stagger animation delays for chess pieces */
#chess-pieces text:nth-child(1) { animation-delay: 1.6s; }
#chess-pieces text:nth-child(2) { animation-delay: 1.65s; }
#chess-pieces text:nth-child(3) { animation-delay: 1.7s; }
#chess-pieces text:nth-child(4) { animation-delay: 1.75s; }
#chess-pieces text:nth-child(5) { animation-delay: 1.8s; }
#chess-pieces text:nth-child(6) { animation-delay: 1.85s; }
#chess-pieces text:nth-child(7) { animation-delay: 1.9s; }
#chess-pieces text:nth-child(8) { animation-delay: 1.95s; }
#chess-pieces text:nth-child(9) { animation-delay: 2s; }
#chess-pieces text:nth-child(10) { animation-delay: 2.05s; }
#chess-pieces text:nth-child(11) { animation-delay: 2.1s; }
#chess-pieces text:nth-child(12) { animation-delay: 2.15s; }
#chess-pieces text:nth-child(13) { animation-delay: 2.2s; }
#chess-pieces text:nth-child(14) { animation-delay: 2.25s; }
#chess-pieces text:nth-child(15) { animation-delay: 2.3s; }
#chess-pieces text:nth-child(16) { animation-delay: 2.35s; }

#board-labels text{
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    animation: fadeIn 0.8s ease-out 2.4s both;
}

.chess-board-container{
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    animation: slideInUp 1s ease-out 0.3s both;
}

.chess-features{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.chess-features .feature-item:nth-child(1) {
    animation: slideInLeft 0.8s ease-out 1s both;
}

.chess-features .feature-item:nth-child(2) {
    animation: slideInRight 0.8s ease-out 1.2s both;
}

.chess-features .feature-item:nth-child(3) {
    animation: slideInLeft 0.8s ease-out 1.4s both;
}

.chess-features .feature-item:nth-child(4) {
    animation: slideInRight 0.8s ease-out 1.6s both;
}

.feature-item{
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-item:hover{
    transform: translateY(-5px);
    background: rgba(255,255,255,0.95);
    border-color: #ffffff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.feature-item:hover .feature-icon{
    color: #009788;
}

.feature-item:hover .feature-text{
    color: #009788;
}

.feature-icon{
    font-size: 3rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.feature-text{
    font-size: 1.6rem;
    color: #ffffff;
    font-weight: 400;
    transition: all 0.3s ease;
}

/* Contact Section */
.contact-section{
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 4rem 3rem;
    margin-bottom: 8rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    animation: zoomIn 1s ease-out 2.5s both;
}

.contact-title{
    font-size: 3.5rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.contact-icon{
    font-size: 4rem;
    animation: bounce 2s ease-in-out infinite;
}

.contact-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.contact-item{
    background: rgba(255,255,255,0.15);
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.contact-item:hover{
    transform: translateY(-10px);
    background: rgba(255,255,255,0.25);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.contact-item-full{
    grid-column: 1 / -1;
}

.contact-item-header{
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item-icon{
    font-size: 2.5rem;
}

.contact-item h4{
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.contact-item p{
    font-size: 1.6rem;
    color: #e0f2f1;
    margin: 0.5rem 0;
    line-height: 1.8;
}

.contact-item a{
    color: #e0f2f1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-item a:hover{
    color: #ffffff;
    transform: translateX(5px);
    text-decoration: underline;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 35px;
    line-height: 35px;
    background: rgba(0,0,0,0.2);
    font-size: 1.3rem;
    border-top: 2px solid rgba(255,255,255,0.3);
    animation: slideInUp 1s ease-out 3s both;
}

.footer span{
    color: #ffffff;
    font-weight: 500;
}

@keyframes clockHand{
    from{
        transform: rotateZ(0deg);
    }
    from{
        transform: rotateZ(-360deg);
    }
}

@keyframes manBody{
    from{
        transform: rotateX(0deg);
    }
    to{
        transform: rotateX(10deg);
    }
}

@keyframes tree{
    from{
        transform: rotateZ(10deg);
    }
    to{
        transform: rotateZ(-20deg);
    }
}

@keyframes change-light {
    0% {
        stroke: #cd61f8;
      }
      25% {
        stroke: #6ace66;
      }
      75% {
        stroke: #2995c0;
      }
      100% {
        stroke: #e92949;
      }
}

/* New Animation Keyframes */

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.5;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInPieces {
    from {
        opacity: 0;
        transform: scale(0) rotate(180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1.2);
    }
    40% {
        transform: translateY(-10px) scale(1.2);
    }
    60% {
        transform: translateY(-5px) scale(1.2);
    }
}

@keyframes drawBorder {
    from {
        stroke-dasharray: 1200;
        stroke-dashoffset: 1200;
        opacity: 0.3;
    }
    to {
        stroke-dasharray: 1200;
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes squareFadeIn {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(90deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes squarePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(0.98);
    }
}

  /* Media Queries */

  @media (min-width: 640px){
    .main-title h1{
        font-size: 5rem;
        text-transform: uppercase;
        font-weight: 700;
    }
    
    .main-title h2{
        font-size: 3rem;
        font-weight: 300;
        text-transform: uppercase;
    }
    
    .main-title h3.construction-text{
        font-size: 2rem;
    }
    
    .main-title .subtitle{
        font-size: 1.8rem;
    }
    
    .chess-features{
        grid-template-columns: 1fr;
    }
    
    .contact-section{
        padding: 3rem 2rem;
    }
    
    .contact-title{
        font-size: 2.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-icon{
        font-size: 3rem;
    }
    
    .contact-grid{
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-item{
        padding: 2rem;
    }
    
    .contact-item h4{
        font-size: 1.8rem;
    }
    
    .contact-item p{
        font-size: 1.4rem;
    }
    }
     
    @media (min-width: 768px){
        .main-title h1{
            font-size: 6rem;
            text-transform: uppercase;
            font-weight: 800;
        }
        
        .main-title h2{
            font-size: 4rem;
            font-weight: 300;
            text-transform: uppercase;
        }
        
        .main-title h3.construction-text{
            font-size: 2.5rem;
        }
        
        .main-title .subtitle{
            font-size: 2rem;
        }
        
        .chess-features{
            grid-template-columns: repeat(2, 1fr);
        }
        
        .contact-title{
            font-size: 3rem;
            flex-direction: row;
        }
        
        .contact-grid{
            grid-template-columns: repeat(2, 1fr);
        }
        
        .contact-item h4{
            font-size: 2rem;
        }
        
        .contact-item p{
            font-size: 1.6rem;
        }
    }
     
    @media (min-width: 1024px){
     
        .main-title h1{
            font-size: 7rem;
            text-transform: uppercase;
            font-weight: 900;
        }
        
        .main-title h2{
            font-size: 5rem;
            font-weight: 300;
            text-transform: uppercase;
        }
        
        .main-title h3.construction-text{
            font-size: 3rem;
        }
        
        .main-title .subtitle{
            font-size: 2.2rem;
        }
        
        .contact-title{
            font-size: 3.5rem;
        }
        
        .contact-section{
            padding: 4rem 3rem;
        }
     
    }
     
    @media (min-width: 1200px){
     
        .main-title h1{
            font-size: 8rem;
            text-transform: uppercase;
            font-weight: 900;
        }
        
        .main-title h2{
            font-size: 5rem;
            font-weight: 300;
            text-transform: uppercase;
        }
        
        .main-title h3.construction-text{
            font-size: 3.5rem;
        }
        
        .main-title .subtitle{
            font-size: 2.5rem;
        }

        .main-title{
            text-align: center;
            margin-top: 4rem;
            margin-bottom: 4rem;
        }
        
     
    }