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

:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --accent-color: #a32727;
    --aurora-green: #00ffb4;
    --aurora-purple: #9632c8;
}

body {
    font-family: 'Montserrat', 'Trebuchet MS', Helvetica, sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    background-color: #050a10; /* Dark fallback background */
}

/* Fixed Canvas Background */
#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Navigation - Creative Space Theme */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.top-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.03) 50%, 
        transparent 100%);
    pointer-events: none;
}

.nav-bar {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    position: relative;
}

.nav-bar ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-bar li {
    position: relative;
}

.nav-bar li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    padding: 12px 0;
    position: relative;
    display: block;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
}

.nav-bar li a:hover {
    color: #ffffff;
    letter-spacing: 4px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6), 0 1px 1px rgba(255, 255, 255, 0.3);
}

.logo {
    position: relative;
    z-index: 10;
}

.logo a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding: 8px 0;
    transition: all 0.4s ease;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1), 0 1px 1px rgba(255, 255, 255, 0.2);
}

.logo a:hover {
    letter-spacing: 6px;
    color: #ffffff;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.5), 0 1px 1px rgba(255, 255, 255, 0.3);
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(-50%) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
    padding-top: 100px;
}

/* Glass Card Effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 60px 40px;
    margin: 40px auto;
    width: 100%;
    max-width: 1000px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
}

.hero-content {
    text-align: center;
    padding: 60px 40px;
}

.first-line {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    color: var(--text-primary);
    opacity: 0.9;
}

.star {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 12px;
    font-size: 20px;
}

.second-line {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 52px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 25px 0;
    min-height: 70px;
    position: relative;
    line-height: 1.2;
}

.slideElement {
    display: none;
    color: var(--text-primary);
    opacity: 0.95;
}

.slideElement.active {
    display: inline-block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

.third-line {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 15px;
    color: var(--text-primary);
    opacity: 0.9;
}

/* Section Styles */
.section {
    padding: 80px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-header {
    font-family: 'Orbitron', sans-serif;
    font-size: 38px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Services Section */
.introduce-text {
    text-align: center;
    margin: 60px auto 80px;
    max-width: 900px;
}

.introduce-header {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 40px;
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.introduce-paragraph {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0 auto 25px;
    max-width: 850px;
}

.introduce-paragraph:last-of-type {
    margin-bottom: 0;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    padding: 40px 25px !important;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0 !important;
    max-width: 100% !important;
    min-height: 400px;
    height: 100%;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

/* Service Animation Container */
.service-anim-container {
    width: 100%;
    height: 80px;
    margin-bottom: 15px;
    position: relative;
    background: transparent;
    border: none;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    display: block;
}

.service-anim-container canvas {
    display: block;
    width: 100% !important;
    height: 80px !important;
    margin: 0;
    padding: 0;
}

/* Legacy service-icon styles (kept for compatibility) */
.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 25px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    opacity: 1;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 19px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.08);
    line-height: 1.2;
}

.service-description {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    padding-bottom: 10px;
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-card {
        padding: 35px 25px;
        min-height: auto;
    }
    
    .service-title {
        font-size: 20px;
    }
    
    .service-description {
        font-size: 15px;
    }
}

/* Portfolio Section */
.project-list {
    list-style: none;
    column-count: 3;
    column-gap: 30px;
    margin-top: 40px;
}

.project-list li {
    break-inside: avoid;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
    animation: float infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.image-container {
    position: relative;
    aspect-ratio: 1; /* Force square shape */
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ensure images (or placeholders) fill the container organically */
.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.hover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(163, 39, 39, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .hover-bg {
    opacity: 1;
}

.hover-links {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .hover-links {
    opacity: 1;
}

.hover-links a {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    margin: 0 10px;
}

/* Skills Section */
.skills-content {
    display: flex;
    justify-content: space-around;
    gap: 40px;
    margin-top: 30px;
}

.skills-column {
    flex: 1;
    text-align: left;
}

.column-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--aurora-green);
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.skills-list {
    list-style: none;
    padding: 0;
}

.skills-list li {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.skills-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--aurora-purple);
    font-size: 0.8rem;
    top: 3px;
}

@media (max-width: 768px) {
    .skills-content {
        flex-direction: column;
        gap: 30px;
    }
}

/* News Section */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.news-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.news-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.1);
}

.news-title a {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--accent-color);
}

.news-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 20px 0;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.date {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.subheader {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.text-field-container {
    margin-bottom: 25px;
}

.text-field {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.text-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.text-field:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
}

textarea.text-field {
    min-height: 150px;
    resize: vertical;
}

.button-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.button-container .line {
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.button input {
    padding: 12px 40px;
    background: var(--accent-color);
    border: none;
    border-radius: 5px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.button input:hover {
    background: #8a1f1f;
    transform: translateY(-2px);
}

.button input[type="reset"] {
    background: rgba(255, 255, 255, 0.2);
}

.button input[type="reset"]:hover {
    background: rgba(255, 255, 255, 0.3);
}

.address {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.social-section {
    margin-top: 40px;
}

.social-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    padding: 20px 10px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: 40px;
}

.footer a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
}

.footer .container {
    opacity: 0.8;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-bar {
        flex-direction: column;
        gap: 20px;
        padding: 10px 20px;
    }
    
    .nav-bar ul {
        gap: 15px;
    }
    
    .nav-bar li a {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .first-line {
        font-size: 32px;
    }
    
    .second-line {
        font-size: 48px;
    }
    
    .third-line {
        font-size: 32px;
    }
    
    .glass-card {
        padding: 40px 20px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .project-list {
        column-count: 1;
    }
}

