/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base styles */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: #1a1a1a;
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 40px 20px;
}

.brownian-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#brownianCanvas {
    width: 100%;
    height: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.profile-img:hover {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: white;
}

.title {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 20px;
}

.contact-info {
    margin-top: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-link {
    color: white;
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* Education Section */
.education {
    padding: 40px 0;
    background: #1a1a1a;
    position: relative;
    z-index: 2;
}

.education h2 {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.education-item {
    background: #2d2d2d;
    padding: 25px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.education-item:hover {
    transform: translateY(-5px);
}

.education-item h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.education-item .degree {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.education-item .year {
    color: #666;
    font-size: 0.9rem;
}

/* Skills Section */
.skills {
    padding: 40px 0;
    background: #1a1a1a;
    position: relative;
    z-index: 2;
}

.skills h2 {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    justify-items: center;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 150px;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    object-fit: contain;
}

.skill-item:hover img {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.skill-item span {
    color: white;
    font-size: 1.1rem;
}

/* Projects Section */
.projects {
    padding: 40px 0;
    background: #1a1a1a;
    position: relative;
    z-index: 2;
}

.projects h2 {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

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

.project-card {
    perspective: 1000px;
    height: 400px;
    width: 100%;
    background: none;
    border-radius: 10px;
    overflow: visible;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    transform-style: preserve-3d;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    top: 0;
    left: 0;
}

.card-front {
    z-index: 2;
    background: #2d2d2d;
}

.card-back {
    transform: rotateY(180deg);
    background: #2d2d2d;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-back .project-content {
    padding: 20px;
}

.card-back ul {
    list-style-type: none;
    padding: 0;
    margin: 15px 0;
}

.card-back li {
    color: #888;
    margin: 10px 0;
    font-size: 0.95rem;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 20px;
    height: calc(100% - 200px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-content h3 {
    margin: 0 0 10px 0;
    color: white;
}

.project-content p {
    color: #888;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-top: auto;
    flex-wrap: wrap;
}

.project-tags span {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .title {
        font-size: 1.2rem;
    }
    
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
}

.quote {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 20px;
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.quote:hover {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    color: #999;
} 