* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: gilroy, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(180deg, #1a1625 0%, #0f0d1a 50%, #1a1625 100%);
    color: #e5e7eb;
    overflow-x: hidden;
}

#main {
    position: relative;
}

/* NAVIGATION */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 50px;
    z-index: 999;
    background: rgba(15, 13, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#nav h3 {
    font-size: 24px;
    font-weight: 400;
}

#nav h3 a {
    color: #fff;
    text-decoration: none;
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}

.back-button {
    color: #3b82f6;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #3b82f6;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.back-button:hover {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

/* HERO SECTION */
.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(140px);
    animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.9; }
}

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

.hero-title {
    font-size: 80px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    text-align: center;
}

.hero-subtitle {
    font-size: 18px;
    color: #9ca3af;
    font-weight: 400;
    text-align: center;
}

/* PROJECTS SECTION */
.projects-section {
    padding: 60px 80px 100px 80px;
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
}

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.project-card {
    background: rgba(30, 27, 47, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    min-height: 450px;
    align-items: stretch;
    cursor: pointer;
}

.project-card.featured {
    min-height: 550px;
    grid-template-columns: 2fr 1fr;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.12), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.project-card:hover::before {
    opacity: 1;
}

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

.project-card.featured {
    border-color: rgba(255, 215, 0, 0.2);
}

.project-card.featured:hover {
    border-color: rgba(255, 215, 0, 0.4);
}

.project-image {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 27, 47, 0.8), rgba(20, 18, 35, 0.8));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card.featured .project-image {
    height: 100%;
}

.project-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.2), rgba(30, 58, 138, 0.1));
    overflow: hidden;
    border-radius: 20px;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.placeholder-icon {
    font-size: 80px;
    opacity: 0.4;
    color: rgba(255, 255, 255, 0.2);
}

.project-content {
    padding: 45px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
    justify-content: space-between;
}

.project-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-title {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 8px;
}

.project-year {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 400;
}

.project-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.project-author-name {
    font-size: 15px;
    color: #e5e7eb;
    font-weight: 500;
}

.project-author-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.author-link {
    color: #60a5fa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.author-link:hover {
    color: #3b82f6;
}

.project-description {
    font-size: 15px;
    color: #9ca3af;
    line-height: 1.7;
    margin-bottom: 15px;
}

.project-highlights {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    font-size: 14px;
    color: #d1d5db;
}

.highlight-icon {
    font-size: 18px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    padding: 7px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 18px;
    font-size: 13px;
    color: #60a5fa;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.project-btn {
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.project-btn.primary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-btn.primary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.project-btn.secondary {
    background: transparent;
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e5e7eb;
}

/* STATISTICS SECTION */
.stats-section {
    padding: 80px 50px;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.08), transparent 70%);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: rgba(15, 20, 35, 0.8);
    border: 2px solid rgba(59, 130, 246, 0.25);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.stat-number {
    display: block;
    font-size: 56px;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    font-size: 16px;
    color: #d1d5db;
    font-weight: 500;
}

/* CTA SECTION */
.cta-section {
    padding: 100px 50px;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.12), transparent 70%);
}

.cta-section h2 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-section p {
    font-size: 20px;
    color: #d1d5db;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button.primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
}

.cta-button.secondary {
    background: transparent;
    color: #60a5fa;
    border: 2px solid #3b82f6;
}

.cta-button.secondary:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: #2563eb;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .projects-section {
        padding: 60px 40px 100px 40px;
    }
    
    .project-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .project-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    #nav {
        padding: 15px 20px;
    }
    
    #nav h3 {
        font-size: 18px;
    }
    
    .back-button {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .hero-title {
        font-size: 60px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .projects-section {
        padding: 50px 20px;
    }
    
    .projects-container {
        gap: 30px;
    }
    
    .project-card {
        border-radius: 16px;
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .project-image {
        height: 250px;
    }
    
    .placeholder-icon {
        font-size: 60px;
    }
    
    .project-content {
        padding: 30px 20px;
        gap: 20px;
    }
    
    .project-title {
        font-size: 24px;
    }
    
    .project-description {
        font-size: 15px;
    }
    
    .project-highlights {
        gap: 12px;
    }
    
    .highlight-item {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .tech-stack {
        gap: 8px;
    }
    
    .tech-tag {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .project-btn {
        width: 100%;
    }
    
    .stats-section {
        padding: 50px 20px;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 42px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    .cta-section {
        padding: 60px 20px;
    }
    
    .cta-section h2 {
        font-size: 32px;
    }
    
    .cta-section p {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .project-title {
        font-size: 20px;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
}
