/* Futuristic color palette */
:root {
    --bg-dark: #0a0e1a; /* Deep space black */
    --accent-blue: #00ddeb; /* Electric cyan */
    --accent-purple: #b721ff; /* Neon purple */
    --accent-green: #39ff14; /* Vibrant neon green */
    --text-primary: #e0e7ff; /* Soft white for text */
    --text-secondary: #a3bffa; /* Light purple-gray */
    --gradient: linear-gradient(135deg, #00ddeb 0%, #b721ff 50%, #39ff14 100%);
    --shadow-glow: 0 0 15px rgba(0, 221, 235, 0.5);
    --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.8);
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Header */
header {
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
}

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

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--shadow-glow);
}

nav ul {
    display: flex;
    gap: 40px;
}

nav ul li {
    list-style: none;
}

nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    position: relative;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--accent-blue);
    text-shadow: var(--shadow-glow);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--gradient);
    bottom: -6px;
    left: 0;
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--accent-blue);
    font-size: 28px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: url('https://miro.medium.com/v2/resize:fit:1400/0*5XWTyMgyJnfoVN99') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 26, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    transform: translateY(20px);
    animation: floatIn 2s ease-out forwards;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    text-shadow: var(--shadow-glow);
}

.hero p {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 32px;
}

.hero .btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient);
    color: var(--text-primary);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.hero .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 221, 235, 0.8);
}

/* About Section */
.about {
    padding: 140px 0;
    position: relative;
    background: var(--bg-dark);
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(36px, 4.5vw, 48px);
    font-weight: 700;
    color: var(--accent-blue);
    text-shadow: var(--shadow-glow);
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: var(--gradient);
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: center;
}

.about-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-dark);
    position: relative;
    transition: var(--transition);
}

.about-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
}

.about-img:hover::before {
    opacity: 0.3;
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.1);
    transition: var(--transition);
}

.about-img:hover img {
    transform: scale(1.15);
}

.about-text h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-purple);
    margin-bottom: 24px;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.skills {
    margin-top: 40px;
}

.skill-item {
    margin-bottom: 32px;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.6s ease-out forwards;
}

.skill-item:nth-child(2) { animation-delay: 0.2s; }
.skill-item:nth-child(3) { animation-delay: 0.4s; }
.skill-item:nth-child(4) { animation-delay: 0.6s; }

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--accent-green);
}

.skill-bar {
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 7px;
    box-shadow: var(--shadow-glow);
    transition: width 1.5s ease-in-out;
}

/* Experience Section */
.experience {
    padding: 140px 0;
    background: linear-gradient(to bottom, var(--bg-dark) 0%, #1c2526 100%);
    position: relative;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-item {
    padding: 32px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 48px;
    box-shadow: var(--shadow-dark);
    transform: perspective(1000px) rotateY(10deg);
    transition: var(--transition);
}

.timeline-item:hover {
    transform: perspective(1000px) rotateY(0deg);
    box-shadow: var(--shadow-glow);
}

.timeline-date {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: var(--text-primary);
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
}

.timeline-content h3 {
    font-size: 28px;
    color: var(--accent-blue);
    margin-bottom: 16px;
}

.timeline-content h4 {
    font-size: 20px;
    color: var(--accent-purple);
    margin-bottom: 16px;
}

.timeline-content p {
    color: var(--text-secondary);
}

/* Services Section */
.services {
    padding: 140px 0;
    background: var(--bg-dark);
}

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

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-dark);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-glow);
    background: rgba(255, 255, 255, 0.1);
}

.service-icon {
    font-size: 56px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 24px;
    color: var(--accent-green);
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-secondary);
}

/* Contact Section */
.contact {
    padding: 140px 0;
    background: linear-gradient(to top, var(--bg-dark) 0%, #1c2526 100%);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 64px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    transform: rotate(360deg);
}

.contact-icon {
    font-size: 32px;
    color: var(--accent-blue);
    margin-right: 24px;
    margin-top: 8px;
    transition: var(--transition);
}

.contact-details h3 {
    font-size: 22px;
    color: var(--accent-purple);
    margin-bottom: 12px;
}

.contact-details p,
.contact-details a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--accent-green);
}

.contact-form .form-group {
    margin-bottom: 32px;
    position: relative;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent-blue);
    border-radius: 10px;
    font-size: 16px;
    color: var(--text-primary);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-green);
    box-shadow: var(--shadow-glow);
    background: rgba(255, 255, 255, 0.1);
}

.contact-form textarea {
    height: 180px;
    resize: vertical;
}

.contact-form button {
    background: var(--gradient);
    color: var(--text-primary);
    border: none;
    padding: 16px 48px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.contact-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.8);
}

/* Footer */
footer {
    background: rgba(10, 14, 26, 0.95);
    color: var(--text-secondary);
    padding: 48px 0;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 32px;
}

.social-links a {
    color: var(--accent-blue);
    font-size: 28px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-green);
    transform: translateY(-6px);
}

.copyright {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 48px;
    right: 48px;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 221, 235, 0.8);
}

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

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-img {
        max-width: 500px;
        margin: 0 auto;
    }

    .timeline-item {
        transform: none;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: clamp(32px, 5vw, 48px);
    }

    .hero p {
        font-size: clamp(16px, 2vw, 20px);
    }

    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-dark);
        transition: left 0.4s ease;
        padding: 32px;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    nav ul li a {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: clamp(28px, 4vw, 36px);
    }

    .section-title h2 {
        font-size: clamp(28px, 3.5vw, 36px);
    }
}