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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #1a1a1a;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, #10b98115 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.hero-content {
    text-align: center;
    z-index: 1;
    position: relative;
    padding-bottom: 100px; /* Added padding to move content up from arrow */
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #10b981;
    margin-bottom: 10px;
    font-weight: 500;
}

.hero-description {
    font-size: 1.2rem;
    color: #9ca3af;
    margin-bottom: 40px;
}

/* Typing Animation */
.typing-text {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.cursor {
    display: inline-block;
    font-weight: 100;
    animation: blink 1s infinite;
    color: #10b981;
    opacity: 0;
    animation-delay: 0.5s;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

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

.hero-subtitle,
.hero-description {
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
}

.hero-subtitle {
    animation-delay: 2s;
}

.hero-description {
    animation-delay: 2.3s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator - Moved down */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid #10b981;
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 4px;
    height: 10px;
    background: #10b981;
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes scroll {
    0% { opacity: 0; transform: translateX(-50%) translateY(0); }
    40% { opacity: 1; }
    80% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    100% { opacity: 0; transform: translateX(-50%) translateY(0); }
}

/* Main Content */
main {
    background: #252525;
    min-height: 100vh;
}

/* Projects Section */
.projects {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    color: #ffffff;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 2px;
}

/* 2x2 Grid Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.project-square {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    height: 220px;
    display: flex;
    flex-direction: column;
}

.project-square::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #059669);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.project-square:hover::before {
    transform: scaleX(1);
}

.project-square:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    background: #303030;
}

.project-square a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-square h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #10b981;
    transition: color 0.3s ease;
}

.project-square:hover h3 {
    color: #34d399;
}

.project-square p {
    color: #b0b0b0;
    line-height: 1.6;
    font-size: 0.95rem;
    flex: 1;
}

/* Project Tech Tags */
.project-tech {
    margin-top: auto;
    padding-top: 15px;
    font-size: 0.85rem;
    color: #9ca3af;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.tech-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

/* Technology Colors */
.tech-dot.python { background-color: #3776ab; }
.tech-dot.pytorch { background-color: #ee4c2c; }
.tech-dot.ai { background-color: #10b981; }
.tech-dot.nodejs { background-color: #339933; }
.tech-dot.js { background-color: #f7df1e; }
.tech-dot.html { background-color: #e34f26; }
.tech-dot.css { background-color: #1572b6; }
.tech-dot.go { background-color: #00add8; }
.tech-dot.json { background-color: #a855f7; }
.tech-dot.api { background-color: #ef4444; }
.tech-dot.java { background-color: #f89820; }
.tech-dot.spring { background-color: #6db33f; }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Change to single column on mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        padding: 0 10px;
    }
    
    .project-square {
        padding: 20px;
        min-height: 200px;
        height: auto;
    }
}