/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0f0f23;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h3 {
    color: #64ffda;
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    color: #ccd6f6;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #64ffda;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #64ffda;
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #ccd6f6;
    margin: 3px 0;
    transition: 0.3s;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(100, 255, 218, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(100, 255, 218, 0.1) 0%, transparent 50%);
}

/* Floating Animation Elements */
.hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(100, 255, 218, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(100, 255, 218, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(100, 255, 218, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(100, 255, 218, 0.2), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(100, 255, 218, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: floatingDots 20s linear infinite;
    opacity: 0.5;
}

@keyframes floatingDots {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-subtitle {
    color: #64ffda;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: #ccd6f6;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 2.5rem;
    color: #8892b0;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-bio {
    color: #8892b0;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: #64ffda;
    color: #0f0f23;
    border-color: #64ffda;
}

.btn-primary:hover {
    background: transparent;
    color: #64ffda;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #64ffda;
    border-color: #64ffda;
}

.btn-secondary:hover {
    background: #64ffda;
    color: #0f0f23;
    transform: translateY(-2px);
}

.hero-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.social-link:hover {
    background: #64ffda;
    color: #0f0f23;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.3);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-container {
    position: relative;
    width: 300px;
    height: 300px;
    animation: profileFloat 6s ease-in-out infinite;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #64ffda;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(100, 255, 218, 0.2);
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(100, 255, 218, 0.3);
}

.image-bg {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #64ffda, #4ecdc4);
    border-radius: 50%;
    z-index: 1;
    animation: backgroundPulse 4s ease-in-out infinite;
}

/* Profile Animation Effects */
@keyframes profileFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

/* Orbiting Elements around Profile */
.hero-image::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #64ffda;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin: -5px 0 0 -5px;
    animation: orbit 15s linear infinite;
    box-shadow: 0 0 20px #64ffda;
}

.hero-image::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #4ecdc4;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin: -3px 0 0 -3px;
    animation: orbitReverse 20s linear infinite;
    box-shadow: 0 0 15px #4ecdc4;
}

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(200px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(200px) rotate(-360deg); }
}

@keyframes orbitReverse {
    0% { transform: rotate(0deg) translateX(180px) rotate(0deg); }
    100% { transform: rotate(-360deg) translateX(180px) rotate(360deg); }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: #ccd6f6;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #64ffda;
}

.section-subtitle {
    color: #8892b0;
    font-size: 1.1rem;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: #112240;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    color: #8892b0;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(100, 255, 218, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.stat-item h3 {
    font-size: 2rem;
    color: #64ffda;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #8892b0;
    font-size: 0.9rem;
}

.about-skills h3 {
    color: #ccd6f6;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-skills h3:first-child {
    margin-top: 0;
}

.education-item {
    background: rgba(100, 255, 218, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    margin-bottom: 1.5rem;
}

.education-item h4 {
    color: #ccd6f6;
    margin-bottom: 0.5rem;
}

.education-item p {
    color: #8892b0;
    margin-bottom: 0.5rem;
}

.education-status {
    background: #64ffda;
    color: #0f0f23;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.about-skills > p {
    color: #8892b0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-skills i {
    color: #64ffda;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: #0f0f23;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #112240;
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 20px 40px rgba(100, 255, 218, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #64ffda, #4ecdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 1.8rem;
    color: #0f0f23;
}

.service-card h3 {
    color: #ccd6f6;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: #8892b0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-tech {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.service-tech li {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Tech Stack Section */
.tech-stack {
    padding: 6rem 0;
    background: #112240;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.tech-category h3 {
    color: #ccd6f6;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.tech-items {
    display: grid;
    gap: 1rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(100, 255, 218, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateX(10px);
}

.tech-item i {
    font-size: 1.5rem;
    color: #64ffda;
}

.tech-item span {
    color: #ccd6f6;
    font-weight: 500;
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background: #0f0f23;
}

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

.project-card {
    background: #112240;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(100, 255, 218, 0.1);
}

.project-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #64ffda, #4ecdc4);
    overflow: hidden;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 35, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #64ffda;
    color: #0f0f23;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: scale(1.1);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    color: #ccd6f6;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-info p {
    color: #8892b0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: #112240;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(100, 255, 218, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #64ffda, #4ecdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.3rem;
    color: #0f0f23;
}

.contact-details h3 {
    color: #ccd6f6;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #8892b0;
    line-height: 1.4;
}

.contact-form {
    background: rgba(100, 255, 218, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #ccd6f6;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 8px;
    color: #ccd6f6;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #64ffda;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #0f0f23;
    padding: 2rem 0;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text p {
    color: #8892b0;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social .social-link {
    width: 40px;
    height: 40px;
}

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

.hero-text > * {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-text > *:nth-child(1) { animation-delay: 0.1s; }
.hero-text > *:nth-child(2) { animation-delay: 0.2s; }
.hero-text > *:nth-child(3) { animation-delay: 0.3s; }
.hero-text > *:nth-child(4) { animation-delay: 0.4s; }
.hero-text > *:nth-child(5) { animation-delay: 0.5s; }
.hero-text > *:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(15, 15, 35, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.8rem;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .tech-categories {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 200px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #112240;
}

::-webkit-scrollbar-thumb {
    background: #64ffda;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4ecdc4;
}
