/* Royal Amethyst Color Variables */
:root {
    --primary: #9747FF;
    --primary-dark: #7A3FD1;
    --secondary: #C59DD1;
    --dark: #4B006E;
    --light: #F5EAF8;
    --text: #5A4B6A;
    --accent: #E5E4F8;
}

/* Override Bootstrap Colors */
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(151, 71, 255, 0.3);
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

/* Navbar Styling */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark) !important;
}

.navbar-brand span {
    color: var(--primary);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text) !important;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    margin: 0 0.5rem;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary) !important;
}

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.navbar-light .navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #F5EAF8 0%, #E5E4F8 50%, #C59DD1 100%);
    position: relative;
    overflow: hidden;
    padding-top: 120px;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(151, 71, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -250px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(197, 157, 209, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    left: -100px;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-graphics {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.graphic-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(151, 71, 255, 0.12), rgba(197, 157, 209, 0.12));
    top: 15%;
    right: 10%;
    animation: float 7s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(197, 157, 209, 0.1), rgba(151, 71, 255, 0.1));
    bottom: 20%;
    right: 20%;
    animation: float 9s ease-in-out infinite reverse;
}

.circle-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(151, 71, 255, 0.15), rgba(197, 157, 209, 0.15));
    top: 40%;
    right: 5%;
    animation: float 5s ease-in-out infinite;
}

.graphic-dots {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 25%;
    right: 15%;
    opacity: 0.3;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    animation: pulse 3s ease-in-out infinite;
}

.dot:nth-child(1) { top: 0; left: 0; animation-delay: 0s; }
.dot:nth-child(2) { top: 0; left: 40px; animation-delay: 0.2s; }
.dot:nth-child(3) { top: 0; left: 80px; animation-delay: 0.4s; }
.dot:nth-child(4) { top: 40px; left: 0; animation-delay: 0.6s; }
.dot:nth-child(5) { top: 40px; left: 40px; animation-delay: 0.8s; }
.dot:nth-child(6) { top: 40px; left: 80px; animation-delay: 1s; }
.dot:nth-child(7) { top: 80px; left: 0; animation-delay: 1.2s; }
.dot:nth-child(8) { top: 80px; left: 40px; animation-delay: 1.4s; }
.dot:nth-child(9) { top: 80px; left: 80px; animation-delay: 1.6s; }

.graphic-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.2;
    animation: slideLeft 8s linear infinite;
}

.line-1 {
    width: 400px;
    top: 30%;
    right: 0;
}

.line-2 {
    width: 300px;
    top: 60%;
    right: 0;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.3);
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    margin: 0 0.5rem;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text);
}

.skill-item {
    background: var(--light);
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.skill-item:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

/* Projects Section */
.projects-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #F5EAF8 0%, #E5E4F8 100%);
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    margin-bottom: 2rem;
    border: none;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #9747FF, #C59DD1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

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

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

.overlay-btn {
    padding: 0.6rem 1.2rem;
    background: white;
    color: var(--primary);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.overlay-btn:hover {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
}

.project-content p {
    color: var(--text);
    margin-bottom: 1rem;
}

.project-tags .badge {
    background: var(--light);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Content Section */
.content-section {
    padding: 5rem 0;
    background: white;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: transparent;
    border: 2px solid var(--light);
    border-radius: 25px;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0.5rem;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.content-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    margin-bottom: 2rem;
}

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

.content-header {
    padding: 1.5rem;
    background: var(--light);
    position: relative;
}

.content-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-free {
    background: #10b981;
    color: white;
}

.badge-premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.content-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.content-body {
    padding: 1.5rem;
}

.content-body h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
}

.content-body p {
    color: var(--text);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.content-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--light);
}

.content-type {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.content-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.content-link:hover {
    color: var(--secondary);
    text-decoration: none;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #9747FF, #C59DD1);
    color: white;
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: white;
}

.contact-form .form-control {
    border-radius: 8px;
    padding: 1rem;
    border: none;
}

.contact-form textarea.form-control {
    min-height: 150px;
}

.submit-btn {
    background: white;
    color: var(--primary);
    padding: 1rem 3rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Footer */
.footer {
    background: #4B006E;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .project-image,
    .content-icon {
        font-size: 3rem;
    }
}