/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.3);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: #8B0000;
    font-weight: 700;
    font-size: 2rem;
}

.nav-logo a {
    color: #fa0000;
    text-decoration: none;
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #8B0000;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #8B0000;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: #8B0000;
    color: #ffffff;
    border: 2px solid #8B0000;
}

.btn-primary:hover {
    background-color: transparent;
    color: #8B0000;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #8B0000;
    border: 2px solid #8B0000;
}

.btn-secondary:hover {
    background-color: #8B0000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 80px;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.title-line,
.title-name,
.title-profession {
    display: block;
    animation: slideInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(50px);
}

.title-line {
    font-size: 1.5rem;
    color: #cccccc;
    animation-delay: 0.2s;
}

.title-name {
    color: #8B0000;
    animation-delay: 0.4s;
}

.title-profession {
    font-size: 2rem;
    color: #ffffff;
    animation-delay: 0.6s;
}

.hero-description {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: slideInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(50px);
    animation-delay: 0.8s;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    animation: slideInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(50px);
    animation-delay: 1s;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #8B0000;
    box-shadow: 0 20px 60px rgba(139, 69, 19, 0.3);
    animation: float 6s ease-in-out infinite;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-wrapper:hover .profile-img {
    transform: scale(1.1);
}

/* Animations */
@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 1rem;
    /* height: 100vh; */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background-color: #8B0000;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* About Section */
.about {
    padding: 85px 0;
    background-color: #111111;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 2rem;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* Services Section */
.services {
    padding: 20px 0;
    background-color: #000000;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 1.5rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 69, 19, 0.3);
}

.service-icon {
    font-size: 3rem;
    color: #8B0000;
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.service-description {
    color: #cccccc;
    line-height: 1.6;
}

/* Skills Section */
.skills {
    padding: 20px 0;
    background-color: #111111;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-item {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: .2rem .2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 69, 19, 0.3);
}

.skill-icon {
    font-size: 3rem;
    color: #8B0000;
    margin-bottom: 1rem;
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

/* Projects Section */
.projects {
    padding: 20px 0;
    background-color: #000000;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.projects-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 69, 19, 0.3);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #8B0000;
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.project-link:hover {
    transform: scale(1.1);
    background-color: #A0522D;
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.project-description {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background-color: rgba(139, 69, 19, 0.2);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.projects-button {
    text-align: center;
}

/* Projects Header */
.projects-header {
    padding: 150px 0 50px;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.1rem;
    color: #cccccc;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.all-projects {
    padding: 50px 0 100px;
    background-color: #000000;
}

.back-to-home {
    padding: 50px 0;
    background-color: #111111;
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 20px 0;
    background-color: #111111;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #cccccc;
}

.contact-item i {
    color: #8B0000;
    font-size: 1.2rem;
    width: 20px;
}

.contact-form {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 1rem;
    border-radius: 15px;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.form-group {
    margin: .5rem;
}
.form-field{
    display: flex;
    
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 15px;
    border: 2px solid rgba(139, 69, 19, 0.3);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B0000;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999999;
}

.error-message {
    display: block;
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 20px;
}

/* Footer */
.footer {
    padding: 20px 0 20px;
    background-color: #000000;
    position: relative;
    border-top: 1px solid rgba(139, 69, 19, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    color: #cccccc;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(139, 69, 19, 0.2);
    color: #8B0000;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.social-link:hover {
    background-color: #8B0000;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 69, 19, 0.3);
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #8B0000;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: #A0522D;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 69, 19, 0.4);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(139, 69, 19, 0.3);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 2rem 0;
    }

    .nav-list li {
        padding: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .title-profession {
        font-size: 1.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .image-wrapper {
        width: 250px;
        height: 250px;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .skills-grid,
    .projects-grid,
    .projects-grid-full {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .title-line {
        font-size: 1.2rem;
    }

    .title-profession {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .service-card,
    .skill-item,
    .contact-form {
        padding: 1.5rem;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .image-wrapper {
        width: 200px;
        height: 200px;
    }
}

/* Additional Smooth Animations */
.service-card,
.skill-item,
.project-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form validation styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ff6b6b;
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #51cf66;
}

/* Loading state for form */
.btn-primary:disabled {
    background-color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-primary.loading {
    position: relative;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s ease infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
