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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0f;
    color: #00ffff;
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
    cursor: none;
}

#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #00ffff;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.1s ease, height 0.1s ease, border-color 0.2s ease;
    z-index: 9999;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.content {
    position: relative;
    z-index: 10;
    min-height: 100vh;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: clamp(1rem, 2vw, 2rem);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #00ffff33;
    z-index: 100;
}

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

.logo {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 900;
    color: #ff0080;
    text-shadow: 0 0 10px #ff0080;
}

.nav-links {
    display: flex;
    gap: clamp(15px, 3vw, 30px);
}

.nav-link {
    color: #00ffff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-link:hover {
    color: #ff0080;
    text-shadow: 0 0 10px #ff0080;
}

.section {
    min-height: 100vh;
    padding: clamp(8vh, 10%, 12vh) clamp(5vw, 5%, 40px) clamp(5vh, 5%, 60px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero {
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00ffff, #ff0080, #ffff00);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero .subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: #00ffff;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.hero .description {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #cccccc;
}

.cta-button {
    display: inline-block;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(2rem, 4vw, 3rem);
    background: linear-gradient(45deg, #ff0080, #00ffff);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.5);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 30px rgba(255, 0, 128, 0.8);
}

.about-content {
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(20px, 2vw, 60px);
    align-items: center;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #ff0080;
    text-shadow: 0 0 20px #ff0080;
    margin-bottom: 1.5rem;
}

.text-content {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    line-height: 1.8;
    color: #cccccc;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(10px, 2vw, 20px);
    margin-top: 1.5rem;
}

.skill-card {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #00ffff33;
    padding: clamp(1rem, 2vw, 1.5rem);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.skill-card:hover {
    background: rgba(255, 0, 128, 0.1);
    border-color: #ff0080;
    transform: translateY(-5px);
}

.skill-title {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: #00ffff;
    margin-bottom: 0.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(15px, 2vw, 30px);
    max-width: 1200px;
}

.project-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ffff33;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: #ff0080;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 0, 128, 0.3);
}

.project-image {
    width: 100%;
    height: clamp(150px, 20vw, 200px);
    background: linear-gradient(45deg, #ff008080, #00ffff80);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #000;
}

.project-content {
    padding: clamp(1rem, 2vw, 1.5rem);
}

.project-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #ff0080;
    margin-bottom: 0.5rem;
}

.project-description {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid #00ffff33;
}

.contact-content {
    text-align: center;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.contact-item {
    padding: 1rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #00ffff33;
    border-radius: 10px;
    transition: all 0.3s ease;
    word-wrap: break-word;
}

.contact-item:hover {
    background: rgba(255, 0, 128, 0.1);
    border-color: #ff0080;
}

.glitch {
    position: relative;
    display: flex;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 2s infinite;
    color: #ff0080;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 2s infinite;
    color: #00ffff;
    z-index: -2;
}

.social_media_tag {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.youssef-link {
    position: relative;
    z-index: 10;
    text-decoration: none;     /* removes underline */
    color: inherit;            /* keeps the color same as parent */
    cursor: pointer;           /* shows pointer on hover */
    outline: none; 
}

.youssef-link:visited {
    color: inherit;
}

.youssef-link:hover {
    color: inherit; /* keep same color */
    text-decoration: none;
}


@keyframes glitch-1 {
    0%, 14%, 15%, 49%, 50%, 99%, 100% { transform: translate(0); }
    15% { transform: translate(-2px, 0); }
    50% { transform: translate(2px, 0); }
}

@keyframes glitch-2 {
    0%, 20%, 21%, 62%, 63%, 99%, 100% { transform: translate(0); }
    21% { transform: translate(2px, 0); }
    63% { transform: translate(-2px, 0); }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero .subtitle { font-size: 1rem; }
    .about-content, .projects-grid, .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .section { padding: 8vh 5vw 5vh; }
    .nav-links { display: none; }
    .contact-info {
        grid-template-columns: 1fr; /* stack items vertically */
        gap: 1rem;
    }
    .contact-item {
        width: 100%;
        padding: 0.8rem 1rem; /* reduce padding for mobile */
    }
    .contact-content p.description {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero .subtitle { font-size: 0.9rem; }
    .contact-content p.description {
        font-size: 0.85rem;}
}


