:root {
    --primary: #4cc9f0;
    --secondary: #4361ee;
    --accent: #f72585;
    --dark-bg: #0b0c15;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background:
        radial-gradient(circle at 10% 20%, rgba(67, 97, 238, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(76, 201, 240, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background: rgba(11, 12, 21, 0.5);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.greeting {
    display: block;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-name {
    font-size: 3.5rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-role {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 25px;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: var(--dark-bg);
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(76, 201, 240, 0.1);
    transform: translateY(-3px);
}

/* Hero Visual Animation */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-card {
    background: rgba(23, 25, 40, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    width: 320px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.code-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 20px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
    z-index: -1;
    opacity: 0.3;
    filter: blur(20px);
}

.card-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.card-body code {
    font-family: 'Fira Code', monospace;
    color: #fff;
    font-size: 0.9rem;
    display: block;
    line-height: 1.6;
}

.keyword {
    color: #ff79c6;
}

.class-name {
    color: #f1fa8c;
}

.type {
    color: #8be9fd;
}

.string {
    color: #50fa7b;
}

.hero-avatar {
    width: 350px;
    height: 350px;
    max-width: 80vw;
    max-height: 80vw;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--glass-border);
    box-shadow: 0 0 30px rgba(76, 201, 240, 0.2);
    animation: float 6s ease-in-out infinite;
    transition: var(--transition);
}

.hero-avatar:hover {
    box-shadow: 0 0 50px rgba(76, 201, 240, 0.4);
    border-color: var(--primary);
}

@media (max-width: 600px) {
    .hero-avatar {
        width: 250px;
        height: 250px;
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Sections */
.section {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Glass Card Style */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 30px;
    transition: var(--transition);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.about-text {
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-text h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    margin-top: 20px;
}

.divider {
    border: 0;
    height: 1px;
    background: var(--glass-border);
    margin: 20px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.service-card {
    text-align: center;
    padding: 20px;
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}


/* Education & Certs */
.education-cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .education-cert-grid {
        grid-template-columns: 1fr;
    }
}

.education-card h3,
.cert-card h3 {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.education-details,
.cert-details {
    margin-top: 15px;
}

.education-details h4,
.cert-details h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.education-details p,
.cert-details p {
    color: var(--text-secondary);
}

.highlight-text {
    color: var(--secondary);
    font-weight: 500;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--primary);
}

.skill-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-list li:last-child {
    border-bottom: none;
}

.skill-list i {
    color: var(--secondary);
    width: 20px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Project Gallery */
.project-gallery {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 15px 5px;
    margin-bottom: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.project-gallery::-webkit-scrollbar {
    height: 6px;
}

.project-gallery::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.project-gallery::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.project-gallery img {
    height: 200px;
    /* Good height for mobile screenshots */
    width: auto;
    /* Maintain aspect ratio */
    border-radius: 10px;
    scroll-snap-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    flex-shrink: 0;
}

.project-gallery img:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    z-index: 10;
}

/* Responsive adjustments for gallery */
@media (max-width: 600px) {
    .project-gallery img {
        height: 160px;
    }
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.project-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tags span {
    font-size: 0.8rem;
    background: rgba(67, 97, 238, 0.1);
    color: var(--secondary);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(67, 97, 238, 0.2);
}

.btn-link {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-link:hover {
    color: var(--primary);
}

/* Experience Section */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    margin-left: 50px;
    position: relative;
    padding: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 30px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--dark-bg);
}

.timeline-date {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.timeline-content h3 {
    margin-bottom: 15px;
}

.timeline-content ul {
    list-style-type: disc;
    margin-left: 20px;
    color: var(--text-secondary);
}

.timeline-content li {
    margin-bottom: 8px;
}

/* Contact Section */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 50px;
    height: 50px;
    background: rgba(76, 201, 240, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.contact-item a {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.contact-item a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    padding: 30px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--dark-bg);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        border-bottom: 1px solid var(--glass-border);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
        overflow-y: auto;
        max-height: 80vh;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu .btn {
        margin: 15px auto;
        display: inline-block;
    }


    .nav-link {
        display: block;
        padding: 15px;
        width: 100%;
        text-align: center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 50px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-name {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        margin-left: 30px;
        padding: 20px;
    }

    .timeline-item::before {
        left: -29px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }
}