:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #f59e0b;
    --accent-color: #06d6a0;
    --text-light: #f8fafc;
    --text-dark: #1e293b;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --card-bg: #1e293b;
    --border-color: #334155;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo .logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

    .nav-link:hover {
        color: var(--primary-color);
    }

    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -5px;
        left: 50%;
        background: var(--primary-color);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-link:hover::after {
        width: 100%;
    }

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

    .hamburger span {
        width: 25px;
        height: 3px;
        background: var(--text-light);
        margin: 3px 0;
        transition: 0.3s;
    }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    background: var(--gradient-1);
    border-radius: 50%;
    top: 20%;
    right: 20%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--gradient-2);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 60%;
    left: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 120px;
    height: 120px;
    background: var(--gradient-3);
    border-radius: 20px;
    transform: rotate(45deg);
    bottom: 20%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.greeting {
    display: block;
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: normal;
}

.name {
    display: block;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(102, 102, 241, 0.3);
    }

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--border-color);
}

    .btn-secondary:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
        transform: translateY(-2px);
    }

.btn-full {
    width: 100%;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.feature-card p {
    color: #94a3b8;
    line-height: 1.8;
}

/* About Section */
.about-hero {
    padding: 120px 0 10px;
    background: var(--bg-dark);
}

.page-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.about-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #94a3b8;
}

.about-description {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Skills Section */
.skills {
    padding: 80px 0;
    background: var(--bg-darker);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-name {
    font-weight: 600;
    color: var(--text-light);
}

.skill-percentage {
    color: var(--primary-color);
    font-weight: bold;
}

.skill-bar {
    height: 8px;
    background: var(--bg-dark);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 4px;
    transition: width 2s ease-in-out;
}

/* Projects Section */
.projects-hero {
    padding: 120px 0 80px;
    text-align: center;
    background: var(--bg-dark);
}

.projects {
    padding: 0 0 80px;
    background: var(--bg-dark);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

    .project-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

    .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 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 {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .project-link:hover {
        background: var(--primary-dark);
        transform: scale(1.1);
    }

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.project-description {
    color: #94a3b8;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    font-size: 0.9rem;
}

.tech-label {
    color: var(--accent-color);
    font-weight: 600;
}

.tech-list {
    color: #94a3b8;
}

/* Contact Section */
.contact-hero {
    padding: 120px 0 40px;
    text-align: center;
    background: var(--bg-dark);
}

.contact {
    padding: 0 0 80px;
    background: var(--bg-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.contact-info > p {
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

    .contact-method:hover {
        border-color: var(--primary-color);
        transform: translateX(5px);
    }

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-details h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #94a3b8;
}

/* Contact Form */
.contact-form-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group label {
        margin-bottom: 0.5rem;
        color: var(--text-light);
        font-weight: 600;
    }

.form-control {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-dark);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    }

    .form-control::placeholder {
        color: #64748b;
    }

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.text-danger {
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(6, 214, 160, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

    .social-link:hover {
        background: var(--primary-color);
        border-color: var(--primary-color);
        transform: translateY(-2px);
    }

.footer-section:last-child {
    text-align: right;
}

    .footer-section:last-child p {
        color: #94a3b8;
        font-size: 0.9rem;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-dark);
        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;
        }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .footer-section:last-child {
        text-align: center;
    }

    .features-grid,
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }
}

.profile-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
}

    .profile-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.pulsing-neon {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.neon-shape {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #00ffcc, #ff0066);
    border-radius: 10px;
    animation: pulse 2s infinite ease-in-out;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.5), 0 0 25px rgba(255, 0, 102, 0.5);
}

    .neon-shape:nth-child(1) {
        animation-delay: 0s;
    }

    .neon-shape:nth-child(2) {
        animation-delay: 0.4s;
    }

    .neon-shape:nth-child(3) {
        animation-delay: 0.8s;
    }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}


.glitch {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.glitch-line {
    width: 50px;
    height: 6px;
    background: #00ffcc;
    animation: glitch-effect 1s infinite alternate;
}

    .glitch-line:nth-child(2) {
        animation-delay: 0.5s;
    }

    .glitch-line:nth-child(3) {
        animation-delay: 1s;
    }

@keyframes glitch-effect {
    0% {
        transform: skew(10deg);
        opacity: 1;
        box-shadow: 2px 0 10px rgba(0, 255, 204, 0.5);
    }

    50% {
        transform: skew(-10deg);
        opacity: 0.5;
        box-shadow: -2px 0 10px rgba(0, 255, 204, 0.5);
    }

    100% {
        transform: skew(10deg);
        opacity: 1;
        box-shadow: 2px 0 10px rgba(0, 255, 204, 0.5);
    }
}



/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-light);
    border-radius: 15px;
    position: relative;
    margin: 0 auto 10px;
}

.wheel {
    width: 3px;
    height: 10px;
    background: var(--text-light);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 8px;
    }

    100% {
        opacity: 0;
        top: 20px;
    }
}

.arrows span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--text-light);
    border-right: 2px solid var(--text-light);
    transform: rotate(45deg);
    margin: -10px auto;
    animation: arrows 2s infinite;
}

    .arrows span:nth-child(2) {
        animation-delay: -0.2s;
    }

    .arrows span:nth-child(3) {
        animation-delay: -0.4s;
    }

@keyframes arrows {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-darker);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

    .section-header h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        background: var(--gradient-1);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .section-header p {
        font-size: 1.2rem;
        color: #94a3b8;
    }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        border-color: var(--primary-color);
    }

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
/*Vertical Timeline*/
.timeline-wrapper {
    padding: 10px 0;
    background: var(--bg-dark);
}

.timeline-container {
    display: flex;
    gap: 60px;
    justify-content: center;
    flex-wrap: wrap;
}

.timeline-section {
    flex: 1 1 400px; /* Flexible, minimum width 400px */
    max-width: 600px;
    margin-bottom: 40px;
}

.timeline-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.timeline-degree, .timeline-role {
    font-size: 2.3rem;
    margin-bottom: 5px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timeline {
    position: relative;
    margin-left: 30px;
    padding-left: 20px;
    border-left: 3px solid var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    top: 5px;
    left: -11px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-dot-alt {
    background: var(--secondary-color);
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.timeline-content {
    margin-left: 20px;
    background: var(--card-bg);
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    color: var(--text-light);
}

    .timeline-content h3 {
        font-size: 1.4rem;
        margin-bottom: 5px;
        color: var(--accent-color);
    }

.timeline-sub {
    font-size: 0.95rem;
    color: #94a3b8;
    display: block;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Responsive: stack on smaller screens */
@media (max-width: 900px) {
    .timeline-container {
        flex-direction: column;
    }

    .timeline-section {
        max-width: 100%;
        margin-bottom: 60px;
    }
}

.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

    .scroll-fade.show {
        opacity: 1;
        transform: translateY(0);
    }