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

:root {
    --primary: #00ff88;
    --secondary: #0066ff;
    --dark: #0a0a0a;
    --card-bg: #151515;
    --text: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(180deg, #0a0a0a 0%, #000814 100%);
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

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

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

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 50px 50px;
    gap: 50px;
    position: relative;
    overflow: hidden;
}

/* Hero Background Animation */
.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.15), transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    animation: heroGlow1 8s ease-in-out infinite;
    z-index: 0;
    filter: blur(60px);
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15), transparent 70%);
    border-radius: 50%;
    top: 50%;
    right: 20%;
    transform: translate(50%, -50%);
    animation: heroGlow2 10s ease-in-out infinite;
    z-index: 0;
    filter: blur(60px);
}

@keyframes heroGlow1 {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-30%, -60%) scale(1.2);
        opacity: 0.5;
    }
}

@keyframes heroGlow2 {
    0%, 100% {
        transform: translate(50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(40%, -40%) scale(1.15);
        opacity: 0.5;
    }
}

.hero-content {
    flex: 1;
    opacity: 0;
    animation: fadeInUp 1s forwards 0.5s;
    position: relative;
    z-index: 1;
}

.hero-content h3 {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 64px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h2 {
    font-size: 32px;
    color: #888;
    margin-bottom: 30px;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #aaa;
}

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

.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    font-weight: bold;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #000;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInRight 1s forwards 0.8s;
    position: relative;
    z-index: 1;
}

.image-container {
    position: relative;
    width: 400px;
    height: 400px;
    filter: drop-shadow(0 0 40px rgba(0, 255, 136, 0.4));
}

.image-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 50%;
    animation: none;
    display: none;
}

.image-container::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    border: none;
    border-radius: 50%;
    opacity: 0;
    animation: none;
    display: none;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: none;
    position: relative;
    z-index: 1;
    filter: brightness(1.1) contrast(1.15) saturate(1.1);
    transition: transform 0.3s ease, filter 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.25), 0 0 60px rgba(0, 102, 255, 0.15);
}

.image-container:hover img {
    transform: scale(1.03);
    filter: brightness(1.2) contrast(1.25) saturate(1.2);
    box-shadow: 0 15px 50px rgba(0, 255, 136, 0.35), 0 0 80px rgba(0, 102, 255, 0.25);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section Styling */
section {
    padding: 100px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 48px;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Education Section - Grid Layout */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.education-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.3s;
    position: relative;
}

.education-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 50px rgba(0, 255, 136, 0.2);
}

.education-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.education-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.education-card:hover .education-image img {
    transform: scale(1.1);
}

.education-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

.education-content {
    padding: 30px;
}

.education-year {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
    font-size: 14px;
}

.education-content h3 {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 10px;
}

.education-content h3 a {
    transition: all 0.3s ease;
    position: relative;
}

.education-content h3 a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.education-content h4 {
    color: #888;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: normal;
}

.education-content p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 20px;
}

.education-achievements {
    list-style: none;
    margin-top: 20px;
}

.education-achievements li {
    padding: 8px 0;
    color: #aaa;
    position: relative;
    padding-left: 25px;
    font-size: 14px;
}

.education-achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.2);
}

.skill-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 20px;
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    padding: 8px 0;
    color: #aaa;
    position: relative;
    padding-left: 20px;
}

.skill-card li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 255, 136, 0.2);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.project-image a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 24px;
}

.project-content h3 a {
    transition: all 0.3s ease;
}

.project-content h3 a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.project-content p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.tech-tag {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content p {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.3s;
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

.contact-item strong {
    color: var(--primary);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 30px;
    background: var(--card-bg);
    border-top: 1px solid rgba(0, 255, 136, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 20px;
    color: #aaa;
}

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

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.2);
    color: var(--secondary);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 20px 30px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 70px);
        background: rgba(21, 21, 21, 0.98);
        flex-direction: column;
        padding: 50px 30px;
        transition: right 0.3s;
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        flex-direction: column;
        padding: 100px 30px 50px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .image-container {
        width: 300px;
        height: 300px;
    }

    .cta-buttons {
        justify-content: center;
    }

    section {
        padding: 60px 30px;
    }

    .section-title {
        font-size: 36px;
    }

    .education-grid,
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .education-card {
        margin-bottom: 20px;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
