@font-face {
    font-family: "Custom Font";
    src: url("assets/fonts/fa-regular-400.woff2") format("woff2"),
    url("assets/fonts/fa-regular-400.ttf") format("truetype");
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    overflow-x: hidden;
    background: #ffffff;
}

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

/* Header & Navigation */
header {
    background: rgba(26, 32, 44, 0.95);
    color: white;
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    position: relative;
}

.nav-links a:hover {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::before {
    width: 80%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 40%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 40% 70%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

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

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

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.85;
    animation: fadeInUp 1s ease-out 0.2s both;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    animation: fadeInUp 1s ease-out 0.4s both;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
}

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

/* Services Section */
.services {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: #1a202c;
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: rgba(59, 130, 246, 0.2);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: white;
    position: relative;
    overflow: hidden;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-card:hover .service-icon::before {
    transform: translateX(100%);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a202c;
    letter-spacing: -0.01em;
    text-align: center;
}

.service-card p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    text-align: center;
}

.service-list {
    list-style: none;
}

.service-list li {
    color: #4a5568;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
    font-size: 0.9rem;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(226, 232, 240, 1), transparent);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a202c;
    letter-spacing: -0.02em;
}

.about-text p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 15px;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-label {
    color: #4a5568;
    font-weight: 500;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.tech-stack .tech-tag {
    margin: 0;
}

.tech-tag {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.tech-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-form {
    background: rgba(255,255,255,0.05);
    padding: 2.5rem;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    color: #333;
    font-size: 1rem;
}

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

/* Comprehensive styling for select dropdown */
.form-group select {
    /* Basic appearance */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none;

    /* Positioning and dimensions */
    position: relative;
    padding-right: 40px; /* Make room for the icon */

    /* Visual styling */
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    /* Animation */
    transition: all 0.3s ease;
}

/* Hover state */
.form-group select:hover {
    background-color: rgba(255,255,255,1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* Focus state */
.form-group select:focus {
    border-radius: 10px 10px 0 0;
    outline: none;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
    background-color: #ffffff;
}

/* Animation for dropdown when it opens */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animation to dropdown options */
.form-group select:focus option {
    animation: dropdownFadeIn 0.2s ease-out forwards;
}

/* Hide default dropdown arrow in IE */
.form-group select::-ms-expand {
    display: none;
}

/* Custom Select Dropdown */
.select-wrapper {
    position: relative;
    display: block;
}
.select-wrapper select {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    color: #333;
    font-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border 0.2s;
    box-shadow: 0 2px 8px rgba(59,130,246,0.04);
}
.select-wrapper select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
}
.select-wrapper select.just-selected {
    border-color: #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(59,130,246,0.04) !important;
}
.select-wrapper::after {
    content: '\25BC';
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #8b5cf6;
    font-size: 1rem;
}
@media (max-width: 768px) {
    .select-wrapper select {
        font-size: 0.95rem;
        padding: 10px 36px 10px 12px;
    }
}

/* Style for dropdown options */
.form-group select option {
    padding: 14px 16px;
    background-color: white;
    color: #333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

/* First and last options get special treatment */
.form-group select option:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-top: none;
}

.form-group select option:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-bottom: none;
}

/* Hover and focus states for options */
.form-group select option:hover,
.form-group select option:focus {
    background-color: rgba(59, 130, 246, 0.05);
    cursor: pointer;
    padding-left: 20px; /* Indent on hover for visual feedback */
    color: #3b82f6;
}

/* Selected option styling */
.form-group select option:checked {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    position: relative;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Add checkmark to selected option */
.form-group select option:checked::before {
    content: '✓';
    position: absolute;
    right: 10px;
    font-weight: bold;
}

/* Custom dropdown styling for webkit browsers */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .form-group select {
        overflow: hidden;
    }

    .form-group select option {
        margin: 3px 0;
        border-radius: 4px;
    }

    /* Enhanced dropdown container in webkit browsers */
    .form-group select:focus {
        background-image: linear-gradient(to bottom, #ffffff, #f8fafc);
    }

    /* Staggered animation for options in webkit browsers */
    .form-group select option:nth-child(1) { animation-delay: 0.02s; }
    .form-group select option:nth-child(2) { animation-delay: 0.04s; }
    .form-group select option:nth-child(3) { animation-delay: 0.06s; }
    .form-group select option:nth-child(4) { animation-delay: 0.08s; }
    .form-group select option:nth-child(5) { animation-delay: 0.10s; }
}

.form-group .select-wrapper {
    position: relative;
}

.form-group .select-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #3b82f6;
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
}

.form-group .select-wrapper:hover::after {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.form-group .select-wrapper:focus-within::after {
    transform: translateY(-50%) rotate(180deg) scale(1.1);
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.submit-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-item-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.2rem;
    font-size: 1.2rem;
    text-align: center;
}

/* Footer */
footer {
    background: #0f172a;
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-links {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0 0.5rem;
}

.footer-links a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* Notification Messages */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    z-index: 1001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(45deg, #48bb78, #38a169);
}

.notification.error {
    background: linear-gradient(45deg, #f56565, #e53e3e);
}

.notification .close-btn {
    float: right;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

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

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .tech-stack {
        gap: 0.6rem;
    }

    .tech-tag {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .about-text h2 {
        font-size: 2.2rem;
    }

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

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

/* Section spacing */
section {
    scroll-margin-top: 80px;
}

/* Legal Pages Styling */
.legal-content {
    padding: 140px 0 80px;
    background: #ffffff;
}

.legal-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a202c;
    letter-spacing: -0.02em;
}

.last-updated {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 3rem;
    font-style: italic;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: #2d3748;
}

.legal-section p {
    margin-bottom: 1.2rem;
    color: #4a5568;
    line-height: 1.7;
}

.legal-section ul {
    margin-bottom: 1.2rem;
    padding-left: 2rem;
}

.legal-section li {
    margin-bottom: 0.8rem;
    color: #4a5568;
    line-height: 1.7;
}
