* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

/* ========== Contact Header ========== */
.contact-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    display: flex;
    justify-content: center;
    gap: 32px;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-header a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.contact-header a:hover {
    color: #a855f7;
}

/* ========== Animated Background with Stars ========== */
.background-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: starMove 8s linear infinite, twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

.blob {
    position: absolute;
    width: 384px;
    height: 384px;
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse 3s ease-in-out infinite;
}

.blob-1 {
    top: 80px;
    left: 80px;
    background: rgba(168, 85, 247, 0.2);
}

.blob-2 {
    bottom: 80px;
    right: 80px;
    background: rgba(236, 72, 153, 0.2);
    animation-delay: 1s;
}

.blob-3 {
    top: 50%;
    left: 50%;
    background: rgba(59, 130, 246, 0.2);
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* ========== Hero Section ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 16px 80px;
    z-index: 1;
}

.hero-content {
    max-width: 1280px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avatar-container {
    position: relative;
    margin-bottom: 32px;
}

.avatar-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #a855f7, #ec4899, #3b82f6);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.75;
    animation: pulse 3s ease-in-out infinite;
}
.avatar{
position:relative;
width:192px;
height:192px;
border-radius:50%;
overflow:hidden;
border:4px solid rgba(255,255,255,0.2);
}

.avatar video{
position:absolute;
top:50%;
left:50%;
width:100%;
height:100%;
object-fit:cover;
transform:translate(-50%,-50%) scale(1.2);
}
.audio-button {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border: 4px solid #000;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.audio-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(168, 85, 247, 0.6);
}

.audio-button.playing {
    animation: soundPulse 0.8s infinite;
}

@keyframes soundPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
    }
    50% {
        box-shadow: 0 4px 40px rgba(168, 85, 247, 0.8);
        transform: scale(1.05);
    }
}

.hero-text {
    margin-bottom: 32px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}
.typing-text{
font-size:18px;
color:#cbd5e1;
margin-top:10px;
height:25px;
}
.project-card{
transition:transform .3s ease, box-shadow .3s ease;
}

.project-card:hover{
transform:translateY(-8px) scale(1.02);
box-shadow:0 20px 40px rgba(0,0,0,.4);
}
.subtitle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.sparkle {
    color: #a855f7;
    animation: sparkle 2s infinite;
}

.hero-buttons{
display:flex;
gap:20px;
margin-top:25px;
align-items:center;
}
.cv-button{
padding:14px 28px;
background:linear-gradient(135deg,#8b5cf6,#ec4899);
color:white;
text-decoration:none;
border-radius:10px;
font-weight:600;
transition:0.3s;
transform:translateY(-9px);
}

.cv-button:hover{
transform:translateY(-3px);
box-shadow:0 10px 25px rgba(168,85,247,0.4);
}

@keyframes sparkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.subtitle {
    font-size: 18px;
    color: #94a3b8;
}

.hero-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.hero-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-contact-link:hover {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
}

.hero-contact-separator {
    color: #64748b;
    font-size: 14px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5);
}

/* ========== Section Styles ========== */
section {
    position: relative;
    padding: 80px 16px;
    z-index: 1;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.container-large {
    max-width: 1280px;
    margin: 0 auto;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 64px;
}

.gradient-blue {
    background: linear-gradient(to right, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-purple {
    background: linear-gradient(to right, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-emerald {
    background: linear-gradient(to right, #10b981, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-orange {
    background: linear-gradient(to right, #f97316, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-cyan {
    background: linear-gradient(to right, #06b6d4, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-pink {
    background: linear-gradient(to right, #ec4899, #f43f5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== About Section ========== */
.about-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.about-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(59, 130, 246, 0.05));
    pointer-events: none;
}

.about-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 24px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.highlight-cyan {
    color: #06b6d4;
    font-weight: 600;
}

.highlight-purple {
    color: #a855f7;
    font-weight: 600;
}

.highlight-emerald {
    color: #10b981;
    font-weight: 600;
}

/* ========== Education Section ========== */
.education-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.education-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(236, 72, 153, 0.05));
    pointer-events: none;
}

.education-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.education-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(to right, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.education-degree {
    font-size: 22px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 12px;
}

.education-details {
    font-size: 16px;
    color: #94a3b8;
    margin-bottom: 24px;
}

.education-description {
    font-size: 18px;
    line-height: 1.8;
    color: #cbd5e1;
}

/* ========== Experience Section ========== */
.experience-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.experience-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(20, 184, 166, 0.05));
    pointer-events: none;
}

.experience-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.experience-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.experience-title {
    font-size: 28px;
    font-weight: 700;
    color: #e2e8f0;
}

.experience-company {
    font-size: 24px;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(20, 184, 166, 0.2));
    border: 2px solid #10b981;
}

.highlight-sabic {
    color: #10b981;
}

.highlight-star {
    color: #f59e0b;
    font-weight: 700;
}

.experience-date {
    font-size: 16px;
    color: #94a3b8;
    margin-bottom: 24px;
}

.experience-description p {
    font-size: 18px;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 24px;
}

.experience-description ul {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.experience-description li {
    font-size: 16px;
    line-height: 1.8;
    color: #cbd5e1;
    padding: 12px 0 12px 32px;
    position: relative;
}

.experience-description li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #10b981;
    font-size: 20px;
}

/* ========== Recommendations Section ========== */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.recommendation-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px 32px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.recommendation-card:hover {
    transform: translateY(-8px);
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.2);
}

.recommendation-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.05), rgba(239, 68, 68, 0.05));
    pointer-events: none;
}

.recommendation-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.pdf-icon {
    margin: 0 auto 24px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border-radius: 16px;
    color: white;
}

.recommendation-title {
    font-size: 20px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.recommendation-subtitle {
    font-size: 14px;
    color: #94a3b8;
}

/* ========== Projects Section ========== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.project-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-gradient {
    position: absolute;
    inset: 0;
    opacity: 0.6;
}

.project-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, #000, transparent);
}

.gradient-purple-pink {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3));
}

.gradient-blue-cyan {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(6, 182, 212, 0.3));
}

.gradient-emerald-teal {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(20, 184, 166, 0.3));
}

.gradient-orange-red {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(239, 68, 68, 0.3));
}

.project-content {
    padding: 32px;
}

.project-subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.project-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.project-year {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tech-tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 12px;
    color: #cbd5e1;
}

.project-description {
    font-size: 15px;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 20px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a855f7;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.project-card:hover .project-link {
    gap: 12px;
}

/* ========== Skills Section ========== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.skills-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.skills-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(59, 130, 246, 0.05));
    pointer-events: none;
}

.skills-content {
    position: relative;
    z-index: 1;
}

.skills-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-item {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 15px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

/* ========== Certificates Section ========== */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.certificate-item {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s ease;
}

.certificate-item:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.15);
}

.certificate-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.05), rgba(239, 68, 68, 0.05));
    pointer-events: none;
}

.certificate-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.certificate-dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border-radius: 50%;
    flex-shrink: 0;
}

.certificate-name {
    font-size: 15px;
    color: #e2e8f0;
    line-height: 1.6;
}

/* ========== Organizations Section ========== */
.organizations-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.organization-item {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s ease;
}

.organization-item:hover {
    transform: translateX(8px);
    border-color: rgba(236, 72, 153, 0.3);
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.15);
}

.organization-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), rgba(244, 63, 94, 0.05));
    pointer-events: none;
}

.organization-content {
    position: relative;
    z-index: 1;
}

.organization-name {
    font-size: 22px;
    font-weight: 700;
    color: #ec4899;
    margin-bottom: 8px;
}

.organization-role {
    font-size: 18px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.organization-date {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.organization-description {
    font-size: 15px;
    line-height: 1.6;
    color: #cbd5e1;
}

/* ========== Contact Section ========== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.contact-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
    text-decoration: none;
    display: block;
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.contact-card:hover .contact-overlay {
    opacity: 0.1;
}

.contact-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.contact-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.gradient-purple-bg {
    background: linear-gradient(135deg, #a855f7, #ec4899);
}

.gradient-blue-bg {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.gradient-emerald-bg {
    background: linear-gradient(135deg, #10b981, #14b8a6);
}

.gradient-cyan-bg {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
}

.contact-label {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-text {
    font-size: 15px;
    color: #cbd5e1;
}

/* ========== Footer ========== */
.footer {
    position: relative;
    padding: 48px 16px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.footer p {
    color: #94a3b8;
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-contact a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #a855f7;
}

.footer-contact span {
    color: #64748b;
}

/* ========== Modal ========== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-gradient {
    position: absolute;
    inset: 0;
    opacity: 0.5;
}

.modal-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(15, 15, 15, 0.95), transparent);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: rotate(90deg);
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

.modal-subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.modal-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}

.modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.modal-tech-tag {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    color: white;
    font-weight: 600;
}

.modal-description {
    font-size: 16px;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 32px;
}

.modal-images-title {
    font-size: 20px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 16px;
}

.modal-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.modal-image-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.modal-image-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.modal-image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.modal-features-title {
    font-size: 20px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 16px;
}

.modal-features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}

.modal-features-list li {
    font-size: 15px;
    line-height: 1.8;
    color: #cbd5e1;
    padding: 8px 0 8px 28px;
    position: relative;
}

.modal-features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
    font-size: 18px;
}

.modal-github-container {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-github {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.modal-github:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }

    .section-title {
        font-size: 36px;
    }

    .contact-header {
        flex-direction: column;
        gap: 8px;
        padding: 16px;
    }

    .avatar {
        width: 160px;
        height: 160px;
    }

    .hero-contact {
        flex-direction: column;
        gap: 8px;
    }

    .hero-contact-separator {
        display: none;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-title {
        font-size: 28px;
    }

    .modal-images-grid {
        grid-template-columns: 1fr;
    }

    .about-card,
    .education-card,
    .experience-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    /* ===== Galaxy Moving Stars ===== */

.stars,
.stars2,
.stars3{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
pointer-events:none;
}

.stars{
background-image:
radial-gradient(2px 2px at 20px 30px,#fff,transparent),
radial-gradient(2px 2px at 40px 70px,#fff,transparent),
radial-gradient(1px 1px at 90px 40px,#fff,transparent),
radial-gradient(1px 1px at 130px 80px,#fff,transparent),
radial-gradient(2px 2px at 160px 120px,#fff,transparent);
background-size:200px 200px;

animation:starsMove 120s linear infinite;
opacity:0.8;
}

.stars2{
background-image:
radial-gradient(2px 2px at 50px 160px,#fff,transparent),
radial-gradient(2px 2px at 150px 40px,#fff,transparent),
radial-gradient(1px 1px at 80px 120px,#fff,transparent);
background-size:300px 300px;

animation:starsMove 180s linear infinite;
opacity:0.6;
}

.stars3{
background-image:
radial-gradient(3px 3px at 200px 100px,#fff,transparent),
radial-gradient(3px 3px at 100px 200px,#fff,transparent);
background-size:400px 400px;

animation:starsMove 240s linear infinite;
opacity:0.5;
}

@keyframes starsMove{
from{
transform:translateY(0);
}
to{
transform:translateY(-2000px);
}
}
    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .subtitle {
        font-size: 14px;
    }

    .hero-contact-link {
        font-size: 13px;
        padding: 6px 10px;
    }
}
