* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease-in-out,
        color 0.3s ease-in-out,
        border-color 0.3s ease-in-out;
}

body {
    font-family: 'Optima', serif;
    background: var(--bg-img);
    min-height: 100vh;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 1.15rem;
    animation: ease-in;
}


/* Dark mode styles */
:root {
    --primary-color: rgb(119, 160, 237);
    --secondary-color: #e6e6f4;
    --text-color: #414757;
    --bg-color: #25272c;
    --card-bg: linear-gradient(45deg, #d3d3e9, #bae1ff);
    --card-bg2: linear-gradient(45deg, #9b9be6, #94cefa);;
    --bg-img: linear-gradient(135deg, #f4f5ff 0%, #e8eef5 100%);
    transition: background-color 0.3s ease-in-out,
        color 0.3s ease-in-out,
        border-color 0.3s ease-in-out;
}

.dark-mode {
    --primary-color: rgb(138, 171, 232);
    --text-color: #cbccd2;
    --secondary-color: #0f1316;
    --bg-color: #22223B;
    --card-bg: linear-gradient(45deg, #28283f, #2f5471);
    --bg-img: linear-gradient(135deg, #27272f 0%, #1e222e 100%);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 20px 0;
    position: relative;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Dark mode toggle */
.theme-toggle {
    background: var(--primary-color);
    border: 1px solid #ccc;
    border-radius: 50%;
    color: #fff;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    margin-inline: 15px;
}

.theme-toggle:hover {
    background: #333;
    color: white;
    border-color: #333;
}

body.dark-mode .theme-toggle {
    border-color: #555;
    color: #b0b0b0;
}

body.dark-mode .theme-toggle:hover {
    background: #fff;
    color: #333;
    border-color: #fff;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    background: transparent;
    border: 1px var(--text-color);
    font-size: 24px;
    cursor: pointer;
    color: var(--bg-color);
}

body.dark-mode .mobile-menu {
    color: var(--text-color);
}

.nav-actions {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 30px;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
    padding: 5px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

svg{
    margin: 5px;
    width: 40px;
    height: 40px;
    align-self: center;
}

/* Arrow button positioned in bottom left corner */
.arrow-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary-color);
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 1;
  background: transparent;
}

.arrow-button:hover {
  transform: translateY(-2px);
}

.arrow-button svg {
  margin: 0px;
  width: 50px;
  height: 50px;
  fill: var(--primary-color);
  transition: transform 0.3s ease;
}



.cta-btn {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 15px 30px;
    border-radius: 30px;
    border: solid 2px var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-btn:hover {
    background: var(--card-bg2);
    color: var(--text-color);
}


/* Footer */
footer {
    margin-top: 50px;
    padding: 40px 0 40px;
    background: var(--secondary-color);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    text-align: start;
    gap: 30px;
    margin: 20px;
}

.footer-brand {
    grid-column: span 3;
}

.footer-brand h3 {
    font-size: 28px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 300px;
}


.footer-section h4 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}


.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 30px;
    display: flex;
    flex-direction: row-reverse;
    color: #666;
    font-size: 1rem;
}



/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-img);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        border-radius: 20px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    body.dark-mode .nav-links {
        background: var(--bg-color);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 5px 0;
    }

    .mobile-menu {
        display: block;
    }


    .arrow-button {
        opacity: 0.7;
        width: 40px;
        height: 40px;
        right: 12%;
    }
    
    .arrow-button svg {
        width: 40px;
        height: 40px;
    }
    
    /* Optional: Make it more transparent when not being interacted with */
    .arrow-button:not(:active) {
        opacity: 0.5;
    }
    
    /* Full opacity when touched/active */
    .arrow-button:active {
        opacity: 1;
    }

    .footer-content {
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .social-links {
        justify-content: center;
    }

    .container {
        padding: 0 15px;
    }

    header {
        padding: 15px 0;
    }

    footer {
        margin-top: 60px;
        padding: 40px 0 30px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}
