/* ============== CSS Variables ============== */
:root {
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --secondary: #f72585;
    --bg-dark: #0a192f;
    --bg-darker: #051225;
    --text-light: #ccd6f6;
    --text-lighter: #e6f0ff;
    --card-bg: #112240;
    --border-color: #233554;
    --success: #4ade80;
    --warning: #facc15;
    --danger: #ef4444;
    
    --transition: all 0.3s ease;
    --shadow: 0 10px 40px rgba(0, 212, 255, 0.1);
}

/* ============== Global Styles ============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

/* ============== Typography ============== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-lighter);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    opacity: 0.9;
    line-height: 1.8;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ============== Navbar ============== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo-text {
    color: var(--text-lighter);
    letter-spacing: 2px;
}

.logo-dot {
    color: var(--primary);
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding-bottom: 0.5rem;
}

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

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

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

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

/* ============== Hero Section ============== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(5, 18, 37, 0.95) 100%);
    position: relative;
    overflow: hidden;
    margin-top: 60px;
    padding: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(247, 37, 133, 0.1) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
    top: -50%;
    left: -50%;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, 50px); }
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--text-lighter) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: slideInUp 0.8s ease;
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
    animation: slideInUp 0.8s ease 0.1s backwards;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: slideInUp 0.8s ease 0.2s backwards;
}

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

.cta-btns {
    display: flex;
    gap: 1.5rem;
    animation: slideInUp 0.8s ease 0.3s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-dark);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.3);
}

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

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
}

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

.avatar-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(247, 37, 133, 0.2) 100%);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--primary);
    animation: float 3s ease-in-out infinite;
    overflow: hidden;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--primary);
    animation: bounce 2s ease-in-out infinite;
    z-index: 1;
}

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

/* ============== About Section ============== */
.about-section {
    padding: 5rem 0;
    background: var(--bg-dark);
    position: relative;
}

.section-title {
    text-align: center;
    position: relative;
    display: inline-block;
    margin-left: 50%;
    transform: translateX(-50%);
    margin-bottom: 3rem;
}

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

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

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

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

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat h4 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat p {
    opacity: 0.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.05);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.feature-card p {
    opacity: 0.8;
}

/* ============== Skills Section ============== */
.skills-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.05);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.skill-category i {
    font-size: 1.3rem;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-item span {
    font-weight: 600;
    color: var(--text-lighter);
}

.skill-bar {
    height: 8px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
    transition: width 1s ease;
}

/* ============== Education Section ============== */
.education-section {
    padding: 5rem 0;
    background: var(--bg-dark);
}

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

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, transparent 100%);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
    top: 30px;
}

.timeline-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: calc(50% - 40px);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.05);
}

.timeline-content h3 {
    color: var(--text-lighter);
    margin-bottom: 0.5rem;
}

.institution {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.period {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.description {
    opacity: 0.85;
    line-height: 1.6;
}

/* ============== Contact Section ============== */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

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

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.contact-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.05);
    transform: translateY(-8px);
}

.contact-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-card h3 {
    margin-bottom: 0.5rem;
}

.contact-card p {
    opacity: 0.8;
}

.contact-card a {
    color: var(--primary);
    font-weight: 500;
}

.contact-card a:hover {
    color: var(--primary-dark);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-8px) scale(1.1);
}

/* ============== Footer ============== */
.footer {
    background: rgba(5, 18, 37, 0.8);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-light);
    opacity: 0.8;
}

.footer i {
    color: var(--secondary);
    margin: 0 0.3rem;
}

/* ============== Responsive Design ============== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 25, 47, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        padding: 2rem 0;
        list-style: none;
    }

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

    .menu-toggle {
        display: flex;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

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

    .hero-text {
        text-align: center;
    }

    .cta-btns {
        justify-content: center;
        flex-wrap: wrap;
    }

    .avatar-placeholder {
        width: 200px;
        height: 200px;
        font-size: 4rem;
    }

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

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-wrapper {
        grid-template-columns: 1fr;
    }

    .education-timeline::before {
        left: 10px;
    }

    .timeline-content {
        width: calc(100% - 40px);
        margin-left: 40px !important;
        margin-right: 0 !important;
    }

    .timeline-marker {
        left: 10px;
    }

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

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

    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; margin-bottom: 2rem; }
    h3 { font-size: 1.2rem; }

    .container {
        padding: 0 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

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

    .hero-tagline {
        font-size: 1.1rem;
    }

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

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

    .stat h4 {
        font-size: 1.8rem;
    }

    .cta-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .social-links {
        gap: 1rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .skill-category,
    .feature-card,
    .contact-card {
        padding: 1.5rem;
    }

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