* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
    cursor: auto; /* Changed from 'none' to 'auto' */
}

/* Custom Cursor - Disabled but kept for reference */
.cursor {
    display: none; /* Hide custom cursor */
}

.cursor-follower {
    display: none; /* Hide custom cursor follower */
}

/* Hide cursor on mobile - updated */
@media (max-width: 768px) {
    .cursor, .cursor-follower {
        display: none;
    }
    body {
        cursor: auto;
    }
}

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

::-webkit-scrollbar-track {
    background: #111111;
}

::-webkit-scrollbar-thumb {
    background: #ffffff;
}

::-webkit-scrollbar-thumb:hover {
    background: #cccccc;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(0, 0, 0, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo-text span {
    color: #ffffff;
    font-weight: 300;
}

.logo p {
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: #888888;
    margin-top: 4px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
    position: relative;
    cursor: pointer; /* Ensure proper cursor on links */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    opacity: 0.7;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
}

/* Buttons */
.btn-primary {
    background: #ffffff;
    color: #000000;
    padding: 14px 32px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    transition: left 0.3s ease;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.btn-outline {
    border: 1px solid #ffffff;
    background: transparent;
    color: #ffffff;
    padding: 13px 30px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    cursor: pointer; /* Ensure proper cursor on buttons */
}

.btn-outline:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: #000000;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 32px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    display: inline-block;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff, #888888);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #aaaaaa;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.stat h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
}

.stat p {
    font-size: 0.75rem;
    color: #888888;
    letter-spacing: 2px;
    margin-top: 8px;
}

/* Code Preview */
.code-preview {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.code-header {
    background: #111111;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

.code-title {
    color: #666;
    font-size: 0.75rem;
    margin-left: 8px;
    font-family: monospace;
}

.code-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #cccccc;
}

.code-body .keyword { color: #ff79c6; }
.code-body .class-name { color: #50fa7b; }
.code-body .this { color: #ffb86c; }
.code-body .method { color: #8be9fd; }
.code-body .string { color: #f1fa8c; }
.code-body .function { color: #bd93f9; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.scroll-indicator i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: #888888;
    display: inline-block;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    color: #888888;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: #000000;
}

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

.service-card {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 32px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer; /* Add pointer cursor for cards */
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.4s ease;
}

.service-card:hover::before {
    width: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-icon {
    margin-bottom: 24px;
}

.service-icon i {
    font-size: 2.5rem;
    color: #ffffff;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.service-card p {
    color: #888888;
    line-height: 1.6;
    margin-bottom: 20px;
}

.price-range {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: gap 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    gap: 12px;
}

/* Projects Header with Search and Filter */
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.projects-search {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.projects-search input {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 18px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.85rem;
    width: 260px;
    font-family: 'Inter', sans-serif;
    cursor: text; /* Ensure text cursor for input */
}

.projects-search input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
}

.projects-search input::placeholder {
    color: #555555;
}

.projects-search select {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 18px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.projects-search select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
}

.per-page-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #888888;
    font-size: 0.8rem;
}

.per-page-selector select {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.project-card {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 1;
    transform: translateY(0);
    cursor: pointer; /* Add pointer cursor for project cards */
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
}

.project-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-image i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease;
}

.project-card:hover .project-image i {
    transform: scale(1.1);
}

.project-number {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 0.7rem;
    color: #666;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 10px;
    border-radius: 20px;
    font-family: monospace;
}

.project-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #00ff88;
    color: #000000;
    font-size: 0.6rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

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

.project-content {
    padding: 24px;
}

.project-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888888;
    margin-bottom: 10px;
}

.project-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.project-card p {
    color: #aaaaaa;
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.project-highlights {
    margin-bottom: 18px;
    list-style: none;
}

.project-highlights li {
    color: #888888;
    font-size: 0.75rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-highlights li i {
    font-size: 0.65rem;
    color: #ffffff;
    width: 16px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 12px;
}

.project-tech {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tech-tag {
    font-size: 0.65rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: #cccccc;
    font-family: monospace;
}

.project-link {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s;
    letter-spacing: 1px;
}

.project-link:hover {
    opacity: 0.7;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.page-btn {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 18px;
    border-radius: 8px;
    color: #888888;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
}

.page-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
}

.page-btn.active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.page-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.page-btn.disabled:hover {
    border-color: rgba(255, 255, 255, 0.1);
    color: #888888;
}

/* Projects Stats */
.projects-stats {
    text-align: center;
    margin-top: 30px;
    color: #666666;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Smooth fade-in animation for project cards */
.project-card {
    animation: fadeInUp 0.5s ease forwards;
}

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

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: #000000;
}

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

.testimonial {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px;
    transition: all 0.3s ease;
}

.testimonial:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.testimonial i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.testimonial p {
    color: #dddddd;
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.client-info {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.client-name {
    font-weight: 700;
    margin-bottom: 4px;
}

.client-title {
    font-size: 0.75rem;
    color: #888888;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #050505;
}

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

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info > p {
    color: #888888;
    margin-bottom: 40px;
    line-height: 1.6;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    font-size: 1.2rem;
}

.contact-item strong {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: #888888;
    margin-bottom: 4px;
}

.contact-item span {
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #ffffff;
    color: #000000;
}

/* Contact Form */
.contact-form {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: inherit;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ffffff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #555555;
}

/* Footer */
.footer {
    background: #000000;
    padding: 60px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.footer-brand h3 span {
    font-weight: 300;
}

.footer-brand p {
    color: #888888;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.reg-number {
    font-family: monospace;
    font-size: 0.7rem;
    color: #666;
}

.footer-links h4 {
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #888888;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
    cursor: pointer; /* Ensure pointer cursor for footer links */
}

.footer-links a:hover {
    color: #ffffff;
}

.copyright {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #555555;
    font-size: 0.75rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }
.delay-9 { animation-delay: 0.9s; }
.delay-10 { animation-delay: 1s; }
.delay-11 { animation-delay: 1.1s; }

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

/* Responsive */
@media (max-width: 968px) {
    .hero-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        max-width: 100%;
    }
    
    .projects-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .projects-search {
        width: 100%;
    }
    
    .projects-search input {
        flex: 1;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
        text-align: center;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .stat {
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .projects-search {
        flex-direction: column;
    }
    
    .projects-search input {
        width: 100%;
    }
    
    .per-page-selector {
        width: 100%;
        justify-content: space-between;
    }
    
    .pagination {
        gap: 8px;
    }
    
    .page-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-outline {
        text-align: center;
    }
    
    .project-content {
        padding: 18px;
    }
    
    .contact-form {
        padding: 24px;
    }
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}