/* Variables */
:root {
    --card-background:  linear-gradient(145deg, #e6f2ff, #b3d9ff);
/*     --card-background:  linear-gradient(transparent, rgba(0, 0, 0, 0.8)); */  
}



/* Base Styles */

h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-left: 0.5rem;
}

body {
    font-family: Arial, sans-serif;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, rgb(26, 55, 109),rgb(24, 130, 139));

    color: white;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    /* padding: 0rem 0.5rem 0rem 0.5rem; */
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: -0.5rem;
}

nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 0.5rem;
}

nav a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

nav a:hover {
    filter: brightness(180%);
    text-shadow: 0 0 3px rgba(244, 244, 255, 0.5);
    /* background-color: #33305f; */
    /* box-shadow: 0 0 0 2px #ccc; */
}


.hamburger-switcher {
    position: relative;
    display: inline-block;
    margin-left: auto;
    padding-right: 0.5rem;
    z-index: 1000;
}

.theme-menu {
    /* position: relative; */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 4px;
}

.menu-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.menu-label {
    color: white;
    font-size: 0.9rem;
}

.menu-options {
    position: absolute;
    top: 100%;
    right: 0.3rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 120px;
}

.menu-options a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
}

.menu-options a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.theme-menu:hover .menu-options {
    display: flex;
}

.theme-menu:hover .menu-icon {
    transform: rotate(90deg);
}

/* in case of a mobile view */
.hamburger-switcher-phone {
    position: relative;
    display: none;
    margin-left: auto;
    padding-right: 0.5rem;
    z-index: 1000;
}

@media (max-width: 520px) {
    nav {
        display: none;
    }
    .hamburger-switcher-phone {
        display: inline-block;
    }
}


/* Services Page Styles */
.services-list {
    padding: 100px 20px 20px;  /* Add padding to account for the fixed header */
    max-width: 800px;
    margin: 0 auto;
}

.service-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
}

.service-item h3 {
    margin-top: 0;
}

.service-item p {
    margin-bottom: 0;
}



/* General Styles */
/* 
.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-switcher button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
}

.theme-switcher button:hover {
    background: rgba(255, 255, 255, 0.4);
} */

/* Portfolio Page Styles */
.portfolio-list {
    padding: 100px 20px 20px;  /* Add padding to account for the fixed header */
    max-width: 800px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 1rem auto;    /* Center the grid */
    width: 95%;       /* Take full width */
}



.portfolio-item {
    position: relative;
    height: 280px;
    border-radius: 10px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.portfolio-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.portfolio-content p {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.demo-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--accent-color, #007bff);
    color: whitesmoke;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.demo-button:hover {
    background-color: var(--accent-color-hover, #0056b3);
}

.demohl-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--accent-color, #007bff);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: 1px solid transparent;
    border-color: whitesmoke;
    box-shadow: 0 4px 15px rgba(240, 236, 13, 0.3);
}

.demohl-button:hover {
   background-color: var(--accent-color-hover, #0056b3);
}

/* Index styles */

main {
    flex: 1;
    width: 100%;
    position:relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0; 
}

.main-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

.main-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    margin: auto;
}

.main-content h2 {
    font-size: clamp(2rem, 4vw, 3em);
    margin: 0;
}

.main-content p {
    font-size: clamp(1.2rem, 4vw, 1.5em);
}

.main-content h3 {
    font-size: clamp(1.4rem, 2vw, 1.64em);
    /* color: #6f0d00; */
    color: rgb(238, 189, 66);
    /* color: rgb(26, 55, 109); */
    margin: 0;
}



@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
    
    .portfolio-item {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}




/* Technologies Page Styles */

/* .technologies-list {
    padding: 100px 20px 20px;  
    max-width: 800px;
    margin: 0 auto;
} */

.technologies-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.technologies-grid h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.technologies-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1.5rem;
}



.technology-item {
    position: relative;
    background: var(--card-background, #ffffff);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 1px 1px 5px #8cadca, -1px -1px 5px #374647;
    transition: transform 0.3s ease;
}

.technology-item:hover {
    transform: translateY(-5px);
}

.technology-item h3 {
    color: var(--heading-color, #333);
    margin-bottom: 0.5rem;
}

.technology-item p {
    color: var(--text-color, #666);
    font-size: 0.9rem;
    line-height: 1.4;
}

.technology-item i {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: #0066cc;
    opacity: 0.8;
}

.tech-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .technologies-container {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
    }
}

@media (max-width: 768px) {
    .technologies-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .technologies-container {
        grid-template-columns: 1fr;
    }
}




/* General Styles */

/* nav a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
} */
/* 
.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-switcher button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
}

.theme-switcher button:hover {
    background: rgba(255, 255, 255, 0.4);
}
 */
/* Services Page Styles */
.services-intro {
    padding: 100px 20px 20px;  /* Add padding to account for the fixed header */
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.services-intro h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.services-intro p {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8);
}

.services-grid {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    justify-content: center; 
    gap: 20px;
    padding: 20px;
    margin: 0 auto;    
}

.service-card {
    flex: 0 0 250px; 

    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.service-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.service-card h3 {
    font-size: 1.5em;
    margin: 10px 0;
}

.service-card p {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
}


/* Contact Page CSS */

.contact-container {
    display: flex;  /* Changed from grid to flex */
    flex-wrap: wrap;
    max-width: 1200px; 
    margin: 1rem auto;
    padding: 1rem;
    gap: 2rem;
    flex-direction: row;
    align-items: stretch; /* Makes children stretch to match tallest element */
}

.contact-form-section {
    flex: 2;  /* Takes 2/3 of the space */
    min-width: 350px;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box; 
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    background: var(--accent-color);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background: var(--accent-color-hover);
}

.messages {
    position: absolute;
    top: 65%;
    left: 40%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    max-width: 300px;
    margin: auto;
}

.alert {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    animation: fadeOut 5s forwards;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.error-messages {
    margin-top: 0.25rem;
}

.error {
    color: #dc3545;
    font-size: 0.875rem;
}

.contact-info {
    flex: 1;  /* Takes 1/3 of the space */
    min-width: 250px;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.contact-image {
    width: 10rem;
    margin-top: 1.2rem;
    border-radius: 1rem;
}

.info-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    color: var(--accent-color);
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    .contact-form-section,
    .contact-info {
        flex: 1 1 auto;
    }
}


/* Footer */

footer {
/*     position: fixed;
    bottom: 0; */
    /* width: 100%; */
    padding: 0.35rem;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

