/* CSS Variables */
:root {
    --bg-color: #1a0b2e;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --border-color: #2a1c42;
    --card-bg-color: #23153c;
    --accent-color: #8a2be2;
    --hover-color: #9d4edd;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4e 100%);
    background-image: url('https://images.unsplash.com/photo-1454496522488-7a8e488e8606?q=80&w=1176&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(26, 11, 46, 0.9) 0%,
        rgba(42, 28, 66, 0.7) 100%
    );
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 300;
    line-height: 1.1;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    font-weight: 300;
}

/* Social Links */
.social-links {
    position: absolute;
    top: 40px;
    right: 50px;
    display: flex;
    gap: 25px;
    z-index: 10;
}

.social-links a {
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-size: 24px;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Content Section */
.content-section {
    padding: 120px 5%;
    position: relative;
    z-index: 5;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    color: var(--text-primary);
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.project-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 20px;
}

.project-links {
    margin-top: auto;
    display: flex;
    gap: 15px;
}

.project-links a {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 300;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
}

.project-links a:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Footer */
.main-footer {
    padding: 50px 5%;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background-color: var(--card-bg-color);
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-social-links a {
    color: var(--text-secondary);
    font-size: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Loading State */
.loading {
    opacity: 0;
    visibility: hidden;
}

.loaded {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2.5rem, 15vw, 5rem);
    }
    
    .social-links {
        top: 30px;
        right: 30px;
        gap: 20px;
    }
    
    .social-links a {
        font-size: 20px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .content-section {
        padding: 80px 5%;
    }
    
    .project-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .social-links {
        top: 20px;
        right: 20px;
        gap: 15px;
    }
    
    .social-links a {
        font-size: 18px;
    }
    
    .project-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .project-links a {
        text-align: center;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-section {
        animation: none;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .social-links,
    .footer-social-links {
        display: none;
    }
    
    .hero-section {
        height: auto;
        page-break-after: always;
    }
}
