:root {
    --primary-color: #00ff88;
    --secondary-color: #00ffee;
    --accent-color: #ff00ff;
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --cyber-gradient: linear-gradient(45deg, #00ff88, #00ffee, #ff00ff);
    --neon-shadow: 0 0 10px rgba(0, 255, 136, 0.5),
                   0 0 20px rgba(0, 255, 136, 0.3),
                   0 0 30px rgba(0, 255, 136, 0.1);
}

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

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(0, 255, 136, 0.1) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(0, 255, 238, 0.1) 50%, transparent 52%);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

.background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, 
                rgba(0, 255, 136, 0.1) 0%,
                rgba(0, 0, 0, 0.9) 100%);
}

.grid-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(0, 255, 136, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 255, 136, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 15s linear infinite;
    z-index: -1;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/noise.png');
    opacity: 0.05;
    pointer-events: none;
    z-index: 1000;
}

/* Cursor Styles */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease;
}

.cursor-glow {
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 136, 0.2);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s ease;
}

/* Navigation */
.nav-bar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: var(--cyber-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 20px;
    position: relative;
    transition: 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyber-gradient);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}
/* Audio Control */
.audio-control {
    position: relative;
    z-index: 101;
}

#audioToggle {
    background: none;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 8px;
}

#audioToggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary-color);
}

.audio-icon {
    width: 100%;
    height: 100%;
    stroke: var(--primary-color);
    transition: all 0.3s ease;
}

#audioToggle.playing .audio-icon {
    stroke: var(--accent-color);
}

#audioToggle.playing {
    animation: audioWave 2s infinite;
    border-color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.glitch-title {
    font-size: 8em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-color);
    text-shadow: var(--neon-shadow);
    position: relative;
    animation: titleFloat 4s ease-in-out infinite;
}

.glitch-title::before,
.glitch-title::after {
    content: 'RAGIB ABID';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-title::before {
    left: 2px;
    text-shadow: 2px 0 var(--primary-color);
    animation: glitch-1 2s infinite linear alternate-reverse;
}

.glitch-title::after {
    left: -2px;
    text-shadow: -2px 0 var(--secondary-color);
    animation: glitch-2 3s infinite linear alternate-reverse;
}

.hero-subtitle {
    font-size: 1.5em;
    margin-top: 20px;
    background: var(--cyber-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    animation: subtitlePulse 3s infinite;
}

.hero-description {
    margin-top: 20px;
    font-size: 1.2em;
    opacity: 0.8;
}

/* Profile Section */
.profile-section {
    padding: 100px 10%;
    min-height: 100vh;
    position: relative;
}
.profile-text {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.2);
}
h1, h2 {
    color: #ffcc00;
}
p {
    color: #f1f1f1;
}
strong {
    color: #ff9900;
}
ul {
    list-style-type: square;
    padding-left: 20px;
    color: #ffdd57;
}
em {
    color: #00eaff;
    font-style: normal;
}
li {
    margin: 5px 0;
}


.profile-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.image-frame {
    position: relative;
    width: 100%;
    padding-top: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--neon-shadow);
}

.image-frame img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.image-frame:hover img {
    transform: scale(1.05);
}

/* Achievements Section */
.achievements-section {
    padding: 100px 10%;
    background: linear-gradient(rgba(10,10,10,0.8), rgba(10,10,10,0.8));
    position: relative;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.achievement-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 30px;
    transition: 0.3s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.achievement-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--neon-shadow);
}

/* Work Section */
.work-section {
    padding: 100px 10%;
    position: relative;
}

.timeline {
    position: relative;
    margin-top: 50px;
}

.timeline-item {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    transition: 0.3s;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.timeline-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    box-shadow: var(--neon-shadow);
}

/* YouTube Section */
.youtube-section {
    padding: 100px 10%;
    position: relative;
}

.youtube-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
}

.youtube-card img {
    width: 100%;
    height: auto;
}

.youtube-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.youtube-card:hover .overlay {
    opacity: 1;
}

/* Contact Section */
.contact-section {
    padding: 100px 10%;
    text-align: center;
    position: relative;
}

.contact-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--cyber-gradient);
    border-radius: 30px;
    color: var(--bg-color);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.contact-button:hover {
    transform: scale(1.05);
    box-shadow: var(--neon-shadow);
}
.social-links {
    display: flex;
    gap: 20px; /* Space between icons */
    justify-content: center; /* Center the icons */
    align-items: center;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; 
    height: 50px; 
    border-radius: 50%; /* Circular background */
    background: linear-gradient(135deg, #e0e0e0, #f7f7f7); /* Light gradient */
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1), -4px -4px 10px rgba(255, 255, 255, 0.7); /* 3D Neumorphism effect */
    transition: all 0.3s ease-in-out;
}

.social-icon svg {
    width: 28px;
    height: 28px;
    fill: #777; /* Subtle gray */
    transition: transform 0.3s ease-in-out, fill 0.3s ease-in-out;
}

/* Hover Effects */
.social-icon:hover {
    transform: scale(1.1); /* Slight zoom effect */
    background: linear-gradient(135deg, #f4c531, #ffe57f); /* Light golden effect */
    box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.15), -6px -6px 15px rgba(255, 255, 255, 0.8);
}

.social-icon:hover svg {
    fill: white; /* Icon turns white on hover */
    transform: scale(1.2); /* Slight icon zoom */
}
/* Footer */
.footer {
    padding: 20px;
    text-align: center;
    background: rgba(255,255,255,0.05);
    position: relative;
}

/* Animations */
@keyframes titleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

@keyframes glitch-1 {
    0% { clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%); }
    20% { clip-path: polygon(0 15%, 100% 15%, 100% 15%, 0 15%); }
    40% { clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%); }
    60% { clip-path: polygon(0 1%, 100% 1%, 100% 2%, 0 2%); }
    80% { clip-path: polygon(0 33%, 100% 33%, 100% 33%, 0 33%); }
    100% { clip-path: polygon(0 44%, 100% 44%, 100% 44%, 0 44%); }
}

@keyframes glitch-2 {
    0% { clip-path: polygon(0 25%, 100% 25%, 100% 30%, 0 30%); }
    15% { clip-path: polygon(0 3%, 100% 3%, 100% 3%, 0 3%); }
    25% { clip-path: polygon(0 5%, 100% 5%, 100% 20%, 0 20%); }
    52% { clip-path: polygon(0 40%, 100% 40%, 100% 40%, 0 40%); }
    75% { clip-path: polygon(0 52%, 100% 52%, 100% 60%, 0 60%); }
    100% { clip-path: polygon(0 70%, 100% 70%, 100% 70%, 0 70%); }
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

@keyframes subtitlePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links { display: none; }
    
    .glitch-title {
        font-size: 3em;
    }
    
    .hero-subtitle {
        font-size: 1.2em;
    }
    
    .profile-container {
        grid-template-columns: 1fr;
    }
    
    .achievement-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .glitch-title {
        font-size: 2em;
    }
    
    .hero-subtitle {
        font-size: 1em;
    }
    
    .section-title {
        font-size: 1.5em;
    }
}