/* style.css */
:root {
    --primary-color: #f13e00;
    --secondary-color: #011e3f;
    --white-color: #ffffff;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--white-color);
    overflow-x: hidden;
}

header {
    background-color: var(--secondary-color);
    color: var(--white-color);                  padding: 10px;
    display: flex;                              justify-content: space-between;
    align-items: center;                        position: relative;
    flex-wrap: wrap;
}

.header-left { display: flex;    align-items: center; gap: 1rem; }

header img { height: 50px;}

.menu-icon{width:25px; text-align: center;}
.menu-toggle {
    display: none;              flex-direction: column;
    cursor: pointer;            margin-left: 1rem;
}

.menu-toggle span {
    height: 3px;                  width: 25px;
    background: white;          margin: 4px 0;
    transition: 0.4s;
}

nav {  display: flex;  align-items: center;   margin-top:20px;}  

nav ul {
    list-style: none;           display: flex;
    gap: 1rem;                  margin: 0;
    padding: 0;
}

nav ul li a {
    color: var(--white-color);     text-decoration: none;
    font-weight: bold;             padding: 5px 10px;
    transition: all 0.3s ease;     width: auto;   
}

nav ul li a:hover, nav ul li a:focus {
    background-color: var(--primary-color);
    border-radius: 5px;
}

nav ul li.menu-separator { display: none;    border-top: 1px solid rgba(255, 255, 255, 0.3); }
nav ul li.login-separator { display: block;  height:2px; width:70px;}
  
.border-line {
     background: linear-gradient(90deg, #f13e00 0%, #fd6e36 100%);
     animation: fadeInDown 1.5s ease;       height: 5px;
}

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

.slideshow {
    width: 100%;                        height: 500px;
    position: relative;                 overflow: hidden;
    background-image: url('Resources/Coderstation.png');     /* Replace with your image path */
    background-position: center center;                      /* Horizontally and vertically center */
    background-repeat: no-repeat;                            /* Prevent image repetition */
    background-attachment: fixed;                            /* Optional: keep background fixed on scroll */
}

.slide {
    display: none;                  position: absolute;
    width: 100%;                    height: 100%;
    top: 0;                         left: 0;
    background-image: url('"Resources/Coderstation.png');  
    background-position: center center;       
    background-repeat: no-repeat;    
    animation: fadeIn 2s ease;
}

.slide:first-child { display: block; }

@keyframes fadeIn { from { opacity: 0;  filter: brightness(100%);} to { opacity: 1;  filter: brightness(100%);} }

.tagline{
    position: absolute;         left: 0px;
    right: 0px;                 bottom: 0px;
    padding:10px;               font-weight: bold;
    color:#f16c00;
    animation: slideInUp 1s ease-out forwards;
     background-color: rgba(0, 0, 0, 0.4);
 }
  
 @keyframes slideInUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


.slide img { width: 100%;  height: 500px; object-fit: cover;  filter: brightness(30%); }


.image-caption {
    position: absolute;         left: 20px;
    right: 20px;                top: 30px;
    text-align: justify;        padding:10px;
    transform: scale(0);        transform-origin: center;
    animation: zoomOutCenter 1.5s ease-out forwards;

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;           max-width: 90%;
    margin: auto;               background: transparent;
    color: white;             font-weight: bold;
    text-shadow: 2px 2px 0px rgb(0, 0, 0), 2px -2px 0px rgb(0, 0, 0),  -2px 2px 0px rgb(0, 0, 0), 
			    -2px -2px 0px rgb(0, 0, 0),  2px 0px 0px rgb(0, 0, 0),  0px 2px 0px rgb(0, 0, 0), 
			    -2px 0px 0px rgb(0, 0, 0),  0px -2px 0px rgb(0, 0, 0),  3px 4px 10px rgba(0, 0, 0, 1),
                 4px 0px 7px rgba(0, 0, 0, 1), 3px 4px 14px rgba(0, 0, 0, 1), -10px 3px 25px rgba(0, 0, 0, 1),
                14px -6px 13px rgba(0, 0, 0, 1), -10px 6px 18px rgba(0, 0, 0, 1);
 }

@keyframes zoomOutCenter { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
/* Responsive font sizes */
@media screen and (max-width: 480px) {.image-caption { font-size: 1.0rem; } }
@media screen and (min-width: 768px) and (max-width: 1050px) {
     .image-caption { font-size: 1.5rem; }  
     .menu-icon{display:none;} 
     }
@media screen and (min-width: 1024px) { .image-caption { font-size: 2.0rem;  } }
@media (max-width: 768px) {.image-caption { font-size: 1.0rem; } }
  
.section {
    display: flex;              flex-wrap: wrap;
    gap: 1.5rem;                justify-content: center;
    animation: fadeInUp 1.5s ease;
}

#features {  padding: 3rem 3rem;    background-color: #f8f8f8;}

#Services {  padding: 2rem;  background-color: #ffffff; }

.card {
    width: 250px;               border: 1px solid #ddd;
    border-radius: 15px;        overflow: hidden;
    text-align: center;         background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
 }

.card p {padding-left:8px; padding-right:8px; }
.card img { width: 100%;     height: 150px;     object-fit: cover; }
.card:hover {
    transform: translateY(-10px);    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
 }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

footer {
    background-color: var(--secondary-color);   padding: 1rem;
    color: var(--white-color);                  text-align: center;
 }

@media (max-width: 1050px) {
    nav { width: 100%; margin-top:1px;}
    nav ul {
        flex-direction: column;                  display: none;
        background-color: var(--secondary-color);
        width: 100%;                             padding: 1rem;
     }
    nav ul.show { display: flex;}
    nav ul li.menu-separator  { display: block; }
    nav ul li.login-separator { display: none;}
     
    .menu-toggle { display: flex; }
    nav ul{ gap: 0.2rem;}
    nav ul li { display: flex; width: 100%; margin-top:1px; margin-bottom:1px;  gap: 0.8rem;}
    nav ul li a { display: flex; width: 100%; padding-right:5px;}

    .menu-icon{  top:3px; width:45px; text-align: center; display:block;}
   
}

