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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    padding: 40px;
}

.container {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 20px;
    height: fit-content;
    position: sticky;
    top: 40px;
    flex-shrink: 0;
}

.profile-section {
    text-align: center;
    margin-bottom: 30px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 20px;
}

.name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.title {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2a2a2a;
    border-radius: 8px;
    color: #999;
    transition: all 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    background-color: #ffd700;
    color: #0a0a0a;
    transform: translateY(-3px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon.company-logo {
    padding: 0;
    overflow: hidden;
}

.social-icon.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.contact-info {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2a2a2a;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-icon-box {
    width: 48px;
    height: 48px;
    background-color: #2a2a2a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    flex-shrink: 0;
}

.contact-info-content {
    flex: 1;
    padding-top: 4px;
}

.contact-info-content span {
    display: block;
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
    letter-spacing: 1px;
    font-weight: 500;
}

.contact-info-content a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    display: block;
    transition: color 0.3s;
}

.contact-info-content a:hover {
    color: #ffd700;
}

.contact-info-content p {
    font-size: 14px;
    color: #e0e0e0;
    margin: 0;
}

.contact-item .icon {
    font-size: 20px;
    margin-bottom: 5px;
    display: block;
}

.contact-item span:not(.icon) {
    display: block;
    font-size: 11px;
    color: #666;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.contact-item a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
}

.contact-item a:hover {
    color: #ffd700;
}

.contact-item p {
    font-size: 14px;
    color: #e0e0e0;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    background-color: #1a1a1a;
    padding: 40px;
    border-radius: 20px;
    min-width: 0;
}

/* Navigation */
.navbar {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2a2a2a;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    color: #999;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #ffd700;
}

/* Section Styles */
.section {
    animation: fadeIn 0.5s;
}

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

.section-title {
    font-size: 36px;
    margin-bottom: 30px;
    color: #fff;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: #ffd700;
    border-radius: 2px;
}

.about-content p {
    margin-bottom: 20px;
    color: #b0b0b0;
    font-size: 15px;
    line-height: 1.8;
}

.about-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.about-content li {
    margin-bottom: 10px;
    color: #b0b0b0;
}

.subsection-title {
    font-size: 28px;
    margin: 50px 0 30px;
    color: #fff;
    position: relative;
    display: inline-block;
}

.subsection-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #ffd700;
    border-radius: 2px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.service-card {
    background-color: #0f0f0f;
    padding: 30px;
    border-radius: 16px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #2a2a2a;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.15);
    border-color: #3a3a3a;
}

.service-icon {
    font-size: 40px;
    min-width: 60px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
}

.service-content h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 500;
}

.service-content p {
    font-size: 14px;
    color: #999;
    line-height: 1.7;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.testimonial-card {
    background-color: #0f0f0f;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #2a2a2a;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}

.testimonial-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}

.testimonial-card p {
    font-size: 14px;
    color: #888;
    font-style: italic;
}

/* Clients Grid */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.client-logo {
    width: 100%;
    height: 100px;
    object-fit: contain;
    background-color: #0f0f0f;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.client-logo:hover {
    filter: grayscale(0%);
}

/* Portfolio Section */
.portfolio-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #0f0f0f;
    color: #999;
    border: 1px solid #2a2a2a;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover {
    color: #ffd700;
    border-color: #3a3a3a;
}

.filter-btn.active {
    background-color: #ffd700;
    color: #0a0a0a;
    border-color: #ffd700;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-color: #0f0f0f;
    border: 1px solid #2a2a2a;
    transition: all 0.3s;
    opacity: 1;
    transform: scale(1);
}

.portfolio-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.portfolio-item.hide {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.15);
    border-color: #3a3a3a;
}

.portfolio-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

/* Flickering images for portfolio items */
.portfolio-item-flicker .portfolio-image {
    position: relative;
}

.portfolio-item-flicker .flicker-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.portfolio-item-flicker .flicker-image.active {
    opacity: 1;
    position: relative;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
    padding: 25px;
    transform: translateY(0);
    transition: all 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.85) 80%, transparent 100%);
}

.portfolio-overlay h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 500;
}

.portfolio-overlay p {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* Blog Section */
.blog-content {
    margin-bottom: 30px;
}

.blog-content p {
    color: #b0b0b0;
    font-size: 15px;
    line-height: 1.8;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-post-card {
    background-color: #0f0f0f;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #2a2a2a;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.15);
    border-color: #3a3a3a;
}

.blog-post-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-post-card:hover .blog-post-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ffd700;
    color: #0a0a0a;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-content {
    padding: 25px;
}

.blog-post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #666;
}

.blog-date,
.blog-reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-post-content h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 500;
    line-height: 1.4;
}

.blog-post-content p {
    font-size: 14px;
    color: #999;
    line-height: 1.7;
    margin-bottom: 20px;
}

.blog-read-more {
    color: #ffd700;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s;
}

.blog-post-card:hover .blog-read-more {
    transform: translateX(5px);
}

.blog-cta {
    background-color: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-top: 30px;
}

.blog-cta h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 10px;
}

.blog-cta p {
    color: #999;
    margin-bottom: 25px;
}

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

.blog-cta-button {
    background-color: #1a1a1a;
    color: #ffd700;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #2a2a2a;
    transition: all 0.3s;
}

.blog-cta-button:hover {
    background-color: #ffd700;
    color: #0a0a0a;
    transform: translateY(-2px);
}

/* LeetCode Styles */
.social-icon.leetcode:hover {
    background-color: #ffa116;
}

.section-mini-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-top: 30px;
    margin-bottom: 10px;
}

.section-mini-subtitle {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.leetcode-card {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    background-color: #1a1a1a;
    padding: 10px;
    transition: transform 0.3s;
}

.leetcode-card:hover {
    transform: translateY(-5px);
}

.leetcode-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    body {
        padding: 20px;
    }
    
    .container {
        gap: 20px;
    }
    
    .sidebar {
        width: 250px;
    }
    
    .main-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar {
        gap: 15px;
    }
    
    .section-title {
        font-size: 28px;
    }
}

/* Contact Section */
.contact-map-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-map-container {
    position: relative;
}

.contact-map {
    width: 100%;
    height: 400px;
    background-color: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 15px;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
}

.map-placeholder p {
    margin-top: 15px;
    font-size: 14px;
}

.view-map-btn {
    background-color: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #2a2a2a;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.view-map-btn:hover {
    background-color: #2a2a2a;
    color: #ffd700;
}

/* Location Info Box */
.location-info-box {
    background-color: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 25px;
    height: fit-content;
}

.location-info-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a2a2a;
}

.location-status {
    margin-bottom: 20px;
}

.status-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #999;
    font-size: 14px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #2a2a2a;
    border-top-color: #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.location-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.location-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.location-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.location-value {
    font-size: 14px;
    color: #e0e0e0;
    word-break: break-word;
}

.refresh-location-btn {
    width: 100%;
    margin-top: 20px;
    background-color: #1a1a1a;
    color: #ffd700;
    border: 1px solid #2a2a2a;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.refresh-location-btn:hover {
    background-color: #ffd700;
    color: #0a0a0a;
    transform: translateY(-2px);
}

.refresh-location-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.status-error {
    color: #ef4444;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-success {
    color: #22c55e;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-form {
    max-width: 100%;
    margin-top: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 15px 20px;
    color: #e0e0e0;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffd700;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

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

.submit-btn {
    background-color: #ffd700;
    color: #0a0a0a;
    border: none;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.submit-btn:hover {
    background-color: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.submit-btn svg {
    width: 20px;
    height: 20px;
}

.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.form-status.success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    display: block;
}

.form-status.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    display: block;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-map {
        height: 300px;
    }
    
    .contact-map-wrapper {
        grid-template-columns: 1fr;
    }
    
    .location-info-box {
        order: -1;
    }
}
