/* CSS Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #05060a;
    --card-bg: rgba(18, 22, 38, 0.7);
    --card-border: rgba(59, 130, 246, 0.2);
    --card-border-hover: rgba(59, 130, 246, 0.6);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.4);
    --secondary: #8b5cf6;
    --secondary-glow: rgba(139, 92, 246, 0.4);
    --accent: #00f0ff;
    
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #00f0ff 100%);
    --gradient-card: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

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

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.w-100 {
    width: 100%;
}

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

ul {
    list-style: none;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--card-border-hover);
    box-shadow: 0 12px 40px 0 rgba(59, 130, 246, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.primary-btn {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.btn-sm {
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 2px 10px var(--primary-glow);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.6);
}

/* Section Header */
.section {
    padding: 7rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 6, 10, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
}

.logo {
    font-size: 1.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-icon {
    color: var(--primary);
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95srem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: #fff;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--primary);
}

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

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-btns {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.hero-highlights {
    display: flex;
    gap: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.highlight-item i {
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-item .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.highlight-item .value {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Hero Image 3D Card */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-3d-scene {
    position: relative;
    width: 380px;
    height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-3d-card {
    position: relative;
    width: 320px;
    height: 400px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border-radius: 24px;
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(59, 130, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}

.profile-img-container {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.profile-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: contrast(1.05) brightness(1.02);
}

.orbit-badge {
    position: absolute;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.5);
    padding: 0.7rem 1.2rem;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(59, 130, 246, 0.3);
    animation: floatOrbit 4s ease-in-out infinite;
    z-index: 10;
}

.orbit-badge i {
    font-size: 1.1rem;
    color: var(--accent);
}

.badge-top-right {
    top: 20px;
    right: -25px;
    animation-delay: 0s;
}

.badge-bottom-left {
    bottom: 30px;
    left: -35px;
    animation-delay: 2s;
}

@keyframes floatOrbit {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.hero-floating-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.pill-item {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 30px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.pill-item i {
    color: var(--primary);
}

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

.scroll-down a {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

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

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.about-card {
    padding: 3rem;
}

.about-card h3 {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}

.about-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.personal-details {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.detail-row span:first-child {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.detail-row span:first-child i {
    color: var(--primary);
}

.detail-row a:hover {
    color: var(--primary);
}

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

.stat-card {
    padding: 2rem;
    text-align: center;
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    display: inline-block;
}

.stat-suffix {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent);
    display: inline-block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

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

.skill-category-card {
    padding: 2.5rem;
}

.cat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    width: 65px;
    height: 65px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-category-card h3 {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.skill-chips span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.skill-chips span:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

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

.timeline-date {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
}

.timeline-content {
    padding: 2.5rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin-bottom: 0.4rem;
}

.company-name {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.company-name i {
    color: var(--primary);
}

.job-desc {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.job-tasks {
    list-style: disc;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.job-tasks li {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-img-holder {
    height: 120px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--card-border);
}

.project-icon-badge {
    font-size: 2.5rem;
    color: var(--primary);
    background: rgba(59, 130, 246, 0.15);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--primary-glow);
}

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

.project-content h3 {
    font-size: 1.35rem;
    font-family: var(--font-heading);
    margin-bottom: 0.8rem;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags span {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
}

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

.cert-card {
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cert-icon {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.cert-card h3 {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin-bottom: 0.3rem;
}

.cert-card h4 {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 500;
}

.cert-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.cert-badge-tag {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #c084fc;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    gap: 3rem;
}

.contact-info {
    padding: 3rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.contact-detail-item .icon-box {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-detail-item .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.contact-detail-item a,
.contact-detail-item span:not(.label) {
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-detail-item a:hover {
    color: var(--primary);
}

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

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.contact-form-wrapper {
    padding: 3rem;
}

.contact-form-wrapper h3 {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Footer */
footer {
    background: #030407;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 0;
}

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

.footer-logo span {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.footer-logo p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-image-wrapper {
        margin-top: 2rem;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: rgba(5, 6, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
    }

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

    .hamburger {
        display: flex;
    }

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

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

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

    .hero-btns {
        flex-direction: column;
    }

    .hero-highlights {
        flex-direction: column;
        gap: 1.2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}
