/**
 * Main stylesheet
 * Implements a responsive dark-mode SaaS theme 
 * prioritizing glassmorphism and smooth interactions.
 */

:root {
    /* Clean Color Palette */
    --bg-main: #0f172a;
    /* Deep Slate 900 */
    --bg-card: #1e293b;
    /* Lighter Slate 800 */
    --bg-card-hover: #334155;
    /* Slate 700 */

    --primary: #3b82f6;
    /* Vivid Blue */
    --primary-light: #60a5fa;
    --primary-dim: rgba(59, 130, 246, 0.15);

    --accent: #10b981;
    /* Emerald */

    --text-bright: #f8fafc;
    /* White/slate-50 */
    --text-normal: #cbd5e1;
    /* Slate-300 */
    --text-muted: #94a3b8;
    /* Slate-400 */

    --border: rgba(255, 255, 255, 0.08);

    --font-sans: 'Inter', system-ui, sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-md: 8px;
    --radius-lg: 12px;
}

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

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

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

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

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--text-bright);
    font-weight: 600;
    line-height: 1.2;
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 80px 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary-dim);
}

.btn-primary-sm {
    background-color: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.btn-primary-sm:hover {
    background-color: var(--primary-light);
}

/* Section Headings */
.section-heading {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
}

.section-heading h2 {
    font-size: 1.8rem;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.heading-num {
    color: var(--primary);
    font-size: 1.2rem;
    font-family: monospace;
}

.heading-line {
    flex-grow: 1;
    height: 1px;
    background-color: var(--border);
    max-width: 300px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border);
    transition: height 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-bright);
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-normal);
}

.nav-link:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    font-size: 2rem;
    color: var(--text-bright);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    align-items: center;
}

.hero-greeting {
    color: var(--primary);
    font-family: monospace;
    font-size: 1rem;
    margin-bottom: 20px;
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 10px;
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--text-muted);
    margin-bottom: 25px;
}

.hero-desc {
    max-width: 550px;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-graphic {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 400px;
    margin: 0 auto;
}

.shape {
    position: absolute;
    border-radius: var(--radius-lg);
}

.shape-1 {
    top: 10%;
    right: 10%;
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    bottom: 10%;
    left: 10%;
    width: 50%;
    height: 50%;
    border: 2px solid var(--primary);
    animation: float 5s ease-in-out infinite reverse;
}

.shape-3 {
    top: 40%;
    right: 20%;
    width: 40%;
    height: 40%;
    border: 2px solid var(--accent);
    animation: float 7s ease-in-out infinite 1s;
}

.shape-glass {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 6rem;
    color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: auto;
    gap: 40px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

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

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.highlight-card {
    background-color: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.highlight-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

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

.skill-category {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.skill-icon i {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.skill-category h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tags span {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-bright);
    background-color: var(--primary-dim);
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 30px;
    border-left: 2px solid var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

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

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

.timeline-date {
    display: block;
    font-family: monospace;
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.timeline-title {
    font-size: 1.4rem;
    color: var(--text-bright);
    margin-bottom: 5px;
}

.timeline-company {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 15px;
}

.timeline-link {
    color: var(--text-bright);
    font-weight: 600;
    transition: color 0.3s ease;
}

.timeline-link:hover {
    color: var(--primary);
}

.timeline-link i,
.timeline-project-link i {
    font-size: 0.85em;
    opacity: 0.7;
    margin-left: 4px;
}

.timeline-project {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-normal);
}

.timeline-project-link {
    color: var(--primary);
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.timeline-project-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.timeline-bullets {
    padding-left: 15px;
}

.timeline-bullets li {
    position: relative;
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-normal);
    list-style: none;
    padding-left: 25px;
}

.timeline-bullets li::before {
    content: '\eb7a';
    /* Boxicons Check mark */
    font-family: 'boxicons';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.2rem;
}

/* Projects */
.projects-subtitle {
    margin-bottom: 40px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-light);
}

.project-image {
    width: 100%;
    height: 220px;
    background-color: var(--bg-darker);
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-card-hover), var(--bg-card));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--primary);
}

.project-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-desc {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.project-tech span {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--primary);
    background-color: var(--primary-dim);
    padding: 5px 10px;
    border-radius: 4px;
}

.project-links {
    display: flex;
    gap: 15px;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.project-links a {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-links a:hover {
    color: var(--primary);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 35px 30px;
    text-align: left;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-light);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.service-icon {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 14px;
    transition: all 0.5s ease;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

.service-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--text-bright);
}

.service-desc {
    color: var(--text-normal);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.service-tags span {
    font-size: 0.75rem;
    font-family: monospace;
    padding: 5px 12px;
    background: var(--primary-dim);
    color: var(--primary-light);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Education & Certs */
.edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.edu-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.edu-column .glass-panel {
    height: auto;
    flex: 1;
}

.glass-panel {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 40px;
    height: 100%;
}

.edu-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.edu-header i {
    font-size: 2.5rem;
    color: var(--accent);
}

.edu-header h3 {
    font-size: 1.4rem;
}

.edu-body h4 {
    font-size: 1.15rem;
    margin-bottom: 5px;
    color: var(--text-bright);
}

.edu-date {
    font-family: monospace;
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.edu-desc {
    color: var(--text-normal);
    font-size: 0.95rem;
}

.cert-list {
    list-style: none;
}

.cert-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-normal);
}

.cert-list li i.bx-check {
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary);
    font-size: 1.2rem;
}

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    transition: color 0.3s ease;
}

.cert-link:hover {
    color: var(--primary);
}

.cert-link i.bx-link-external {
    font-size: 0.85em;
    opacity: 0.7;
}

/* Contact Grid & Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info-panel .pre-title {
    color: var(--primary);
    font-family: monospace;
    margin-bottom: 10px;
}

.contact-info-panel .contact-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info-panel .contact-desc {
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    color: var(--text-bright);
}

.contact-item i {
    font-size: 1.4rem;
    color: var(--primary);
}

.contact-form-panel {
    padding: 35px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-bright);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-bright);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-dim);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.w-100 {
    width: 100%;
    justify-content: center;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.8;
}

/* Footer */
footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 50px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Intersection Observer Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.zoom-in {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.zoom-in.visible {
    opacity: 1;
    transform: scale(1);
}

.delay-1 {
    transition-delay: 0.1s;
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.25s;
}

.stagger-3 {
    transition-delay: 0.4s;
}

/* Responsive adjustments */
@media screen and (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-greeting {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-graphic {
        margin-top: 40px;
        display: none;
    }

    .edu-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 80px;
        left: -100%;
        width: 100%;
        background-color: var(--bg-card);
        flex-direction: column;
        padding: 40px 0;
        gap: 20px;
        transition: 0.3s;
        border-bottom: 1px solid var(--border);
    }

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

    .nav-cta {
        margin-top: 10px;
    }

    .section-heading h2 {
        font-size: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-panel {
        padding: 25px;
    }
}