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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #e4e4e7;
}

/* Header */
header {
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

nav a {
    color: #a1a1aa;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: #667eea;
}

.social-links a {
    color: #a1a1aa;
    font-size: 1.2rem;
    margin-left: 1rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #667eea;
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: #a1a1aa;
    line-height: 1.8;
}

.hero-tags {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-tags span {
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #667eea;
}

/* Info Card (CV & Social) */
.info-card {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.info-card-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.info-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-card-icon i {
    font-size: 2.5rem;
    color: white;
}

.info-card-text h3 {
    font-size: 1.5rem;
    color: #e4e4e7;
    margin-bottom: 0.75rem;
}

.info-card-text p {
    color: #a1a1aa;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.info-card-social {
    padding-left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card-social h4 {
    color: #e4e4e7;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.social-links-detailed {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-links-detailed a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #a1a1aa;
    text-decoration: none;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.3s;
}

.social-links-detailed a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.social-links-detailed a i {
    font-size: 1.25rem;
    width: 24px;
}

.social-links-detailed a span {
    font-size: 0.875rem;
}

/* Section Subtitle */
.section-subtitle {
    text-align: center;
    color: #a1a1aa;
    margin-top: -2rem;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Contact Form Inline */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form-inline {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
}

.form-row-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: rgba(102, 126, 234, 0.3);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    color: #e4e4e7;
    font-weight: 500;
}

.faq-question i {
    color: #667eea;
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    color: #a1a1aa;
    line-height: 1.7;
}

/* Main Footer */
.main-footer {
    background: rgba(10, 10, 20, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: #e4e4e7;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #a1a1aa;
    line-height: 1.7;
    font-size: 0.9rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.footer-links a i {
    width: 16px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    color: #a1a1aa;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact li i {
    color: #667eea;
    width: 16px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a1a1aa;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: #667eea;
    color: #667eea;
}

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

.footer-bottom p {
    color: #71717a;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #667eea;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .info-card {
        grid-template-columns: 1fr;
    }
    
    .info-card-content {
        flex-direction: column;
        text-align: center;
    }
    
    .info-card-icon {
        margin: 0 auto;
    }
    
    .info-card-social {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1.5rem;
    }
    
    .form-row-inline {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links a, .footer-contact li {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Section Styles */
.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #e4e4e7;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Project Card */
.project-card {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    background: rgba(102, 126, 234, 0.1);
    overflow: hidden;
}

.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.image-placeholder i {
    font-size: 3rem;
    color: rgba(102, 126, 234, 0.3);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-image.loaded {
    opacity: 1;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #e4e4e7;
}

.project-content p {
    color: #a1a1aa;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-technologies span {
    background: rgba(102, 126, 234, 0.1);
    color: #818cf8;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.project-links a:hover {
    color: #667eea;
}

/* Button */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-outline:hover {
    background: rgba(102, 126, 234, 0.1);
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Loading */
.loading {
    text-align: center;
    padding: 4rem;
    color: #a1a1aa;
    grid-column: 1 / -1;
}

.loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

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

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #a1a1aa;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Modal Gallery */
.modal-gallery {
    position: relative;
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(102, 126, 234, 0.8);
}

.gallery-prev {
    left: 1rem;
}

.gallery-next {
    right: 1rem;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 60px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    opacity: 0.6;
}

.gallery-thumb:hover {
    opacity: 0.9;
}

.gallery-thumb.active {
    border-color: #667eea;
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-content {
    padding: 2rem;
}

.modal-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #e4e4e7;
}

.modal-content .description {
    color: #a1a1aa;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.modal-content .detail-section {
    margin-bottom: 1.5rem;
}

.modal-content .detail-section h4 {
    color: #667eea;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.modal-content .detail-section p {
    color: #e4e4e7;
    line-height: 1.6;
}

.modal-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-technologies span {
    background: rgba(102, 126, 234, 0.15);
    color: #818cf8;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.modal-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-links .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

/* Page Header (for inner pages) */
.page-header {
    padding: 8rem 2rem 3rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: #a1a1aa;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.about-image {
    text-align: center;
}

.about-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(102, 126, 234, 0.3);
}

.about-text h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e4e4e7;
}

.about-text p {
    color: #a1a1aa;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

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

.skill-card {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.skill-card h4 {
    color: #667eea;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.skill-card p {
    color: #a1a1aa;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Contact Page */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #e4e4e7;
}

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

.contact-item i {
    width: 50px;
    height: 50px;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.25rem;
}

.contact-item div h4 {
    color: #e4e4e7;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.contact-item div p, .contact-item div a {
    color: #a1a1aa;
    font-size: 0.875rem;
    text-decoration: none;
}

.contact-item div a:hover {
    color: #667eea;
}

.contact-form {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
}

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

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e4e4e7;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

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

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #71717a;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 3000;
    animation: slideInRight 0.3s ease;
    color: #e4e4e7;
}

.notification.success {
    border-color: rgba(34, 197, 94, 0.5);
}

.notification.success i {
    color: #22c55e;
}

.notification.error {
    border-color: rgba(239, 68, 68, 0.5);
}

.notification.error i {
    color: #ef4444;
}

.notification.fade-out {
    animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 0.75rem 1rem;
        position: relative;
    }
    
    .header-content {
        flex-direction: column;
        gap: 0.75rem;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        margin: 0.25rem 0.5rem;
        font-size: 0.9rem;
    }

    .social-links {
        display: none;
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }

    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-tags {
        margin-top: 1.5rem;
        gap: 0.5rem;
    }

    .hero-tags span {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .section {
        padding: 2rem 1rem;
    }

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

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .modal {
        margin: 0.5rem;
        max-height: 95vh;
    }

    .modal-image {
        height: 200px;
    }

    .modal-content {
        padding: 1rem;
    }

    .modal-content h2 {
        font-size: 1.25rem;
    }

    .faq-container {
        padding: 0;
    }

    .faq-question span {
        font-size: 0.95rem;
    }
}
