/* style.css */

@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap");

:root {
    --primary-color: #39FF14;
    --background-color: #0a0a14;
    --text-color: #f0f0f0;
    --card-background: rgba(255, 255, 255, 0.05);
    --border-color: rgba(224, 255, 224, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
     /* border: 1px solid red !important */
}

html {
    height: 100svh;
}

body {
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'Orbitron', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    background: url('https://www.transparenttextures.com/patterns/stardust.png'), linear-gradient(to bottom, #0a0a14, #1a1a3a);
}

/* --- Navigation --- */


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    height: 69px;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(10, 10, 20, 0.5);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.logo a {
    color: inherit;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.navlinks {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s, text-shadow 0.3s;
}

.navlinks:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

/* Burger Menu */
.burger {
    display: none; /* Hidden by default, shown on smaller screens */
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
  	border-radius: 7px;
  
  	/* ------------------------------------ */
    /* background-color: var(--text-color); */
  	background-color: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
  
    margin: 5px;
    transition: all 0.3s ease;
}


/* --- Hero Section --- */

.hero-text {
    animation: fadeIn 2s ease-in-out;
    position: relative;
  	bottom: 3%
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 12px 25px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    box-shadow: 0 0 20px var(--primary-color);
}



/* --- Sections --- */
main{
margin:69px 0 0 0;
position:relative;
height: 100%;
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
  overflow: hidden
}

.project-grid{
	height: 100%;
  	width: 100%;
    overflow: auto;
  margin-left: 69px;
  margin-right: 69px
}

.project-card {
    margin: 50px auto;
    display: flex;
    background: var(--card-background);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    align-items: center;
}

a.project-card {
    text-decoration: none;
    animation: fadeIn 2s ease-in-out;
    max-width: 420px
}

.project-card:hover {
 
    box-shadow: 0 0 25px var(--primary-color);
}





.project-card img {
    height: 100px;
    width: 100%;
    display: block;
  	margin: auto;
  	padding: 1rem;
}

.project-card-content {
    flex: 2;
    padding: 2rem;
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* --- Cards --- */
.card-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 10px;
    width: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px var(--border-color);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}




/* --- Responsive --- */
@media (max-width: 768px) {
    	.hero-text h1 { font-size: 2.5rem; }
	.hero-text p { font-size: 1.23rem; }
   
 /* Navigation for mobile */
    nav ul {
        flex-direction: column;
        position: absolute;
        top: 69px; /* Adjust based on your header height */
        right: 0;
        width: 100%;
   	 background: rgba(10, 10, 20, 0.5);
    	backdrop-filter: blur(10px);
        padding: 1rem 0;
        text-align: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in, opacity 0.3s ease-in, visibility 0.3s ease-in;
        opacity: 0;
        visibility: hidden;
    }

    nav ul.nav-active {
        transform: translateX(0%);
        opacity: 1;
        visibility: visible;

    }

    nav ul li {
        opacity: 0;
    }

    nav ul li a {
        padding: 15px;
        display: block;
    }

    .burger {
        display: block; /* Show burger icon */
    }

    /* Burger animation */
  	.toogle {
  		background-color: red;
    		box-shadow: 0 0 5px red;
  	}
  
    	.toggle .line1 {
       		 transform: rotate(-45deg) translate(-5px, 6px);
     		 background-color: red;
    		box-shadow: 0 0 5px red;
    }

    .toggle .line2 {
        opacity: 0;
      background-color: red;
    	box-shadow: 0 0 5px red;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
      background-color: red;
    	box-shadow: 0 0 5px red;
    }
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 2.5rem; }
    .hero-text p { font-size: 1rem; }
    .cta-button { padding: 10px 20px; font-size: 1rem; }
    main h2 { font-size: 2rem; }
}



/* ------------------ */
/* --- Animations --- */
/* ------------------ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes glitch-anim-1 {
    0% { clip-path: inset(15% 0 86% 0); }
    20% { clip-path: inset(4% 0 15% 0); }
    40% { clip-path: inset(44% 0 51% 0); }
    60% { clip-path: inset(9% 0 1% 0); }
    80% { clip-path: inset(81% 0 10% 0); }
    100% { clip-path: inset(55% 0 43% 0); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(77% 0 10% 0); }
    20% { clip-path: inset(95% 0 2% 0); }
    40% { clip-path: inset(2% 0 94% 0); }
    60% { clip-path: inset(69% 0 12% 0); }
    80% { clip-path: inset(4% 0 15% 0); }
    100% { clip-path: inset(91% 0 3% 0); }
}
