/* HOME PAGE STYLES */

/* Animated Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, #ff5312, #ff8352);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 5s;
    animation-duration: 30s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 10s;
    animation-duration: 20s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 15s;
    animation-duration: 35s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 20s;
    animation-duration: 28s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
    }
}

/* Enhanced Hero Section */
.hero-section {
    padding: 1rem;
    display: flex;
    align-items: center;
    min-height: 90vh;
    margin-top: 70px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    align-items: center;
}

/* Enhanced Image Section */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
            0 20px 40px rgba(0,0,0,0.1),
            0 0 0 1px rgba(255,83,18,0.1);
    transition: all 0.3s ease;
}

.image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow:
            0 30px 60px rgba(0,0,0,0.15),
            0 0 0 1px rgba(255,83,18,0.2);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.image-wrapper:hover img {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,83,18,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

/* Enhanced Hero Content */
.hero-content {
    padding: 2rem 0;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ff5312, #ff8352, #ffae8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: "Montserrat", Arial, sans-serif;
}

.hero-text p {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    line-height: 1.7;
    color: #555;
    margin-bottom: 2rem;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: bold;
    color: #ff5312;
    font-family: "Montserrat", Arial, sans-serif;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Enhanced Buttons */
.cta-button {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem !important;
    background: linear-gradient(135deg, #ff5312, #ff6b35) !important;
    border: none !important;
    border-radius: 50px !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 83, 18, 0.3);
    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 ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(255, 83, 18, 0.4) !important;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid #ff5312;
    border-radius: 50px;
    color: #ff5312;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Montserrat", Arial, sans-serif;
}

.btn-outline:hover {
    background: #ff5312;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 83, 18, 0.3);
}

/* Enhanced Content Sections */
.content-section {
    padding: 5rem 2rem;
    margin: 0;
    position: relative;
}

.projects-section {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.contact-section {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 83, 18, 0.1);
    color: #ff5312;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: "Montserrat", Arial, sans-serif;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    color: #333;
}

.section-header p {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: #666;
    line-height: 1.6;
}

/* Enhanced Projects Preview */
.projects-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,83,18,0.1);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff5312, #ff8352);
    transition: left 0.3s ease;
}

.project-card:hover::before {
    left: 0;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.project-card.coming-soon {
    opacity: 0.8;
    border-style: dashed;
}

.project-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff5312, #ff8352);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.project-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tech-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    padding: 0.3rem 0.8rem;
    background: rgba(255,83,18,0.1);
    color: #ff5312;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.section-cta {
    text-align: center;
}

/* Enhanced Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.contact-content {
    padding: 2rem 0;
}

.contact-content h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: #333;
}

.contact-content p {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,83,18,0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255,83,18,0.1);
    transform: translateX(5px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: #ff5312;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Contact Visual - Floating Card */
.contact-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-card {
    background: #1a1a1a;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 100%;
    animation: float-card 6s ease-in-out infinite;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.card-dots {
    display: flex;
    gap: 0.5rem;
}

.card-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5312;
}

.card-dots span:nth-child(2) {
    background: #ffa500;
}

.card-dots span:nth-child(3) {
    background: #32cd32;
}

.card-content {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-line {
    margin-bottom: 0.5rem;
}

.code-indent {
    padding-left: 2rem;
}

.code-comment {
    color: #888;
}

.code-keyword {
    color: #ff6b9d;
}

.code-variable {
    color: #4ecdc4;
}

.code-string {
    color: #45b7d1;
}

.code-function {
    color: #96ceb4;
}

/* Mobile Responsiveness for Enhanced Home Page */
@media screen and (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        text-align: center !important;
    }

    .hero-image {
        order: -1;
    }

    .image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-container {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        text-align: center !important;
    }

    .contact-visual {
        order: -1;
    }
}

@media screen and (max-width: 768px) {
    .hero-section {
        margin-top: 120px !important;
        padding: 1rem !important;
        min-height: 80vh !important;
    }

    .hero-container {
        gap: 2rem !important;
    }

    .image-wrapper {
        max-width: 320px;
    }

    .hero-stats {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 1rem 0 !important;
    }

    .content-section {
        padding: 3rem 1rem !important;
    }

    .section-header {
        margin-bottom: 2rem !important;
    }

    .projects-preview {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .contact-container {
        gap: 2rem !important;
    }

    .contact-methods {
        gap: 0.8rem !important;
    }

    .contact-item {
        padding: 0.8rem !important;
    }

    .floating-card {
        max-width: 300px !important;
        padding: 1rem !important;
    }

    .card-content {
        font-size: 0.8rem !important;
    }
}

@media screen and (max-width: 480px) {
    .hero-section {
        margin-top: 110px !important;
        padding: 0.5rem !important;
        min-height: 70vh !important;
    }

    .hero-container {
        gap: 1.5rem !important;
    }

    .hero-content {
        padding: 1rem 0 !important;
    }

    .image-wrapper {
        max-width: 240px;
    }

    .content-section {
        padding: 2rem 0.5rem !important;
    }

    .project-card {
        padding: 1.5rem !important;
    }

    .cta-button {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
    }

    .btn-outline {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.8rem !important;
    }

    .floating-card {
        max-width: 250px !important;
        padding: 0.8rem !important;
    }

    .contact-content {
        padding: 1rem 0 !important;
    }
}

/* Animation delays for staggered entrance */
.hero-content > * {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-content h1 { animation-delay: 0.2s; }
.hero-text p { animation-delay: 0.4s; }
.hero-stats { animation-delay: 0.6s; }
.primaryButton { animation-delay: 0.8s; }

.project-card {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.2s; }
.project-card:nth-child(2) { animation-delay: 0.4s; }

.contact-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.contact-item:nth-child(1) { animation-delay: 0.2s; }
.contact-item:nth-child(2) { animation-delay: 0.4s; }
.contact-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

.cta-button:focus,
.btn-outline:focus {
    outline: 2px solid #ff5312;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .background-animation,
    .floating-card {
        display: none;
    }

    .hero-section,
    .content-section {
        padding: 1rem;
        break-inside: avoid;
    }
}

.visitors-number {
    animation: none !important;
    opacity: 1 !important;
}