/*border visibility*/
* {
    outline: 1px solid rgba(255, 0, 0, 0);
}

/*brand color variables - sophisticated dark*/
:root {
    --primary: #3b82f6;
    --primary-rgb: 59, 130, 246;
    --secondary: #1e40af;
    --secondary-rgb: 30, 64, 175;
    --accent: #10b981;
    --accent-rgb: 16, 185, 129;
    --dark: #111827;
    --light: #f9fafb;
    --text: #1f2937;
}

/* Page wrapper with padding */
body {
    overflow-x: hidden;
}

main {
    padding: 0 15px;
}

@media (min-width: 576px) {
    main {
        padding: 0 20px;
    }
}

@media (min-width: 768px) {
    main {
        padding: 0;
    }
}


/*base mobile first*/
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 4rem 0 2rem 0;
    margin-top: 56px;
}

.hero .container {
    width: 100%;
}

.hero .row {
    align-items: center;
}

@media (min-width: 768px) {
    .hero {
        min-height: 100vh;
        max-height: 100vh;
        padding: 0;
        overflow: hidden;
    }
    
    .hero .container {
        height: 100%;
    }
    
    .hero .row {
        height: 100%;
    }
}

/* Hero Skills Tags */
.hero-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.skill-tag {
    padding: 8px 16px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(var(--primary-rgb), 0.15);
    transform: translateY(-2px);
}

/*hero row*/
.hero-content {
    text-align: center;
}

.hero h1 {
    color: var(--text);
}

.hero p {
    color: var(--text);
    opacity: 0.7;
}

.hero-img {
    width: 15rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Wireframe Scroll Container */
.wireframe-scroll-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.wireframe-scroll {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: scroll-vertical 30s linear infinite;
    will-change: transform;
}

@keyframes scroll-vertical {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.wf-component {
    background: rgba(var(--primary-rgb), 0.04);
    border: 2px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.08);
    flex-shrink: 0;
}

.wf-component.large {
    padding: 25px;
}

/* Dashboard Preview */
.dashboard-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(var(--primary-rgb), 0.15);
}

.dash-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

.dash-title-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-title {
    height: 10px;
    width: 80px;
    background: var(--primary);
    border-radius: 3px;
}

.dash-subtitle {
    height: 6px;
    width: 60px;
    background: rgba(var(--text), 0.3);
    border-radius: 2px;
}

.dash-icon-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(var(--primary-rgb), 0.15);
    border: 2px solid rgba(var(--primary-rgb), 0.3);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.stat-card {
    padding: 12px;
    background: rgba(var(--accent-rgb), 0.08);
    border: 2px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--accent);
}

.stat-value {
    height: 12px;
    width: 70%;
    background: var(--primary);
    border-radius: 3px;
}

.stat-label {
    height: 6px;
    width: 50%;
    background: rgba(var(--text), 0.25);
    border-radius: 2px;
}

.dashboard-chart {
    height: 80px;
    background: rgba(var(--primary-rgb), 0.15);
    border: 2px solid rgba(var(--primary-rgb), 0.25);
    border-radius: 8px;
    position: relative;
}

/* Product Card */
.product-image {
    height: 100px;
    background: rgba(var(--accent-rgb), 0.25);
    border-radius: 10px;
    margin-bottom: 12px;
    border: 2px solid rgba(var(--primary-rgb), 0.2);
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-badge {
    width: 50px;
    height: 18px;
    background: var(--accent);
    border-radius: 12px;
}

.product-title {
    height: 12px;
    width: 70%;
    background: var(--primary);
    border-radius: 4px;
}

.product-desc {
    height: 6px;
    width: 100%;
    background: rgba(var(--text), 0.3);
    border-radius: 2px;
}

.product-desc.short {
    width: 85%;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.product-price {
    height: 14px;
    width: 50px;
    background: var(--primary);
    border-radius: 4px;
}

.product-btn {
    height: 28px;
    width: 70px;
    background: var(--primary);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.3);
}

/* Chat Interface */
.chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 2px solid rgba(var(--primary-rgb), 0.15);
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--secondary);
    border: 2px solid rgba(var(--primary-rgb), 0.3);
}

.chat-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-name {
    height: 10px;
    width: 70px;
    background: var(--primary);
    border-radius: 3px;
}

.chat-status {
    height: 6px;
    width: 40px;
    background: var(--accent);
    border-radius: 2px;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.chat-bubble {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 70%;
}

.chat-bubble.left {
    align-self: flex-start;
}

.chat-bubble.right {
    align-self: flex-end;
}

.chat-bubble.left .bubble-text {
    background: rgba(var(--primary-rgb), 0.15);
    border: 2px solid rgba(var(--primary-rgb), 0.25);
}

.chat-bubble.right .bubble-text {
    background: var(--primary);
}

.bubble-text {
    height: 8px;
    width: 120px;
    border-radius: 12px;
    padding: 2px;
}

.bubble-text.short {
    width: 80px;
}

.chat-input-bar {
    height: 32px;
    background: rgba(var(--primary-rgb), 0.08);
    border: 2px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 20px;
}

/* Pricing Table */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.price-card {
    padding: 16px;
    background: rgba(var(--primary-rgb), 0.05);
    border: 2px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.price-card.featured {
    background: rgba(var(--primary-rgb), 0.08);
    border: 2px solid var(--primary);
}

.price-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    width: 40px;
    height: 16px;
    background: var(--accent);
    border-radius: 8px;
}

.price-header {
    height: 10px;
    width: 60%;
    background: var(--primary);
    border-radius: 3px;
}

.price-amount {
    height: 16px;
    width: 50%;
    background: var(--primary);
    border-radius: 4px;
    margin-bottom: 4px;
}

.price-feature {
    height: 6px;
    width: 85%;
    background: rgba(var(--text), 0.25);
    border-radius: 2px;
}

.price-btn {
    height: 28px;
    width: 100%;
    background: var(--primary);
    border-radius: 8px;
    margin-top: 6px;
    box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.3);
}

/* Login Form */
.login-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 3px 10px rgba(var(--primary-rgb), 0.3);
}

.login-title {
    height: 14px;
    width: 60%;
    margin: 0 auto 16px;
    background: var(--primary);
    border-radius: 4px;
}

.login-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(var(--primary-rgb), 0.05);
    border: 2px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 10px;
    margin-bottom: 10px;
}

.input-icon {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: var(--primary);
    flex-shrink: 0;
}

.input-field {
    flex: 1;
    height: 8px;
    background: rgba(var(--text), 0.2);
    border-radius: 3px;
}

.login-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.remember-me, .forgot-link {
    height: 6px;
    width: 45%;
    background: rgba(var(--text), 0.25);
    border-radius: 2px;
}

.login-btn {
    height: 36px;
    width: 100%;
    background: var(--primary);
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 3px 10px rgba(var(--primary-rgb), 0.4);
}

.login-divider {
    height: 2px;
    width: 100%;
    background: rgba(var(--primary-rgb), 0.15);
    margin: 12px 0;
}

.social-login {
    display: flex;
    gap: 10px;
}

.social-btn {
    flex: 1;
    height: 32px;
    background: rgba(var(--accent-rgb), 0.15);
    border: 2px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 8px;
}



/* Background */
.gradient-orb {
    position: absolute;
    z-index: 1;
}

.orb-1 {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    top: 0;
    left: 0;
    animation: none;
    filter: none;
    opacity: 1;
}

.orb-2 {
    display: none;
}





/* Responsive for Hero Visual */
@media (max-width: 575px) {
    .hero-visual {
        height: 300px;
    }
    
    .wireframe-scroll-container {
        max-width: 280px;
    }
    
    .wireframe-scroll {
        gap: 15px;
    }
    
    .wf-component {
        padding: 15px;
    }
    
    .hero-layout {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-visual-area {
        width: 80px;
        height: 80px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .feature-item {
        height: 40px;
    }
    
    .orb-1, .orb-2 {
        width: 150px;
        height: 150px;
        filter: blur(50px);
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .hero-visual {
        height: 320px;
    }
    
    .wireframe-scroll-container {
        max-width: 320px;
    }
    
    .wireframe-scroll {
        gap: 16px;
    }
    
    .wf-component {
        padding: 16px;
    }
    
    .feature-grid {
        gap: 10px;
    }
    
    .orb-1, .orb-2 {
        width: 170px;
        height: 170px;
        filter: blur(55px);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hero-visual {
        height: 360px;
    }
    
    .wireframe-scroll-container {
        max-width: 360px;
    }
}

@media (min-width: 992px) {
    .hero-visual {
        height: 400px;
    }
    
    .wireframe-scroll-container {
        max-width: 420px;
    }
}

.device-frame {
    background: #1a1d29;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.device-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 22px;
    background: #0f1118;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 8px;
    z-index: 10;
}

.device-frame::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 10px;
    width: 8px;
    height: 8px;
    background: #ff5f57;
    border-radius: 50%;
    box-shadow: 14px 0 0 #ffbd2e, 28px 0 0 #28ca42;
    z-index: 11;
}

.device-screen {
    width: 100%;
    height: calc(100% - 22px);
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 22px;
    position: relative;
}

.screen-content {
    width: 100%;
    height: 100%;
    background: #ffffff;
    overflow: auto;
    transition: all 0.4s ease;
}

/* Wireframe Site Styles */
.wireframe-site {
    width: 100%;
    height: 100%;
    background: #fafbfc;
    padding: 0;
}

/* Desktop Wireframe */
.desktop-site {
    font-size: 0.8vw;
}

@media (max-width: 991px) {
    .desktop-site {
        font-size: 1.2vw;
    }
}

.wf-navbar {
    background: #ffffff;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid #e1e4e8;
    transition: all 0.3s ease;
}



.wf-logo {
    width: 80px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: transform 0.3s ease;
}



.wf-nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.wf-link {
    width: 50px;
    height: 8px;
    background: #d1d5db;
    border-radius: 2px;
    transition: all 0.3s ease;
}



.wf-link.wf-btn {
    width: 60px;
    height: 22px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 4px;
}



.wf-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 30px;
    gap: 30px;
}

.wf-hero-text {
    flex: 1;
}

.wf-title {
    width: 80%;
    height: 24px;
    background: #1f2937;
    border-radius: 4px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}



.wf-subtitle {
    width: 90%;
    height: 12px;
    background: #d1d5db;
    border-radius: 3px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}



.wf-subtitle:last-of-type {
    width: 70%;
}

.wf-button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.wf-btn-primary {
    width: 80px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 6px;
    transition: all 0.3s ease;
}



.wf-btn-secondary {
    width: 80px;
    height: 28px;
    background: #ffffff;
    border: 2px solid var(--primary);
    border-radius: 6px;
    transition: all 0.3s ease;
}



.wf-hero-image {
    width: 16vw;
    height: 12vw;
    max-width: 180px;
    max-height: 140px;
    min-width: 120px;
    min-height: 90px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--secondary-rgb), 0.2));
    border-radius: 8px;
    border: 2px solid #e1e4e8;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}



.wf-hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
}

/* Mobile Card */
.mobile-card {
    position: absolute;
    bottom: 5%;
    right: 5%;
    width: 30%;
    height: 85%;
    z-index: 2;
}



.mobile-card:hover {
    z-index: 3;
}

.mobile-frame {
    background: #1a1d29;
    border-radius: 28px;
    padding: 10px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    height: 100%;
    width: 100%;
}

.mobile-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    z-index: 10;
}

.mobile-screen {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
}

.mobile-content {
    background: #ffffff;
}

/* Mobile Wireframe */
.mobile-site {
    font-size: 0.5vw;
    padding: 0;
}

@media (max-width: 991px) {
    .mobile-site {
        font-size: 1vw;
    }
}

.wf-mobile-nav {
    background: #ffffff;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-bottom: 1px solid #e1e4e8;
    transition: all 0.3s ease;
}



.wf-mobile-logo {
    width: 40px;
    height: 12px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 3px;
    transition: transform 0.3s ease;
}



.wf-burger {
    width: 16px;
    height: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.wf-burger span {
    width: 100%;
    height: 2px;
    background: #1f2937;
    border-radius: 1px;
    transition: all 0.3s ease;
}



.wf-mobile-hero {
    padding: 20px 12px;
    text-align: center;
}

.wf-mobile-title {
    width: 80%;
    height: 14px;
    background: #1f2937;
    border-radius: 3px;
    margin: 0 auto 8px;
    transition: all 0.3s ease;
}



.wf-mobile-subtitle {
    width: 90%;
    height: 8px;
    background: #d1d5db;
    border-radius: 2px;
    margin: 0 auto 6px;
    transition: all 0.3s ease;
}



.wf-mobile-subtitle:last-of-type {
    width: 70%;
    margin-bottom: 12px;
}

.wf-mobile-image {
    width: 90%;
    height: 8vw;
    max-height: 100px;
    min-height: 60px;
    background: linear-gradient(135deg, rgba(var(--secondary-rgb), 0.2), rgba(var(--primary-rgb), 0.2));
    border-radius: 6px;
    border: 2px solid #e1e4e8;
    margin: 0 auto 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}



.wf-mobile-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--secondary);
    border-radius: 50%;
    opacity: 0.6;
}

.wf-mobile-btn {
    width: 80%;
    height: 20px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 5px;
    margin: 0 auto;
    transition: all 0.3s ease;
}



/* Responsive adjustments */
@media (max-width: 767px) {
    .device-showcase {
        padding-bottom: 100%; /* Taller on mobile */
    }
    
    .desktop-card {
        width: 90%;
        height: 70%;
        top: 5%;
    }
    
    .mobile-card {
        width: 40%;
        height: 80%;
        bottom: 2%;
        right: 2%;
    }
    
    .device-showcase-container {
        max-width: 100%;
        padding: 0 15px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .device-showcase {
        padding-bottom: 80%;
    }
    
    .desktop-card {
        width: 87%;
        height: 73%;
    }
    
    .mobile-card {
        width: 32%;
        height: 83%;
        bottom: 4%;
        right: 4%;
    }
}

@media (min-width: 992px) {
    .device-showcase {
        padding-bottom: 70%;
    }
    
    .device-showcase-container {
        max-width: 650px;
    }
}

@media (min-width: 992px) {
    .phone-mockup-wrapper {
        max-width: 800px;
        height: 550px;
    }
}

@media (min-width: 1200px) {
    .phone-mockup-wrapper {
        max-width: 900px;
        height: 600px;
    }
}

.info-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem;
}

.info-wrapper p {
    background-color: var(--dark);
    color: var(--light);
    padding: 1rem;
    border-radius: 0.5rem;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.15);
    background: var(--light) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary) !important;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s;
    color: var(--text) !important;
    position: relative;
}

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

.nav-link.active {
    color: var(--primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--primary);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

@media (max-width: 991px) {
    .nav-link::after {
        width: 40%;
        left: 0;
        transform: translateX(0) scaleX(0);
    }
    
    .nav-link:hover::after,
    .nav-link.active::after {
        transform: translateX(0) scaleX(1);
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

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

.about h3 {
    color: var(--text);
    font-weight: 700;
}

.about p {
    color: var(--text);
    opacity: 0.75;
}

@media (max-width: 768px) {
    .about .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    .about h3 {
        font-size: 1.5rem;
        margin-top: 0;
    }
}

.skills-list .badge {
    background: var(--primary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem;
}

/* Portfolio Section */
.portfolio {
    background: white;
}

.portfolio-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.2);
}

.portfolio-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.portfolio-image-wrapper .img-fluid {
    transition: transform 0.3s ease;
}

.portfolio-item:hover .img-fluid {
    transform: scale(1.05);
}

/* Project Preview Cards */
.project-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .project-preview {
    transform: scale(1.05);
}

.preview-content {
    text-align: center;
    z-index: 2;
}

.preview-badge {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.preview-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.preview-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Project 1 - Coffee Shop */
.p-1-preview {
    background: linear-gradient(135deg, #8B4513, #A0522D);
}

/* Project 2 - Cleaning Service */
.p-2-preview {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

/* Project 3 - Fitness Studio */
.p-3-preview {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 576px) {
    .portfolio-image-wrapper {
        height: 250px;
    }
    
    .portfolio-content {
        padding: 1rem !important;
    }
}

.portfolio-final,
.portfolio-wireframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.portfolio-wireframe {
    opacity: 0;
}

.portfolio-item:hover .portfolio-wireframe {
    opacity: 1;
}

.portfolio-item:hover .portfolio-final {
    opacity: 0;
}

.portfolio-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-content h4 {
    margin-bottom: 0.5rem;
}

.portfolio-content p {
    flex: 1;
}

/* Services Section */
.services {
    background: white;
}

.service-card {
    background: white;
    border: 2px solid var(--light) !important;
    margin-bottom: 1.5rem;
    cursor: pointer !important;
    position: relative;
    transform: translateY(0) scale(1);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@media (max-width: 576px) {
    .service-card {
        padding: 1.5rem !important;
    }
}

.service-card:hover {
    transform: translateY(-20px) scale(1.08) !important;
    box-shadow: 0 20px 50px rgba(var(--primary-rgb), 0.3) !important;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
}

/* Animated Cursor Building UI */
.animated-cursor-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 2px solid #e1e4e8;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 100%;
}

.animated-cursor-container.animate-in {
    opacity: 1;
    transform: translateX(0);
}

#cursorCanvas {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    background: white;
}

@media (max-width: 991px) {
    .animated-cursor-container {
        max-width: 100%;
        margin: 0 auto;
    }
    
    #cursorCanvas {
        height: auto;
        aspect-ratio: 6 / 5;
    }
}

@media (max-width: 768px) {
    #cursorCanvas {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 576px) {
    #cursorCanvas {
        aspect-ratio: 4 / 5;
    }
}

.editor-header {
    background: #2d2d2d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #1e1e1e;
}

.editor-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.editor-tabs {
    display: flex;
    gap: 8px;
}

.tab {
    padding: 6px 16px;
    background: #1e1e1e;
    color: #858585;
    border-radius: 6px 6px 0 0;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab.active {
    background: #1e1e1e;
    color: #d4d4d4;
}

.tab:hover:not(.active) {
    color: #d4d4d4;
}

.editor-body {
    display: flex;
    padding: 20px 0;
    min-height: 400px;
    position: relative;
}

.line-numbers {
    padding: 0 20px;
    color: #858585;
    font-size: 14px;
    line-height: 1.6;
    text-align: right;
    user-select: none;
    border-right: 1px solid #2d2d2d;
}

.line-numbers span {
    display: block;
}

.code-content {
    flex: 1;
    padding: 0 20px;
    color: #d4d4d4;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
    position: relative;
}

.code-content pre {
    margin: 0;
}

.code-content code {
    display: block;
    white-space: pre;
}

.code-tag {
    color: #569cd6;
}

.code-attr {
    color: #9cdcfe;
}

.code-string {
    color: #ce9178;
}

.code-css-selector {
    color: #d7ba7d;
}

.code-css-property {
    color: #9cdcfe;
}

.code-css-value {
    color: #b5cea8;
}

.code-js-keyword {
    color: #569cd6;
}

.code-js-var {
    color: #9cdcfe;
}

.code-js-method {
    color: #dcdcaa;
}

.code-js-param {
    color: #9cdcfe;
}

.typing-cursor {
    position: absolute;
    width: 2px;
    height: 20px;
    background: #d4d4d4;
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

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

/* Mini Keyboard */
.mini-keyboard {
    background: #2d2d2d;
    padding: 16px;
    border-top: 1px solid #1e1e1e;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.keyboard-row {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.key {
    min-width: 36px;
    height: 36px;
    background: #1e1e1e;
    border: 1px solid #3e3e3e;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #858585;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.key:hover {
    background: #2d2d2d;
    border-color: #4e4e4e;
    transform: translateY(-1px);
}

.key.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(2px);
    box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.5);
}

.space-key {
    min-width: 200px;
}

@media (max-width: 991px) {
    .code-editor-container {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .key {
        min-width: 28px;
        height: 28px;
        font-size: 10px;
    }
    
    .space-key {
        min-width: 150px;
    }
}

@media (max-width: 576px) {
    .editor-body {
        min-height: 300px;
    }
    
    .line-numbers,
    .code-content {
        font-size: 12px;
        padding: 0 12px;
    }
    
    .editor-tabs {
        font-size: 11px;
    }
    
    .tab {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .key {
        min-width: 24px;
        height: 24px;
        font-size: 9px;
    }
    
    .space-key {
        min-width: 120px;
    }
    
    .mini-keyboard {
        padding: 12px;
        gap: 4px;
    }
    
    .keyboard-row {
        gap: 4px;
    }
}

.service-card h4 {
    color: var(--text);
    font-weight: 600;
}

/* Contact Section */
.contact {
    background: var(--light);
}

.contact-form .form-control {
    border-radius: 8px;
    padding: 0.75rem;
    border: 2px solid var(--light);
    transition: all 0.3s;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.15);
}

.contact-form label {
    color: var(--text);
    font-weight: 500;
}

/* Footer */
.footer-section {
    background: var(--dark);
    padding: 3rem 0 1rem 0;
}

@media (max-width: 768px) {
    .footer-section {
        padding: 2rem 0 1rem 0;
    }
    
    .footer-section .col-md-3 {
        margin-bottom: 2rem;
    }
}

.footer-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.footer-description {
    color: var(--light);
    opacity: 0.7;
    line-height: 1.6;
}

.footer-heading {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: var(--light);
    opacity: 0.7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--light);
    opacity: 1;
    transform: translateX(3px);
}

.footer-contact li {
    color: var(--light);
    opacity: 0.7;
    display: flex;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(var(--primary-rgb), 0.15);
    border-radius: 50%;
    color: var(--primary);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px) rotate(25deg);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.4);
}

/* Button Animations */
.btn {
    transition: all 0.3s ease;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.btn-primary {
    background: var(--primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
    background: var(--secondary);
}

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

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.btn:hover {
    transform: translateY(-2px);
}

/* Responsive Typography */
@media (max-width: 576px) {
    .display-4 {
        font-size: 1.75rem !important;
        line-height: 1.3;
        margin-bottom: 1rem !important;
    }
    
    .display-5 {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }
    
    .lead {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-content {
        text-align: center;
    }
    
    section {
        padding: 3rem 0 !important;
    }
    
    .phone-mockup-wrapper {
        height: 300px !important;
        max-width: 500px;
        margin-bottom: 2rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .display-4 {
        font-size: 2rem !important;
        line-height: 1.3;
    }
    
    .display-5 {
        font-size: 1.75rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    .hero-content {
        text-align: center;
    }
    
    section {
        padding: 3.5rem 0 !important;
    }
}

/* Section Headings */
section h2 {
    color: var(--text);
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Section Spacing */
section {
    padding: 4rem 0;
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 992px) {
    section {
        padding: 6rem 0;
    }
}

/* Scroll Animations */
.portfolio-item,
.service-card,
.about h3,
.about p,
.skills-list,
.contact-form,
section h2,
.hero h1,
.hero p,
.hero .button-wrapper {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slide from left */
.portfolio-item:nth-child(odd),
.about h3 {
    transform: translateX(-50px);
}

/* Slide from right */
.portfolio-item:nth-child(even),
.about p {
    transform: translateX(50px);
}

/* Slide from bottom */
.service-card,
section h2,
.hero h1 {
    transform: translateY(50px);
}

/* Fade in scale */
.skills-list,
.contact-form,
.hero p {
    transform: scale(0.9);
}

/* Button slide up with delay */
.hero .button-wrapper {
    transform: translateY(30px);
    transition-delay: 0.2s;
}

/* Animated state */
.animate-in {
    opacity: 1 !important;
    transform: translateX(0) translateY(0) scale(1) !important;
}

/* Staggered delays */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }
.service-card:nth-child(5) { transition-delay: 0.5s; }

.portfolio-item:nth-child(1) { transition-delay: 0.1s; }
.portfolio-item:nth-child(2) { transition-delay: 0.2s; }
.portfolio-item:nth-child(3) { transition-delay: 0.3s; }
.portfolio-item:nth-child(4) { transition-delay: 0.4s; }
.portfolio-item:nth-child(5) { transition-delay: 0.5s; }
.portfolio-item:nth-child(6) { transition-delay: 0.6s; }