/* Homepage Specific Styles */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('images/wall.jpg') center/cover;
    opacity: 0.05;
    z-index: 1;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.hero-text {
    padding-right: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 20px 40px var(--shadow-medium);
    position: relative;
    z-index: 2;
}

.hero-decoration {
    position: absolute;
    width: 400px;
    height: 400px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotate 20s linear infinite;
    z-index: 1;
}

.hero-decoration::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
}

.hero-decoration::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(-10px);
    }
    60% {
        transform: rotate(45deg) translateY(-5px);
    }
}

/* Quick About Section */
.quick-about {
    background: var(--background-light);
}

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

.quick-about-text {
    font-size: 1.1rem;
}

.quick-about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Featured Projects Section */
.featured-projects {
    background: white;
}

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

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(1, 38, 101, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-info p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--background-light);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
}

.projects-cta {
    text-align: center;
}

/* Specific adjustment for Spaceman image on home page */
.project-card:first-child .project-image img {
    object-fit: contain;
    object-position: center;
    background: var(--background-light);
    padding: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
}

.cta-section .btn-primary:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image-wrapper {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .quick-about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .quick-about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .hero-decoration {
        width: 300px;
        height: 300px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-image {
        height: 200px;
    }
    
    .quick-about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .hero-decoration {
        width: 250px;
        height: 250px;
    }
    
    .project-info {
        padding: 1.5rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Popup Modal Styles - For project modals */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    border-radius: 20px;
    max-width: 1000px;
    width: 90%;
    max-height: 90vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 30px;
    color: #333;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.popup-close:hover {
    background-color: rgba(255, 255, 255, 1);
    color: #012665;
    transform: scale(1.1);
}

.popup-header {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.popup-wallpaper {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-wallpaper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 38, 101, 0.7), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.popup-wallpaper--violet::before {
    background: linear-gradient(135deg, rgba(52, 28, 68, 0.12), rgba(155, 107, 184, 0.28));
}

.popup-wallpaper--violet .popup-title {
    color: #341c44;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.popup-logo {
    position: absolute;
    left: 50px;
    top: 200px;
    transform: translateY(-50%);
    z-index: 1003;
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 3px solid #012665;
}

.popup-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
}

.popup-title {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    z-index: 2;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 0 150px;
}

.popup-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 0;
    position: relative;
    z-index: 1;
    margin-top: 40px;
    min-width: 0;
}

.popup-main-content {
    padding: 40px;
    min-width: 0;
    overflow-wrap: break-word;
}

.popup-main-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #012665;
    margin-bottom: 20px;
    margin-top: 0;
}

.popup-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

.popup-link {
    margin-top: 20px;
}

.popup-link a {
    color: #012665;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid #012665;
    transition: all 0.3s ease;
}

.popup-link a:hover {
    color: #0056b3;
    border-bottom-color: #0056b3;
}

.popup-sidebar {
    background: #f8f9fa;
    padding: 40px 30px;
    border-left: 1px solid #e9ecef;
    min-width: 0;
    overflow-wrap: break-word;
}

.popup-features,
.popup-tech {
    margin-bottom: 30px;
}

.popup-features:last-child,
.popup-tech:last-child {
    margin-bottom: 0;
}

.popup-features h4,
.popup-tech h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #012665;
    margin-bottom: 15px;
    margin-top: 0;
}

.popup-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

.popup-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1rem;
}

.popup-tech .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.popup-tech .tech-tag {
    background: linear-gradient(135deg, #012665, #0056b3);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Popup Responsive Design */
@media (max-width: 900px) {
    .popup-body {
        grid-template-columns: 1fr;
    }

    .popup-sidebar {
        border-left: none;
        border-top: 1px solid #e9ecef;
    }
}

@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .popup-body {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 28px;
    }
    
    .popup-logo {
        left: 30px;
        top: 150px;
    }
    
    .popup-logo img {
        width: 60px;
        height: 60px;
    }
    
    .popup-title {
        font-size: 1.8rem;
        padding: 0 100px;
    }
    
    .popup-main-content,
    .popup-sidebar {
        padding: 30px 25px;
    }
    
    .popup-header {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .popup-logo {
        left: 20px;
        top: 120px;
    }
    
    .popup-logo img {
        width: 50px;
        height: 50px;
    }
    
    .popup-title {
        font-size: 1.5rem;
        padding: 0 80px;
    }
    
    .popup-header {
        height: 120px;
    }
    
    .popup-body {
        margin-top: 24px;
    }
    
    .popup-main-content,
    .popup-sidebar {
        padding: 20px;
    }

    .popup-features li {
        font-size: 0.9rem;
    }
}
