:root {
    /* Design Tokens - Impeccable Slate Palette */
    --bg-main: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --primary: #ffffff;
    --primary-glow: rgba(255, 255, 255, 0.2);
    --secondary: #e2e8f0;
    --accent: #f8fafc;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Spacing & Radius */
    --radius-lg: 16px;
    --radius-md: 12px;
    --space-xl: 4rem;
    --space-lg: 2rem;
    --space-md: 1rem;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)), 
                url('../assets/images/bg_city.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Glassmorphism utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

/* Gradient Text (Now Monochrome) */
.gradient-text {
    color: #ffffff;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    background: none;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-md) 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
}

.logo {
    font-size: 1.5rem;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-main);
    box-shadow: 0 4px 14px 0 var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 var(--primary-glow);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Tags */
.tag {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Diploma Mockup Style */
.diploma-frame {
    background: #fdfdfd;
    padding: 2.5rem;
    border: 12px solid #334155;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.4),
        inset 0 0 20px rgba(0,0,0,0.1);
    position: relative;
    color: #1e293b;
    transform: rotate(1deg);
    transition: var(--transition);
}

.diploma-frame:hover {
    transform: rotate(0deg) scale(1.02);
}

.diploma-content {
    border: 2px solid #e2e8f0;
    padding: 2rem;
    text-align: center;
    height: 100%;
}

.uni-logo {
    font-family: serif;
    font-size: 1.2rem;
    border: 2px solid #1e293b;
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.diploma-content h4 {
    font-family: serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.diploma-line {
    height: 1px;
    background: #1e293b;
    width: 100px;
    margin: 1rem auto;
}

.diploma-text {
    font-style: italic;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.student-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.degree-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #475569;
}

.diploma-date {
    margin-top: 2rem;
    font-size: 0.8rem;
}

.seal {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #94a3b8;
    border-radius: 50%;
    opacity: 0.2;
}

/* Carousel */
.carousel {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 300px;
    scroll-snap-align: center;
}

/* Download Card */
.download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: rgba(244, 114, 182, 0.05);
    border: 1px dashed var(--accent);
    border-radius: var(--radius-md);
    margin-top: 2rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.skill-card {
    padding: var(--space-lg);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.1);
}

.skill-card i {
    width: 40px;
    height: 40px;
    margin-bottom: var(--space-md);
    color: var(--primary);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.project-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    background: #1e293b; /* Placeholder */
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    flex-grow: 1;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--glass-border);
}

/* Portrait Image */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-xl);
    align-items: center;
    text-align: left;
}

.portrait-wrapper {
    position: relative;
    width: 350px;
    height: 500px;
    margin: 0 auto;
}

.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 4px solid var(--primary);
    box-shadow: 0 0 40px var(--primary-glow);
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .portrait-wrapper {
        width: 250px;
        height: 250px;
        margin-bottom: var(--space-lg);
    }
}

/* Contact & Footer */
.contact-section {
    text-align: center;
    padding: var(--space-xl) 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: var(--space-lg);
}

.social-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
    transform: scale(1.2);
}

footer {
    padding: var(--space-lg) 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Fixes */
.download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: rgba(56, 189, 248, 0.05);
    border: 1px dashed #38bdf8;
    border-radius: var(--radius-md);
    margin-top: 2rem;
}

.btn-download {
    background: #0284c7 !important;
    color: #ffffff !important;
    border: none;
}
