* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: gilroy, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(135deg, #0f1419 0%, #1a1f3a 50%, #0f1419 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #fff;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

#main {
    position: relative;
}

/* NAVIGATION */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 50px;
    z-index: 999;
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#nav h3 {
    font-size: 24px;
    font-weight: 600;
}

#nav h3 a {
    color: #fff;
    text-decoration: none;
}

.back-button {
    color: #5865F2;
    text-decoration: none;
    padding: 10px 24px;
    border: 2px solid #5865F2;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
}

.back-button:hover {
    background: #5865F2;
    color: #fff;
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.5);
}

/* HERO SECTION */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 30%, rgba(88, 101, 242, 0.15), transparent 70%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.3), transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(150px);
    animation: pulse 10s ease-in-out infinite, rotate 30s linear infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 0.4; 
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.3); 
        opacity: 0.7; 
    }
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 120px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #5865F2, #00D9FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientText 5s ease infinite;
    margin-bottom: 20px;
    letter-spacing: -2px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

@keyframes gradientText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

/* SERVICES SECTION */
.services-section {
    padding: 100px 50px;
    position: relative;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    grid-auto-flow: dense;
}

/* Service Card - Modern Overlapping Design */
.service-card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 244, 255, 0.95) 100%);
    border-radius: 38px;
    padding: 0;
    position: relative;
    overflow: visible;
    min-height: 350px;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(88, 101, 242, 0.1);
}

/* Wide cards - span 2 columns */
.service-card:nth-child(1),
.service-card:nth-child(5),
.service-card:nth-child(9) {
    grid-column: span 2;
    grid-template-columns: 1fr 1fr;
}

/* Tall cards - span 2 rows */
.service-card:nth-child(3),
.service-card:nth-child(7),
.service-card:nth-child(11) {
    grid-row: span 2;
    min-height: 480px;
}

/* Large feature cards - span 2 columns */
.service-card:nth-child(6),
.service-card:nth-child(13) {
    grid-column: span 2;
    grid-template-columns: 1fr 1fr;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.3), rgba(0, 217, 255, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 50px 120px rgba(88, 101, 242, 0.4),
        0 0 0 1px rgba(88, 101, 242, 0.2) inset,
        0 0 80px rgba(88, 101, 242, 0.2);
}

/* Service Content Wrapper */
.service-content-wrapper {
    padding: 40px 45px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 2;
    grid-column: 1;
}

/* Wide cards - content spans full width */
.service-card:nth-child(1) .service-content-wrapper,
.service-card:nth-child(5) .service-content-wrapper,
.service-card:nth-child(6) .service-content-wrapper,
.service-card:nth-child(9) .service-content-wrapper,
.service-card:nth-child(13) .service-content-wrapper {
    grid-column: 1;
    padding-right: 380px;
    min-width: 20;
}

.service-content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(88, 101, 242, 0.5) 50%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* Service Number */
.service-number {
    position: absolute;
    top: 40px;
    right: 50px;
    font-size: 72px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.04);
    line-height: 1;
    transition: all 0.4s ease;
    z-index: 1;
}

.service-card:hover .service-number {
    color: rgba(88, 101, 242, 0.08);
    transform: scale(1.05);
}

/* Service Title - Colored */
.service-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.1;
    letter-spacing: -1px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    position: relative;
    transition: all 0.4s ease;
}

.service-card:hover .service-title {
    transform: translateX(5px);
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.1);
}

.service-card:nth-child(1) .service-title { 
    background: linear-gradient(135deg, #4A90E2, #2E5C8A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.service-card:nth-child(2) .service-title { 
    background: linear-gradient(135deg, #F39C12, #D68910);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.service-card:nth-child(3) .service-title { 
    background: linear-gradient(135deg, #9B59B6, #7D3C98);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.service-card:nth-child(4) .service-title { 
    background: linear-gradient(135deg, #E74C3C, #C0392B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.service-card:nth-child(5) .service-title { 
    background: linear-gradient(135deg, #1ABC9C, #16A085);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.service-card:nth-child(6) .service-title { 
    background: linear-gradient(135deg, #E67E22, #CA6F1E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.service-card:nth-child(7) .service-title { 
    background: linear-gradient(135deg, #3498DB, #2980B9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.service-card:nth-child(8) .service-title { 
    background: linear-gradient(135deg, #27AE60, #229954);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.service-card:nth-child(9) .service-title { 
    background: linear-gradient(135deg, #8E44AD, #7D3C98);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.service-card:nth-child(10) .service-title { 
    background: linear-gradient(135deg, #C0392B, #A93226);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.service-card:nth-child(11) .service-title { 
    background: linear-gradient(135deg, #16A085, #138D75);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.service-card:nth-child(12) .service-title { 
    background: linear-gradient(135deg, #D35400, #BA4A00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.service-card:nth-child(13) .service-title { 
    background: linear-gradient(135deg, #2980B9, #21618C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-description {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 15px;
    font-weight: 400;
    text-rendering: optimizeLegibility;
    transition: color 0.3s ease;
}

.service-card:hover .service-description {
    color: #2d3748;
}

/* Service Image - Overlapping with 3D effect */
.service-image {
    position: absolute;
    right: -70px;
    top: 50%;
    transform: translateY(-50%);
    width: 340px;
    height: 320px;
    z-index: 3;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35));
}


/* Larger images for wide cards */
.service-card:nth-child(1) .service-image,
.service-card:nth-child(5) .service-image,
.service-card:nth-child(6) .service-image,
.service-card:nth-child(9) .service-image,
.service-card:nth-child(13) .service-image {
    width: 380px;
    height: 360px;
    right: 25px;
}

/* Larger images for tall cards */
.service-card:nth-child(3) .service-image,
.service-card:nth-child(7) .service-image,
.service-card:nth-child(11) .service-image {
    width: 360px;
    height: 400px;
}

.service-card:hover .service-image {
    transform: translateY(-50%) scale(1.08) rotate(3deg);
    right: -90px;
    filter: drop-shadow(0 40px 80px rgba(88, 101, 242, 0.4));
}

/* Wide cards hover */
.service-card:nth-child(1):hover .service-image,
.service-card:nth-child(5):hover .service-image,
.service-card:nth-child(6):hover .service-image,
.service-card:nth-child(9):hover .service-image,
.service-card:nth-child(13):hover .service-image {
    right: 20px;
    transform: translateY(-50%) scale(1.05);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
}

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

.service-image-overlay {
    display: none;
}

/* Reverse Layout */
.service-card.reverse .service-content-wrapper {
    order: 1;
}

.service-card.reverse .service-image {
    right: auto;
    left: -70px;
}

/* Wide reverse cards */
.service-card.reverse:nth-child(1) .service-image,
.service-card.reverse:nth-child(5) .service-image,
.service-card.reverse:nth-child(6) .service-image,
.service-card.reverse:nth-child(9) .service-image,
.service-card.reverse:nth-child(13) .service-image {
    left: 25px;
}

.service-card.reverse:hover .service-image {
    left: -90px;
    transform: translateY(-50%) scale(1.08) rotate(-3deg);
    filter: drop-shadow(0 40px 80px rgba(88, 101, 242, 0.4));
}

.service-card.reverse:nth-child(1):hover .service-image,
.service-card.reverse:nth-child(5):hover .service-image,
.service-card.reverse:nth-child(6):hover .service-image,
.service-card.reverse:nth-child(9):hover .service-image,
.service-card.reverse:nth-child(13):hover .service-image {
    left: 20px;
    transform: translateY(-50%) scale(1.05);
}

/* Hide unnecessary elements */
.service-icon {
    display: none;
}

.tech-tags {
    display: none;
}

.service-main {
    display: contents;
}

/* Service Features - List Style */
.service-features {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-features h3 {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features h3::before {
    content: '📋';
    font-size: 18px;
}

.service-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-features li {
    font-size: 15px;
    color: #1a202c;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.service-features li::after {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: #5865F2;
    font-size: 18px;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li:hover {
    padding-left: 12px;
    color: #000;
    background: linear-gradient(90deg, rgba(88, 101, 242, 0.05), transparent);
}

.service-features li:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Number badges for list items */
.service-features li:nth-child(1)::before { content: '01'; }
.service-features li:nth-child(2)::before { content: '02'; }
.service-features li:nth-child(3)::before { content: '03'; }
.service-features li:nth-child(4)::before { content: '04'; }
.service-features li:nth-child(5)::before { content: '05'; }
.service-features li:nth-child(6)::before { content: '06'; }

.service-features li::before {
    color: rgba(0, 0, 0, 0.25);
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
    width: 35px;
}

/* CTA Button */
.get-started-btn {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    align-self: flex-start;
    box-shadow: 
        0 10px 30px rgba(88, 101, 242, 0.35),
        0 0 0 0 rgba(88, 101, 242, 0.4);
    border: none;
    position: relative;
    overflow: hidden;
}

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

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

.get-started-btn:hover {
    background: linear-gradient(135deg, #4752C4 0%, #3642A0 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(88, 101, 242, 0.5),
        0 0 0 8px rgba(88, 101, 242, 0.1);
}

.get-started-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* CTA SECTION */
.cta-section {
    padding: 120px 50px;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(88, 101, 242, 0.1), transparent 70%);
}

.cta-section h2 {
    font-size: 56px;
    margin-bottom: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #5865F2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-section p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 50px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 18px 48px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button.primary {
    background: #5865F2;
    color: #fff;
    box-shadow: 0 10px 35px rgba(88, 101, 242, 0.4);
}

.cta-button.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 45px rgba(88, 101, 242, 0.6);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1400px) {
    .services-container {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 25px;
    }
    
    .service-image {
        width: 300px;
        height: 280px;
        right: -50px;
    }
    
    .service-card:nth-child(1) .service-image,
    .service-card:nth-child(5) .service-image,
    .service-card:nth-child(6) .service-image,
    .service-card:nth-child(9) .service-image,
    .service-card:nth-child(13) .service-image {
        width: 340px;
        height: 320px;
        right: 20px;
    }
    
    .service-card.reverse .service-image {
        left: -50px;
    }
    
    .service-card.reverse:nth-child(1) .service-image,
    .service-card.reverse:nth-child(5) .service-image,
    .service-card.reverse:nth-child(6) .service-image,
    .service-card.reverse:nth-child(9) .service-image,
    .service-card.reverse:nth-child(13) .service-image {
        left: 20px;
    }
}

@media (max-width: 1200px) {
    .services-container {
        grid-template-columns: 1fr !important;
        gap: 25px;
        padding: 0 15px;
    }
    
    .service-card {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: auto !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        margin: 0;
        border-radius: 30px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .service-content-wrapper {
        padding: 35px 30px !important;
        order: 1;
    }
    
    .service-card:nth-child(1) .service-content-wrapper,
    .service-card:nth-child(5) .service-content-wrapper,
    .service-card:nth-child(6) .service-content-wrapper,
    .service-card:nth-child(9) .service-content-wrapper,
    .service-card:nth-child(13) .service-content-wrapper {
        padding: 35px 30px !important;
        padding-right: 30px !important;
        padding-right: 30px !important;
    }
    
    .service-image {
        position: relative !important;
        right: auto !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 300px !important;
        height: 280px !important;
        margin: 0 auto !important;
        display: block !important;
        order: 2;
    }
    
    .service-card:hover .service-image {
        transform: scale(1.05) !important;
    }
    
    .service-card.reverse .service-content-wrapper {
        order: 1;
    }
    
    .service-card.reverse .service-image {
        order: 2;
        right: auto !important;
        left: auto !important;
    }
    
    .service-number {
        top: 25px;
        right: 30px;
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    #nav {
        padding: 10px 12px;
    }
    
    #nav h3 {
        font-size: 15px;
    }
    
    .back-button {
        padding: 5px 10px;
        font-size: 10px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 13px;
        padding: 0 12px;
    }
    
    .services-section {
        padding: 30px 8px;
    }
    
    .services-container {
        gap: 10px;
        padding: 0 8px;
    }
    
    .service-card {
        min-height: auto !important;
        border-radius: 15px;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
    }
    
    .service-content-wrapper {
        padding: 18px 15px !important;
        gap: 8px;
    }
    
    .service-number {
        font-size: 26px;
        top: 12px;
        right: 15px;
    }
    
    .service-title {
        font-size: 20px;
        margin-bottom: 4px;
    }
    
    .service-description {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 6px;
    }
    
    .service-image {
        max-width: 160px !important;
        height: 140px !important;
        margin: 0 auto !important;
    }
    
    .service-features h3 {
        font-size: 10px;
        margin-bottom: 8px;
    }
    
    .service-features li {
        font-size: 11px;
        padding: 7px 0;
    }
    
    .get-started-btn {
        width: 100%;
        text-align: center;
        padding: 10px 18px;
        font-size: 11px;
    }
    
    .cta-section {
        padding: 60px 15px;
    }
    
    .cta-section h2 {
        font-size: 32px;
    }
    
    .cta-section p {
        font-size: 14px;
        padding: 0 10px;
        margin-bottom: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        padding: 14px 32px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }
    
    .hero-subtitle {
        font-size: 11px;
    }
    
    .services-section {
        padding: 20px 6px;
    }
    
    .service-card {
        min-height: auto !important;
        max-width: fit-content;
        border-radius: 32px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .service-content-wrapper {
        padding: 14px 12px !important;
        gap: 6px;
    }
    
    .service-number {
        font-size: 22px;
        top: 10px;
        right: 12px;
    }
    
    .service-title {
        font-size: 17px;
    }
    
    .service-description {
        font-size: 10px;
        line-height: 1.4;
    }
    
    .service-image {
        max-width: 130px !important;
        height: 110px !important;
        margin: 0 auto !important;
    }
    
    .service-features li {
        font-size: 10px;
        padding: 6px 0;
    }
    
    .service-features li::before {
        font-size: 9px;
        width: 20px;
    }
    
    .get-started-btn {
        padding: 8px 14px;
        font-size: 10px;
    }
    
    .cta-section h2 {
        font-size: 22px;
    }
    
    .cta-section p {
        font-size: 12px;
        margin-bottom: 20px;
    }
    
    .cta-button {
        max-width: 230px;
        padding: 10px 24px;
        font-size: 13px;
    }
}
