/* Reset & Base Variables */
:root {
    --primary-color: #6b21a8; /* Morbeyin purple */
    --primary-light: #9333ea;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f4f5f7;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

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

body {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    /* Subtle noise pattern for 2014 nostalgia */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header - 2014 Corporate Style */
.site-header {
    background: linear-gradient(to bottom, #ffffff 0%, #f9f9f9 100%);
    border-bottom: 1px solid #dcdcdc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 1px 1px 0px rgba(255,255,255,1);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Hero Section - Skeuomorphic to Flat transition */
.hero-section {
    background: radial-gradient(circle at center, #581c87 0%, #3b0764 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    border-bottom: 4px solid var(--primary-light);
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.2);
}

.hero-content h2 {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 20px;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(to bottom, #a855f7 0%, #7e22ce 100%);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    border: 1px solid #6b21a8;
    box-shadow: 0 4px 0 #581c87, 0 5px 10px rgba(0,0,0,0.3);
    transition: all 0.1s;
    text-transform: uppercase;
}

.cta-button:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #581c87, 0 2px 5px rgba(0,0,0,0.3);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--text-dark);
    font-weight: 300;
}

.title-divider {
    height: 3px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

.subtitle {
    color: var(--text-light);
    margin-top: 10px;
    font-style: italic;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 16px;
    color: var(--text-light);
}

.about-content p {
    margin-bottom: 20px;
}

/* Portfolio Section - Modern Glassmorphism */
.portfolio-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f6f8fd 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative background blobs for glassmorphism effect */
.portfolio-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: rgba(147, 51, 234, 0.2);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.portfolio-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.portfolio-section .container {
    position: relative;
    z-index: 1;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Glassmorphism Card */
.app-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.app-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: var(--primary-light);
    border-bottom: 1px solid var(--border-color);
}

.app-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.app-card:hover .app-image {
    transform: scale(1.08);
}

.app-content {
    padding: 25px;
    width: 100%;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #3b82f6);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(31, 38, 135, 0.2);
}

.app-card:hover::before {
    opacity: 1;
}

.app-content h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.app-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Footer */
.site-footer {
    background-color: #2d3748;
    color: #cbd5e0;
    padding: 40px 0;
    border-top: 5px solid var(--primary-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 5px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
