/* Base & Design Variables */
:root {
    --bg-color: #0d1117;
    --text-color: #c9d1d9;
    --heading-color: #ffffff;
    --accent-primary: #58a6ff;
    --accent-secondary: #8a2be2;
    --glass-bg: rgba(22, 27, 34, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: #161b22;
    --card-hover: #21262d;
    --nav-height: 80px;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--heading-color);
    font-weight: 700;
}

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

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

.highlight {
    color: var(--accent-primary);
}

span {
    color: var(--accent-primary);
}

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

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

.section-title span {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section {
    padding: 6rem 0;
}

.bg-alt {
    background-color: rgba(22, 27, 34, 0.4);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.primary-btn {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(88, 166, 255, 0.4);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.6);
    color: #fff;
}

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

.secondary-btn:hover {
    background: rgba(88, 166, 255, 0.1);
    color: var(--accent-primary);
    transform: translateY(-3px);
}

/* Navigation - Glassmorphism */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

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

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--heading-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-primary);
    transition: width var(--transition-speed) ease;
}

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

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    z-index: 2000;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 2rem;
    overflow: hidden;
}

.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(88, 166, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(138, 43, 226, 0.08) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    width: 100%;
}

.hero h3 {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: linear-gradient(90deg, #ffffff, var(--text-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typing-text {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-weight: 400;
}

.intro {
    font-size: 1.1rem;
    color: #8b949e;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    font-size: 1.5rem;
    color: var(--accent-primary);
    opacity: 0.7;
}

.scroll-indicator a:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

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

.about-text p strong {
    color: var(--heading-color);
}

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

.profile-photo-container {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent-primary);
    box-shadow: 0 0 40px rgba(88, 166, 255, 0.3);
    z-index: 2;
    position: relative;
    background-color: var(--card-bg);
}

.orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(138, 43, 226, 0.3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.orbit-1 { width: 350px; height: 350px; animation: spin 10s linear infinite; }
.orbit-2 { width: 400px; height: 400px; animation: spin-reverse 15s linear infinite; border-color: rgba(88, 166, 255, 0.2); border-style: dashed; }
.orbit-3 { width: 450px; height: 450px; animation: spin 20s linear infinite; border-color: rgba(255, 255, 255, 0.1); }

@keyframes spin { 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spin-reverse { 100% { transform: translate(-50%, -50%) rotate(-360deg); } }

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

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-speed) ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    background: var(--card-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(88, 166, 255, 0.1);
    border-radius: 50%;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.skill-list {
    list-style: none;
    text-align: left;
}

.skill-list li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-list li i {
    color: var(--accent-secondary);
    width: 20px;
    text-align: center;
}

.skill-desc {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #8b949e;
    text-align: left;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

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

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(88, 166, 255, 0.15);
    border-color: rgba(88, 166, 255, 0.3);
}

.project-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.project-content p {
    color: #8b949e;
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.project-tags span {
    background: rgba(138, 43, 226, 0.1);
    color: var(--accent-secondary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-primary);
}

.project-link:hover {
    color: #fff;
}

/* Experience Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--glass-border);
}

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

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    left: -39px;
    top: 5px;
    border: 4px solid var(--bg-color);
    box-shadow: 0 0 10px var(--accent-primary);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.timeline-item h4 {
    font-size: 1rem;
    color: #8b949e;
    font-weight: 400;
    margin-bottom: 1rem;
}

.timeline-item ul {
    list-style: none;
}

.timeline-item ul li {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-item ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* Services */
.services-intro {
    font-size: 1.1rem;
    color: #8b949e;
    margin-bottom: 2rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    transition: all var(--transition-speed) ease;
}

.service-item:hover {
    transform: translateX(10px);
    border-color: var(--accent-primary);
    background: var(--card-hover);
}

.service-icon {
    font-size: 2rem;
    color: var(--accent-secondary);
    background: rgba(138, 43, 226, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.service-text h3 {
    font-size: 1.1rem;
}

/* Career Objective Section */
.objective-section {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.05) 0%, rgba(138, 43, 226, 0.05) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.objective-quote {
    font-size: 2.5rem;
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto 2rem auto;
    background: linear-gradient(90deg, #ffffff, var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.objective-text {
    font-size: 1.2rem;
    color: #8b949e;
    max-width: 800px;
    margin: 0 auto;
}

/* Footer Section */
footer {
    background-color: var(--card-bg);
    padding: 5rem 0 0 0;
    border-top: 1px solid var(--glass-border);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--glass-border);
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.footer-info span {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-info p {
    color: #8b949e;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: all var(--transition-speed);
    border: 1px solid transparent;
}

.social-icon:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(88, 166, 255, 0.3);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    color: #8b949e;
    font-size: 0.9rem;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
    .about-content {
        flex-direction: column-reverse; /* Text down, photo top */
        text-align: center;
        gap: 2rem;
    }
    .objective-quote {
        font-size: 2rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background: var(--card-bg);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.4s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.8);
        padding: 3rem 0;
        gap: 2rem;
    }

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

    .nav-links li a {
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 3rem;
    }
    
    .typing-text {
        font-size: 1.4rem;
        min-height: 2.5rem; /* Prevents jumping */
    }

    .hero h3 {
        font-size: 1.2rem;
    }

    .intro {
        font-size: 1rem;
    }
    
    .section {
        padding: 4rem 0;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    /* Responsive Profile Photo & Orbits */
    .profile-photo-container {
        width: 200px;
        height: 200px;
    }
    .orbit-1 { width: 230px; height: 230px; }
    .orbit-2 { width: 260px; height: 260px; }
    .orbit-3 { width: 290px; height: 290px; }
    
    .about-image {
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .typing-text {
        font-size: 1.1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

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

    .objective-quote {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    /* Hide outer orbits on very small screens to prevent overflow completely */
    .orbit-3, .orbit-2 {
        display: none;
    }
}
