/* Modern Styles V2 - The Ultimate Redesign */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #2bb0ef;
    --primary-dark: #007bb5;
    --secondary-color: #3a526a;
    --dark-bg: #0b132b;
    --dark-bg-2: #1c2541;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --card-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    --card-hover: 0 30px 60px -15px rgba(0, 0, 0, 0.15);
}

.modern-home {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: #f8fafc;
}

.modern-home h1, .modern-home h2, .modern-home h3, .modern-home h4, .modern-home h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Hero Section V2 - Dark & Premium */
.sv2-hero {
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-bg-2));
    padding: 130px 0 70px;
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.sv2-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(43, 176, 239, 0.15) 0%, transparent 70%);
}

.sv2-hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: linear-gradient(to right, #ffffff, #a5d8ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sv2-hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* Service Cards V2 - Sleek Icons */
.sv2-grid {
    margin-top: -60px; /* Pull into hero */
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
}

/* Fix Bootstrap 3 float snagging and ensure equal height cards */
.sv2-grid .row {
    display: flex;
    flex-wrap: wrap;
}

.sv2-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    /* Keep it stretching within the flex item */
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.03);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.sv2-card .sv2-link {
    margin-top: auto; /* Push link to bottom */
}

.sv2-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: top;
}

.sv2-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover);
}

.sv2-card:hover::before {
    transform: scaleY(1);
}

.sv2-icon-box {
    width: 70px;
    height: 70px;
    background: rgba(43, 176, 239, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 30px;
    transition: all 0.3s ease;
}

.sv2-card:hover .sv2-icon-box {
    background: var(--primary-color);
    color: #fff;
    transform: rotateY(180deg);
}

.sv2-card h3 {
    font-size: 1.35rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.sv2-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.sv2-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
}

.sv2-link i {
    margin-left: 8px;
    transition: margin 0.3s ease;
}

.sv2-link:hover i {
    margin-left: 12px;
}

/* System Spotlight V2 - Pure CSS Dashboard */
.sv2-system {
    padding: 100px 0;
    background: #fff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f0f4f8;
}

.sv2-system-text h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.sv2-system-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.sv2-bullet {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.sv2-bullet i {
    color: #10b981;
    margin-right: 15px;
    font-size: 1.2rem;
}

/* CSS Mac Window Mockup */
.sv2-mac-window {
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border: 1px solid #e2e8f0;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}
.sv2-mac-window:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.sv2-mac-header {
    background: #e2e8f0;
    padding: 10px 15px;
    display: flex;
    align-items: center;
}
.sv2-mac-dots {
    display: flex;
    gap: 8px;
}
.sv2-mac-dot {
    width: 12px; height: 12px; border-radius: 50%;
}
.sv2-mac-dot.r { background: #ef4444; }
.sv2-mac-dot.y { background: #f59e0b; }
.sv2-mac-dot.g { background: #10b981; }

.sv2-mac-body {
    padding: 20px;
    display: flex;
    gap: 20px;
    height: 300px;
}
.sv2-mac-sidebar {
    width: 30%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    padding: 15px;
}
.sv2-mac-line {
    height: 10px; background: #e2e8f0; border-radius: 5px; margin-bottom: 15px;
}
.sv2-mac-line.main { height: 20px; background: #cbd5e1; width: 60%; margin-bottom: 25px;}

.sv2-mac-content {
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.sv2-mac-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    flex: 1;
    padding: 15px;
    position: relative;
    overflow: hidden;
}
.sv2-mac-card::after {
    content: ''; position: absolute; top:0; left:0; right:0; height: 4px; background: var(--primary-color);
}
.sv2-mac-graph {
    margin-top: 15px;
    height: 60px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}
.sv2-mac-bar {
    flex: 1;
    background: #bae6fd;
    border-radius: 4px 4px 0 0;
    animation: growBar 2s ease-out forwards;
}
@keyframes growBar {
    from { height: 0; }
}

/* Projects Carousel V2 */
.sv2-projects {
    padding: 100px 0;
    background: var(--dark-bg);
}

.sv2-projects-header {
    text-align: center;
    margin-bottom: 60px;
}

.sv2-projects-header h2 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 15px;
}

.sv2-projects-header p {
    color: #94a3b8;
    font-size: 1.15rem;
}

.sv2-proj-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: 350px;
}

.sv2-proj-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sv2-proj-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 19, 43, 0.95) 0%, rgba(11, 19, 43, 0.2) 60%, transparent 100%);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}

.sv2-proj-card:hover img {
    transform: scale(1.1);
}

.sv2-proj-badge {
    background: var(--primary-color);
    color: #fff;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 30px;
    width: fit-content;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.sv2-proj-overlay h4 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    color: #fff;
}

/* CTA */
.sv2-cta {
    background: var(--primary-color);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}
.sv2-cta h2 { font-size: 2.5rem; margin-bottom: 30px; color: #fff; }
.sv2-btn {
    background: #fff;
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
}
.sv2-btn:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transform: translateY(-3px);
    color: var(--primary-color);
}
