:root {
    --bg-color: #0f1115;
    --text-color: #e2e8f0;
    --primary: #ff512f;
    --secondary: #dd2476;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --hover-bg: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Animated Blobs */
.blob-bg {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    z-index: -1;
    animation: float 15s ease-in-out infinite;
}

.blob-2 {
    top: 50%;
    left: 70%;
    background: linear-gradient(to right, #11998e, #38ef7d);
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 100px) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Typography elements */
span {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: var(--transition);
}

.nav-link:not(.btn-primary):hover {
    color: var(--primary);
}

.nav-link:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: var(--transition);
}

.nav-link:not(.btn-primary):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Base Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 81, 47, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 81, 47, 0.5);
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 81, 47, 0.1);
    transform: translateY(-3px);
}

/* Main Layout Setup */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
}

.hero-content {
    flex: 1;
}

.greeting {
    font-size: 1.2rem;
    color: #a0aec0;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.name {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.title {
    font-size: 1.8rem;
    font-weight: 400;
    color: #cbd5e0;
    margin-bottom: 2rem;
}

.contact-info {
    margin-bottom: 2.5rem;
    color: #a0aec0;
}

.contact-info i {
    width: 20px;
    color: var(--primary);
    margin-right: 10px;
    margin-bottom: 12px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.image-border {
    position: relative;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    padding: 5px;
    animation: morph 8s ease-in-out infinite;
    box-shadow: 0 20px 50px rgba(255, 81, 47, 0.2);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* About Section */
.summary-card {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

/* Timeline/Experience */
.subsection-title {
    font-size: 1.8rem;
    margin: 4rem 0 2rem;
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    border: 4px solid var(--bg-color);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.company {
    color: #a0aec0;
    margin-bottom: 1rem;
    font-weight: 400;
}

.duties {
    padding-left: 1.2rem;
    color: #e2e8f0;
}

.duties li {
    margin-bottom: 0.5rem;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    width: 60px;
    height: 60px;
    background: rgba(255, 81, 47, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.project-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.project-role {
    color: #a0aec0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: #cbd5e0;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.tag:hover {
    background: rgba(255, 81, 47, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Education & Certifications */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.education h3, .certifications h3 {
    margin-bottom: 1.5rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.education h3 i, .certifications h3 i {
    color: var(--primary);
}

.edu-item {
    margin-bottom: 1.5rem;
}

.edu-item h4 {
    font-size: 1.1rem;
}

.edu-item p {
    color: #a0aec0;
    font-size: 0.95rem;
}

.edu-item .year {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.cert-list {
    list-style: none;
    padding: 0;
}

.cert-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cert-list li:last-child {
    border: none;
}

.cert-list li span {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    color: var(--secondary);
    -webkit-text-fill-color: initial;
}

/* Contact CTA */
.contact-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(255, 81, 47, 0.1), rgba(221, 36, 118, 0.1));
    border: 1px solid rgba(255, 81, 47, 0.3);
}

.contact-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-cta p {
    color: #a0aec0;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Footer */
footer {
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Scroll Animations */
.appear {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.appear.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        margin-top: 2rem;
    }
    
    .contact-info {
        display: inline-block;
        text-align: left;
    }

    .hero-actions {
        justify-content: center;
    }

    .image-border {
        width: 300px;
        height: 300px;
    }
    
    .two-col-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: rgba(15, 17, 21, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: 0.5s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .name {
        font-size: 3rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .timeline-header {
        flex-direction: column;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-dot {
        left: 1px;
    }
    
    .timeline-item {
        padding-left: 40px;
    }

    .contact-links {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .image-border {
        width: 250px;
        height: 250px;
    }
    .name {
        font-size: 2.5rem;
    }
    .section {
        padding: 4rem 0 2rem;
    }
}
