/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --accent-color: #fbbc04;
    --dark-color: #202124;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #5f6368;
    --card-bg: #ffffff;
    --section-bg: #f5f7fa;
    --cursor-inner: #1a73e8;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

[data-theme="dark"] {
    --dark-color: #f8f9fa;
    --light-color: #121212;
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --card-bg: #1e1e1e;
    --section-bg: #121212;
    --header-bg: rgba(18, 18, 18, 0.95);
    --border-color: #333;
    --glass-bg: rgba(30, 30, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #0d62d0;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

.btn-install {
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 30px rgba(26, 115, 232, 0.18);
    position: relative;
    overflow: hidden;
}

.btn-install::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 160%;
    height: 180%;
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(25deg);
    transition: transform 0.6s ease;
}

.btn-install:hover::before {
    transform: translateX(30px) rotate(25deg);
}

.btn-install:hover {
    background: linear-gradient(135deg, #1661d5, #2b76ee);
    transform: translateY(-3px);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

header.scrolled {
    background: var(--glass-bg);
    padding: 10px 0;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
}

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

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 120px 0 60px;
    background: linear-gradient(rgba(26, 115, 232, 0.5), rgba(13, 71, 161, 0.3)), url('f3ccd92990d803ddeec783b359197d67.jpg');
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('41d9b2bbc02b76694239d55688a30468.jpg');
    opacity: 0.1;
    top: 0;
    left: 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

.hero-content .btn {
    animation: fadeIn 1.5s ease;
    font-weight: bold;
}

.hero-image {
    position: relative;
    flex: 0 0 min(42%, 480px);
    max-width: 480px;
    aspect-ratio: 1 / 1.05;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
}

/* About Section */
.about {
    background: var(--section-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content .about-text h2 span {
    color: #840769;
}

.about-content .about-text h2 {
    font-size: 1.2rem;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.skills {
    margin-top: 30px;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skill-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 1s ease;
}

.about-image {
    text-align: center;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

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

.service-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: #840769;
    font-weight: bold;
}

/* Portfolio Section */
.portfolio {
    background: var(--section-bg);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    margin: 0 5px 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

.portfolio-item {
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
}

.portfolio-image {
    height: 200px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-content {
    padding: 20px;
}

.portfolio-content h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.portfolio-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.portfolio-tag {
    background: #e8f0fe;
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
}

.timeline-progress-line {
    position: absolute;
    left: 20px;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(26, 115, 232, 0.1);
    z-index: 1;
}

.timeline-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    transition: height 0.1s linear;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding-right: 30px;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 30px;
}

.timeline-content {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid var(--card-bg);
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: auto;
    left: -10px;
    border-left: none;
    border-right: 10px solid var(--card-bg);
}

.timeline-date {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.timeline-content h3 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.timeline-content h4 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 500;
}

.timeline-marker {
    position: absolute;
    top: 0;
    right: -6px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
}

.timeline-item:nth-child(even) .timeline-marker {
    right: auto;
    left: -6px;
}

/* Contact Section */
.contact {
    background: var(--section-bg);
    color: var(--text-color);
}

.contact .section-title h2 {
    color: var(--dark-color);
}

.contact .section-title p {
    color: var(--text-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-detail i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.social-links {
    display: flex;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 30px 0;
}

.footer-content p {
    margin-bottom: 10px;
}

.footer-content p span a {
    color: #fbbc04;
    font-weight: bold;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

/* Responsive Styles */
@media (max-width: 992px) {

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-right: 0;
        padding-left: 70px;
    }

    .timeline-item:nth-child(even) {
        margin-left: 0;
        padding-left: 70px;
    }

    .timeline-content::before {
        display: none;
    }

    .timeline-marker {
        left: 24px;
        right: auto;
    }
}

/* Hiring Badge */
.hiring-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(52, 168, 83, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(52, 168, 83, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hero-badge {
    margin-bottom: 25px;
    animation: fadeInUp 1s ease;
}

.hiring-badge span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.pulse {
    width: 10px;
    height: 10px;
    background: var(--secondary-color);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 0 rgba(52, 168, 83, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(52, 168, 83, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(52, 168, 83, 0);
    }
}

/* CV Button */
.cv-btn {
    margin-left: 15px;
    position: relative;
    overflow: hidden;
}

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

/* Section Spacing Fix */
.section {
    padding: 100px 0;
}

/* Stats Section */
.stats {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 80px 0;
    margin: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 40px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Testimonials */
.testimonials {
    background: var(--section-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    position: relative;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.15;
    margin-bottom: 25px;
}

.testi-author {
    margin-top: 25px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.testi-author h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* FAQ Accordion */
.faq {
    background: var(--light-color);
}

.faq-accordion {
    max-width: 850px;
    margin: 50px auto 0;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question:hover {
    background: rgba(26, 115, 232, 0.03);
}

.faq-question h3 {
    font-size: 1.15rem;
    margin: 0;
    font-weight: 600;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(26, 115, 232, 0.1);
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px;
    max-height: 300px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 6px;
    border: 3px solid var(--light-color);
}

::-webkit-scrollbar-thumb:hover {
    background: #0d62d0;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

/* Specific Mobile Fix for Buttons (400px - 450px) */
@media (max-width: 450px) and (min-width: 320px) {
    .hero-btns {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }

    .hero-btns .btn {
        padding: 10px 12px;
        font-size: 0.75rem;
        flex: 1;
        min-width: calc(33.33% - 8px);
        white-space: nowrap;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        text-align: center;
    }

    .hero-btns .btn i {
        margin-right: 0;
        font-size: 1rem;
    }
}

/* Scramble Effect */
.scramble-char {
    color: var(--primary-color);
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    opacity: 0.7;
}

/* Updated Skill Bar Styles for Animation */
.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--primary-color);
    width: 0;
    /* Initial state for animation */
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary-color);
    transition: width 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 800px) {
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--card-bg);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
        border-top: 1px solid var(--glass-border);
    }

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

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
        color: #840769;
    }

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

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }
}

/* PWA Section Styles */
.pwa-showcase {
    background: var(--section-bg);
}

.pwa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pwa-card {
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pwa-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

.pwa-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 1.2rem;
}

.pwa-status {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.status-private {
    background: #fee2e2;
    color: #dc2626;
}

.status-demo {
    background: #dcfce7;
    color: #16a34a;
}

.pwa-screenshot {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 15px;
    border: 1px solid #f0f0f0;
}



.pwa-info h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.pwa-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pwa-tech {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
}

.pwa-btn {
    width: 100%;
    text-align: center;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Fade-in Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Enhanced Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 11000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    width: 90%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal .close {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 35px;
    color: var(--text-color);
    cursor: pointer;
    transition: 0.3s;
    z-index: 2;
}

.modal-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-img-container {
    width: 100%;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.main-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
}

.thumbnails img:hover,
.thumbnails img.active {
    border-color: var(--primary-color);
}

.modal-info h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.modal-description {
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
    color: var(--text-color);
}

.modal-tech-stack h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tech-chip {
    padding: 8px 15px;
    background: rgba(26, 115, 232, 0.1);
    border: 1px solid rgba(26, 115, 232, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 10% auto;
        padding: 25px;
    }

    .main-img-container {
        height: 250px;
    }
}

/* --- New Modern Features Styles --- */

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary-color);
    z-index: 2001;
    transition: width 0.1s ease;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    transition: transform 0.1s ease-out, opacity 0.3s ease;
    opacity: 0;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--cursor-inner);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--cursor-outer);
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

#back-to-top:hover {
    transform: translateY(-5px);
    background: #0d62d0;
}

#back-to-top.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

/* Dark Mode Toggle */
.theme-switch {
    margin-left: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    background: var(--light-color);
    color: var(--dark-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-switch:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Language Switcher */
.lang-switch {
    margin-left: 15px;
    display: flex;
    gap: 5px;
    background: var(--glass-bg);
    padding: 5px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.lang-btn {
    padding: 2px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 15px;
    transition: all 0.3s ease;
    opacity: 0.5;
    color: var(--text-color);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    opacity: 1;
}

[data-theme="dark"] .theme-switch {
    background: #2a2a2a;
    border-color: #444;
}

/* Hero Particles Canvas */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Typing Effect Cursor */
.typing-cursor {
    display: inline-block;
    width: 3px;
    background-color: white;
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Hide default cursor on desktop when custom cursor is active */
@media (min-width: 992px) {

    /* Optional: uncomment if you want the custom cursor to be primary */
    /* body, a, button { cursor: none !important; } */
    .cursor-dot,
    .cursor-outline {
        opacity: 1;
    }
}

/* Hide custom cursor on mobile/tablet */
@media (max-width: 991px) {

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}

/* Splash Screen Styles */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.95)),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    color: white;
    text-align: center;
    transition: all 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    overflow: hidden;
}

#splash-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.splash-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px 40px;
    border-radius: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.splash-logo-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    position: relative;
}

.tech-logo {
    position: relative;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: var(--primary-color);
    box-shadow: 0 0 30px rgba(26, 115, 232, 0.2);
    animation: techFloat 4s ease-in-out infinite;
}

.logo-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    animation: logoPulse 2s linear infinite;
    opacity: 0;
}

.logo-scanner {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    box-shadow: 0 0 15px var(--primary-color);
    animation: logoScan 3s ease-in-out infinite;
}

@keyframes techFloat {

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

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

@keyframes logoPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes logoScan {

    0%,
    100% {
        top: -10%;
        opacity: 0;
    }

    10%,
    90% {
        opacity: 1;
    }

    50% {
        top: 110%;
    }
}

#splash-screen h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
    background: linear-gradient(to right, #fff, #1a73e8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#splash-screen p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

/* Loading Bar */
.loading-container {
    width: 100%;
    margin-top: 20px;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.loading-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

#loading-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
    transition: width 0.3s ease;
}

.loading-status {
    font-size: 0.85rem !important;
    opacity: 0.6 !important;
    font-style: italic;
    margin-bottom: 0 !important;
}

#get-started-btn {
    padding: 15px 45px;
    font-size: 1.1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(26, 115, 232, 0.3);
    margin-top: 20px;
}

#get-started-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(26, 115, 232, 0.4);
}

#install-app-btn {
    padding: 15px 35px;
    font-size: 1rem;
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    border: none;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 10px 20px rgba(26, 115, 232, 0.22);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
}

#install-app-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(26, 115, 232, 0.32);
    background: linear-gradient(135deg, #1661d5, #2b76ee);
}

#install-app-btn i {
    font-size: 1rem;
}

#install-app-btn.install-disabled {
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

#install-app-btn:disabled {
    background: linear-gradient(135deg, #8ab4f8, #a3c2ff);
    color: rgba(255,255,255,0.8);
}

.splash-btns {
    display: none;
    margin-top: 25px;
    gap: 15px;
    justify-content: center;
}

@media (max-width: 480px) {
    .splash-btns {
        flex-direction: column;
        align-items: center;
    }

    .splash-btns .btn {
        width: 100%;
    }
}

.no-scroll {
    overflow: hidden !important;
}

#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

/* --- Enhanced Splash Features --- */

/* Glassmorphism Upgrade */
.splash-card {
    background: rgba(10, 25, 47, 0.4);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Orbit Animations */
.logo-orbit {
    position: absolute;
    border: 1px solid rgba(26, 115, 232, 0.3);
    border-radius: 50%;
    z-index: -1;
}

.orbit-1 {
    width: 160px;
    height: 160px;
    animation: rotateOrbit 10s linear infinite;
    border-top: 2px solid var(--primary-color);
}

.orbit-2 {
    width: 200px;
    height: 200px;
    animation: rotateOrbit 15s linear infinite reverse;
    border-bottom: 2px solid var(--primary-color);
    opacity: 0.5;
}

.orbit-3 {
    width: 240px;
    height: 240px;
    animation: rotateOrbit 20s linear infinite;
    border-left: 2px solid var(--primary-color);
    opacity: 0.3;
}

@keyframes rotateOrbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Neon Glow Upgrade */
.tech-logo {
    box-shadow: 0 0 40px rgba(26, 115, 232, 0.4),
        inset 0 0 20px rgba(26, 115, 232, 0.2);
    border-color: rgba(26, 115, 232, 0.8);
    background: rgba(26, 115, 232, 0.05);
}

.tech-logo i {
    filter: drop-shadow(0 0 10px var(--primary-color));
}

/* Dynamic Message Animation */
.loading-status {
    position: relative;
    overflow: hidden;
}

.loading-status::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    top: 0;
    left: -100%;
    animation: statusSweep 2s infinite;
}

@keyframes statusSweep {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

/* Text Shimmer/Glitch for Greeting */
#dynamic-greeting {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    animation: textShimmer 3s infinite;
}

@keyframes textShimmer {

    0%,
    100% {
        opacity: 1;
        filter: brightness(1);
    }

    50% {
        opacity: 0.9;
        filter: brightness(1.2);
    }
}

/* --- Advanced Visual Enhancements --- */

/* Animation Keyframes */
@keyframes floating {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.4);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(26, 115, 232, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0);
    }
}

@keyframes icon-spin {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

/* Global Transitions */
.service-card,
.portfolio-item,
.pwa-card,
.timeline-content,
.btn,
.nav-links a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card Hover Enhancements */
.service-card:hover,
.portfolio-item:hover,
.pwa-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card:hover .service-icon i,
.pwa-card:hover .pwa-icon i {
    animation: icon-spin 1s ease-in-out;
    color: var(--accent-color);
}

/* Navigation Icons */
.nav-links a i {
    margin-right: 8px;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.nav-links a:hover i {
    transform: translateY(-2px);
}

.logo i {
    margin-right: 12px;
    color: var(--primary-color);
    animation: floating 4s ease-in-out infinite;
}

/* Button & Decorative Elements */
.btn i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(3px);
}

.hero-image {
    animation: floating 5s ease-in-out infinite;
}

/* --- Contact Button Enhancement --- */
.btn-contact {
    position: relative;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color), #0d47a1);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(26, 115, 232, 0.3);
    width: 100%;
}

.btn-contact span {
    position: relative;
    z-index: 1;
}

.btn-contact i {
    font-size: 1.2rem;
    transition: transform 0.4s ease;
}

.btn-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-contact:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(26, 115, 232, 0.5);
    background: linear-gradient(135deg, #0d47a1, var(--primary-color));
}

.btn-contact:hover i {
    transform: translateX(5px) translateY(-5px) rotate(-15deg);
    color: var(--accent-color);
}

.btn-contact:hover::before {
    left: 100%;
}

.btn-contact:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.3);
}

/* Dark Mode Adjustment */
[data-theme='dark'] .btn-contact {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

[data-theme='dark'] .service-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* --- New Features --- */
.testimonials-slider-container {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.testimonials-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
}

.testimonials-track .testimonial-card {
    min-width: 100%;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0;
    border-radius: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(26, 115, 232, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 10px;
}

.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(10deg);
}

.whatsapp-ping {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: whatsappPing 2s infinite;
}

@keyframes whatsappPing {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

* {
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}