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

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --accent: #4facfe;
    --text-dark: #1a202c;
    --text-gray: #4a5568;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-brand h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-brand .accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

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

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

.btn-nav {
    padding: 0.5rem 1.5rem;
    background: var(--gradient-primary);
    color: white !important;
    border-radius: 25px;
    transition: var(--transition);
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(102, 126, 234, 0.1) 0%, transparent 60%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

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

/* Hero Geometric Shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    bottom: -150px;
    left: -100px;
    animation-delay: 2s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    top: 50%;
    left: 10%;
    animation-delay: 4s;
}

.shape-4 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    bottom: 20%;
    right: 15%;
    animation-delay: 6s;
}

/* Badge New */
.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

/* Hero Illustration */
.hero-illustration {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-illustration {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

/* Animated SVG Elements */
.animated-element {
    animation: elementFloat 4s ease-in-out infinite;
}

.server-group {
    animation-delay: 0s;
}

.cloud-group {
    animation-delay: 1s;
}

.laptop-group {
    animation-delay: 0.5s;
}

.network-line {
    stroke-dasharray: 5 5;
    animation: dashMove 20s linear infinite;
}

.cloud-connection {
    animation: dashMove 15s linear infinite;
}

.floating-icon {
    animation: iconFloat 3s ease-in-out infinite;
}

.icon-1 {
    animation-delay: 0s;
}

.icon-2 {
    animation-delay: 0.7s;
}

.icon-3 {
    animation-delay: 1.4s;
}

/* SVG Animation Classes */
.pulse-led {
    animation: pulseLed 2s ease-in-out infinite;
}

.data-flow {
    animation: dataFlow 3s linear infinite;
}

@keyframes pulseLed {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

@keyframes dataFlow {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -20;
    }
}

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

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

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

@keyframes dashMove {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 100;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 1s ease-out;
}

.fade-in-delayed {
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* ===================================
   Services Section
   =================================== */
.services {
    padding: 8rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: white;
    border-radius: 25px;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 25px;
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.2);
    border-color: transparent;
}

.service-card:hover::before {
    opacity: 1;
}

.service-illustration {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: var(--transition);
}

.service-illustration svg {
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

.service-card:hover .service-illustration svg {
    transform: scale(1.1) rotate(2deg);
}

.service-content {
    padding: 2.5rem;
    position: relative;
}

.service-number {
    position: absolute;
    top: -25px;
    right: 30px;
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.1;
    user-select: none;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card > p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.service-features li {
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.service-features li:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* ===================================
   Technologies Section
   =================================== */
.technologies {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.tech-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    color: var(--primary);
}

/* ===================================
   VoIP Migration Section
   =================================== */
.voip-migration {
    padding: 8rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 50%, #fff5f7 100%);
    position: relative;
    overflow: hidden;
}

.voip-migration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(75, 172, 254, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.voip-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.voip-info {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.voip-alert {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid #fb923c;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    box-shadow: 0 4px 20px rgba(251, 146, 60, 0.15);
}

.voip-alert svg {
    flex-shrink: 0;
}

.voip-alert h3 {
    color: #ea580c;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.voip-alert p {
    color: #7c2d12;
    line-height: 1.7;
    font-size: 1rem;
}

.voip-benefits h3 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.voip-intro {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.benefit-card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.benefit-icon {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
}

.benefit-card h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.voip-diagram {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid #e2e8f0;
    position: sticky;
    top: 100px;
}

.voip-diagram svg {
    width: 100%;
    height: auto;
    display: block;
}

.diagram-element {
    transition: all 0.3s ease;
}

.diagram-element:hover {
    transform: scale(1.05);
}

.diagram-arrow .animated-arrow {
    animation: dashMove 2s linear infinite;
}

.voip-cta {
    margin-top: 5rem;
    position: relative;
    z-index: 1;
}

.cta-box {
    background: linear-gradient(135deg, var(--gradient-primary));
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.25);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.cta-box h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-buttons .btn {
    min-width: 220px;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary);
    border: 2px solid white;
}

.cta-buttons .btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px) scale(1.05);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px) scale(1.05);
}

/* ===================================
   App Showcase Section
   =================================== */
.app-showcase {
    padding: 8rem 0;
    background: linear-gradient(180deg, white 0%, #f8f9ff 100%);
    position: relative;
    overflow: hidden;
}

.app-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
}

.app-showcase-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.app-showcase-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.1), rgba(56, 249, 215, 0.1));
    border: 1.5px solid rgba(67, 233, 123, 0.3);
    border-radius: 50px;
    color: #10b981;
    font-weight: 600;
    font-size: 0.875rem;
    width: fit-content;
    animation: pulse 2s ease-in-out infinite;
}

.app-badge svg {
    color: #10b981;
}

.app-title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

.app-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.app-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1rem 0;
}

.app-feature {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.app-feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.app-feature:hover .app-feature-icon {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-md);
}

.app-feature h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.app-feature p {
    font-size: 0.9375rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

.app-cta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1.125rem 2.25rem;
    font-size: 1.0625rem;
}

.app-showcase-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 700px;
}

.app-device-wrapper {
    position: relative;
    width: 100%;
    max-width: 350px;
    animation: float 6s ease-in-out infinite;
}

.app-device {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.15));
}

/* App Device Animations */
.incoming-call-card {
    animation: callPulse 2s ease-in-out infinite;
}

.timer-text {
    animation: timerBlink 1s ease-in-out infinite;
}

.floating-notification {
    animation: notificationSlide 4s ease-in-out infinite;
}

.notification-1 {
    animation-delay: 0s;
}

.notification-2 {
    animation-delay: 2s;
}

@keyframes callPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
}

@keyframes timerBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes notificationSlide {
    0%, 100% {
        transform: translateX(0) translateY(0);
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
    50% {
        transform: translateX(-10px) translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .voip-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .voip-diagram {
        position: static;
    }

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

    .cta-box {
        padding: 2.5rem 2rem;
    }

    .cta-box h3 {
        font-size: 1.75rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .app-showcase-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .app-showcase-visual {
        height: 600px;
    }

    .app-device-wrapper {
        max-width: 300px;
    }

    .app-title {
        font-size: 2.25rem;
    }

    .app-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .voip-migration {
        padding: 4rem 0;
    }

    .voip-alert {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .voip-alert h3 {
        font-size: 1.2rem;
    }

    .voip-benefits h3 {
        font-size: 1.5rem;
    }

    .voip-diagram {
        padding: 1rem;
    }

    .voip-cta {
        margin-top: 3rem;
    }

    .cta-box {
        padding: 2rem 1.5rem;
    }

    .cta-box h3 {
        font-size: 1.5rem;
    }

    .cta-box p {
        font-size: 1rem;
    }

    .app-title {
        font-size: 1.875rem;
    }

    .app-showcase {
        padding: 4rem 0;
    }

    .app-showcase-visual {
        height: 500px;
    }

    .app-device-wrapper {
        max-width: 250px;
    }

    .app-cta {
        flex-direction: column;
    }

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

/* ===================================
   Portfolio Section
   =================================== */
.portfolio {
    padding: 8rem 0;
    background: white;
}

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

.portfolio-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

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

.portfolio-visual {
    height: 280px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.portfolio-gradient {
    position: absolute;
    inset: 0;
    transition: var(--transition);
}

.portfolio-gradient.grad-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.portfolio-gradient.grad-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.portfolio-gradient.grad-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.portfolio-card:hover .portfolio-gradient {
    transform: scale(1.1) rotate(2deg);
}

.portfolio-icon {
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-icon {
    transform: scale(1.15) rotate(-5deg);
}

.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
    z-index: 3;
    transition: var(--transition);
}

.portfolio-card:hover .project-badge {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.portfolio-content p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.portfolio-tags {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.portfolio-tags span {
    padding: 0.5rem 1.125rem;
    background: white;
    color: var(--primary);
    border: 1.5px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}

.portfolio-tags span:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: 8rem 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.contact-info {
    padding: 3rem;
    background: var(--gradient-primary);
    color: white;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    opacity: 0.9;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item svg {
    flex-shrink: 0;
}

.contact-benefits {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact-benefits h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.contact-benefits ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-benefits li {
    padding-left: 1.5rem;
    position: relative;
}

.contact-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
}

.contact-form {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    display: none;
    font-weight: 500;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.footer-brand .accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.7;
}

/* ===================================
   Scroll Animations
   =================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-image {
        height: 350px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

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

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .contact-info,
    .contact-form {
        padding: 2rem;
    }

    .floating-card {
        padding: 1rem;
        font-size: 0.875rem;
    }
}
