﻿:root {
    /* Dark Theme (Default) */
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --secondary: #6366f1;
    --accent: #10b981;
    --bg-body: #020617;
    --bg-card: #0f172a;
    --bg-card-hover: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(2, 6, 23, 0.8);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
}

body.light-theme {
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #475569;
    --nav-text: #0f172a;
    --glass: rgba(0, 0, 0, 0.02);
    --glass-border: rgba(0, 0, 0, 0.05);
    --nav-bg: rgba(248, 250, 252, 0.8);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 80px 0;
}

.bg-light-dark {
    background-color: var(--bg-card);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: var(--glass);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

#navbar.scrolled {
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--glass-border);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text img {
    height: 32px;
}

.logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.menu-toggle {
    display: none;
}

.nav-links li a {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--text-main);
}

.btn-hire-me {
    padding: 0.7rem 1.6rem !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #3b82f6, #6366f1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 120px;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border: none !important;
}

.btn-hire-me:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6) !important;
    filter: brightness(1.1);
}

#theme-toggle {
    background: var(--bg-card-hover);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-left: 1rem;
}

#theme-toggle:hover {
    transform: scale(1.1);
    color: var(--primary);
}

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 140px;
    padding-bottom: 60px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    position: relative;
}

.main-viz {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    overflow-x: hidden;
}

.viz-header {
    display: flex;
    gap: 6px;
    margin-bottom: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.viz-content {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.code-line {
    margin-bottom: 4px;
}

.indent {
    padding-left: 20px;
}

.indent-2 {
    padding-left: 40px;
}

.purple {
    color: #c678dd;
}

.blue {
    color: #61afef;
}

.yellow {
    color: #e5c07b;
}

.green {
    color: #98c379;
}

.orange {
    color: #d19a66;
}

.floating-badge {
    position: absolute;
    background: var(--bg-card-hover);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    animation: float 4s ease-in-out infinite;
}

.badge-1 {
    top: -20px;
    right: -20px;
}

.badge-2 {
    bottom: -20px;
    left: -20px;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    filter: grayscale(20%);
    transition: var(--transition);
}

.image-wrapper:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.experience-badge .num {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.about-btns {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-body);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
    transition: var(--transition);
}

.skill-card i.fa-flutter {
    color: #02569B;
    /* Official Flutter Blue */
}

.skill-card i.fa-react {
    color: #61DAFB;
    /* Official React Blue */
}

.skill-card i.fa-js {
    color: #F7DF1E;
    /* Official JS Yellow */
}

.skill-card i.fa-node-js {
    color: #339933;
    /* Official Node Green */
}

.flutter-logo-skill {
    width: 40px;
    height: 40px;
    margin: 0 auto 1.5rem;
    display: block;
    transition: var(--transition);
}

.flutter-logo-hero {
    width: 24px;
    height: 24px;
    margin-right: 4px;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

/* Portfolio Section */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.subtitle {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.section-header h2 {
    font-size: 3rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.portfolio-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.project-img {
    height: 250px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tags li {
    background: var(--bg-card-hover);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}

.btn-link {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-link:hover {
    gap: 12px;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

/* Team */
#team {
    padding-top: 20px;
    margin-top: -60px;
    /* Pull it closer to the hero */
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    justify-content: center;
}

.team-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.member-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid var(--primary);
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info h3 {
    margin-bottom: 0.5rem;
}

.member-info .role {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-body);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.2;
    margin-bottom: 1.5rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.client {
    display: flex;
    flex-direction: column;
}

.client strong {
    color: var(--primary);
}

.client span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Insights / Updates */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.insight-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.insight-card h3 {
    margin-bottom: 1rem;
}

.insight-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.insight-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.contact-info h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
}

.info-item i {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.info-item span {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-item a {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.info-item a:hover {
    color: var(--primary);
}

.contact-form-container {
    background: var(--bg-card);
    padding: 3.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-body);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 2;
}

.footer-bottom a {
    display: inline-block;
    padding: 5px 10px;
    margin: 2px 0;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--primary-hover);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 1;
    animation: fadeInAnim 1s ease-out;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInAnim {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .hero .container,
    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-btns,
    .about-btns {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .nav-links {
        position: fixed;
        right: -70%;
        top: 0;
        height: 100vh;
        width: 70%;
        background: var(--bg-body);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1001;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        padding: 4rem 2rem;
        gap: 2rem;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 1002;
    }

    .menu-toggle .bar {
        width: 25px;
        height: 3px;
        background: var(--text-main);
        margin: 5px;
        transition: 0.3s;
    }

    .contact-form-container {
        padding: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
    }
}

.no-scroll {
    overflow: hidden;
}

/* Article Page Overrides for Mobile */
@media (max-width: 768px) {
    body .article-container {
        padding: 1.5rem !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }

    body .article-container h1 {
        font-size: 1.8rem !important;
    }

    body .article-container h2 {
        font-size: 1.5rem !important;
    }

    body .article-container p {
        font-size: 1rem !important;
    }

    body.dark-theme,
    body.light-theme {
        padding-top: 100px !important;
    }
}